good chemistry is complicated, and a little bit messy -LW |
|
PerlMonks |
comment on |
( [id://3333]=superdoc: print w/replies, xml ) | Need Help?? |
That line will print because it's not in a sub. A line inside a sub can only print when that sub is actually executed. (The exception to this rule being a line that is evaluated at compile time. But it would be unusual to do this.)
perl -E'sub Monkey::do{say$_,for@_,do{($monkey=[caller(0)]->[3])=~s{::}{ }and$monkey}}"Monkey say"->Monkey::do'
In reply to Re^3: How can I see a CPAN module's print message
by tobyink
|
|