>>>>> "SF" == Shlomi Fish <shlo...@iglu.org.il> writes:
>> my @vv = split('-',$variable); >> my @vale = split('##',$variable); SF> Why are you splitting on strings instead of on regexes? << split(/##/, SF> $variable); >> that IS splitting on regexes. split's first arg is always used as a regex. yes, it is better code to show it as a regex with //. note that split even has a special case of ' ' which is not the same as / /. uri -- Uri Guttman ------ u...@stemsystems.com -------- http://www.sysarch.com -- ----- Perl Code Review , Architecture, Development, Training, Support ------ --------- Gourmet Hot Cocoa Mix ---- http://bestfriendscocoa.com --------- -- To unsubscribe, e-mail: beginners-unsubscr...@perl.org For additional commands, e-mail: beginners-h...@perl.org http://learn.perl.org/