in reply to Finding what args were passed to the perl interpretter ?
Well, you'd have to map the code that gets displayed back to the relevant commandline args, but you could use B::Deparse:
ben@Tyr:~$ perl -MO=Deparse -wle# BEGIN { $^W = 1; } BEGIN { $/ = "\n"; $\ = "\n"; } -e syntax OK
Note that the above 'BEGIN' statements differ from actual 'BEGIN' blocks: those are shown as 'sub BEGIN'.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Finding what args were passed to the perl interpretter ?
by dpuu (Chaplain) on Nov 19, 2008 at 23:24 UTC | |
by JavaFan (Canon) on Nov 20, 2008 at 00:26 UTC |