C:\>perl -e "$_='abcde';/./;print "$'",/../,$'
cde1cde

Is this another 5.6.1'ism (Looks like I'll have to upgrade to 5.8 for
"@+" in any case) or was Jasper's solution using some slightly more
mystical quoting?

I'm still somewhat confused about exactly when objects (like searches
or assignments) in a comma-separated lists, arguments to for, etc. get
executed. Obviously this is important for Perlgolf, which so often does
two or three things at a time. Rather than learn the rules, though, I
usually just try all of the permutations I can think of. Which is
probably one of many reasons I'm not actually winning these contests.

-Amir

__________________________________
Do you Yahoo!?
SBC Yahoo! DSL - Now only $29.95 per month!
http://sbc.yahoo.com

Reply via email to