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