in reply to A problem with using the split command
or>echo $perlcode $a="x\\y\\z";@b=split('\\\\',$a);print join(";",@b),"\n" >perl -e "$perlcode" x;y;z
I would have thought that if 4 back-slashes would work with double quotes (becoming \\ instead), then 2 back-slashes would work with single quotes.>echo $perlcode $a="x\\y\\z";@b=split("\\\\",$a);print join(";",@b),"\n" >perl -e "$perlcode" x;y;z
Maybe some wise monk would enlighten us?
Sandy
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: Re: A problem with using the split command
by ysth (Canon) on Apr 30, 2004 at 21:11 UTC | |
by Sandy (Curate) on Apr 30, 2004 at 21:58 UTC |