Perl Monk, Perl Meditation | |
PerlMonks |
Re: Does Perl 5 (or 6?) need another built-in variable for the -F switch?by duff (Parson) |
on Nov 02, 2006 at 16:34 UTC ( [id://581918]=note: print w/replies, xml ) | Need Help?? |
The argument to -F is a pattern, not a string. You could use parentheses in your pattern and take every other item in @F for munging and then put them back when you're done. Though for such a short pattern, you might as well just repeat it.
In Section
Seekers of Perl Wisdom
|
|