in reply to @_ & @ARGV
In tHe first call, you pass @ARGV to the 'formlist' sub.
This returns an ANONYMOUS sub that is assigned to $arguments.
You call the Anonymous sub, pasisng it "Command Line", which, as you can see is received and printed just fine.
Perhaps we can explain it better if you tell us what you were expecting, and why.
In case you were unaware, you created a "closure" around @list, preserving it's value.
I hope life isn't a big joke, because I don't get it.
-SNL
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: @_ & @ARGV
by Athanasius (Archbishop) on Oct 07, 2012 at 15:12 UTC | |
|
Re^2: @_ & @ARGV
by tobyink (Canon) on Oct 07, 2012 at 15:19 UTC | |
|
Re^2: @_ & @ARGV
by dushyant (Acolyte) on Oct 07, 2012 at 17:41 UTC |