Beefy Boxes and Bandwidth Generously Provided by pair Networks
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??


in reply to Does Perl 5 (or 6?) need another built-in variable for the -F switch?

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.

  • Comment on Re: Does Perl 5 (or 6?) need another built-in variable for the -F switch?
  • Download Code

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://581918]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others rifling through the Monastery: (2)
As of 2024-04-26 01:00 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found