Beefy Boxes and Bandwidth Generously Provided by pair Networks
laziness, impatience, and hubris
 
PerlMonks  

Re^5: Does Perl 5 (or 6?) need another built-in variable for the -F switch?

by Anonymous Monk
on Nov 03, 2006 at 11:53 UTC ( [id://582058]=note: print w/replies, xml ) Need Help??


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

In that case, you rather want an array of pairs instead of a hash. There are switches that can be used multiple times (-M, among others), and some switches interact and their order is relevant (-l and -0 for instance).
  • Comment on Re^5: Does Perl 5 (or 6?) need another built-in variable for the -F switch?

Replies are listed 'Best First'.
Re^6: Does Perl 5 (or 6?) need another built-in variable for the -F switch?
by davido (Cardinal) on Nov 03, 2006 at 16:28 UTC

    If -M (for example) were used multiple times, the %^C hash would look like this:

    %^C = ( M => [ 'strict', 'Data::Dumper', 'Getopt::Long' ], # ..... );

    Dave

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others imbibing at the Monastery: (6)
As of 2024-04-19 11:00 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found