>>>>> "SF" == Shlomi Fish <[email protected]> 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 ------ [email protected] -------- http://www.sysarch.com --
----- Perl Code Review , Architecture, Development, Training, Support ------
--------- Gourmet Hot Cocoa Mix ---- http://bestfriendscocoa.com ---------
--
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]
http://learn.perl.org/