in reply to Passing switches through pl2bat scripts
This enables the feature that allows perl to read stdin until it sees the '#! perl' and then start reading the input until __END__. As an argument to the perl interpreter itself, it's never seen as part of the @ARGV array of the script, so 'getopt' will never see itperl -x
Your next -x however, is being passed to the script as an argument to the script itself, so 'getopt' can see it.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Passing switches through pl2bat scripts
by PhilHibbs (Hermit) on Nov 17, 2003 at 14:53 UTC | |
by ptkdb (Monk) on Nov 17, 2003 at 15:43 UTC | |
by PhilHibbs (Hermit) on Nov 18, 2003 at 09:44 UTC |