
Marut
New User
Dec 23, 2011, 10:16 PM
Post #3 of 5
(3367 views)
|
|
Re: [FishMonger] Split fun in perl
[In reply to]
|
Can't Post
|
|
Thanks for the reply.. But i think u din't get my question. Actually i m trying to split a string having backslash and forward slash both. I know backslash is the meta character. for the other meta character i m able to split the string. For eg. my $string = "This ?is! a [short]-(sentence)! Why?"; my @array = split (/[\-,. :;!?()[\]{}]+/, $string); print $_, " " foreach @array; print "\n"; #it displays: This is a short sentence Why Can u please help me how to split a string ""my/name\is/khan\don2" and store in array using split fun in perl.
|