in reply to Re^2: Can I from within a module access variables from the calling program?
in thread Can I from within a module access variables from the calling program?

The only 5.10-specific feature I used was say which is a new (well... five years old) keyword which works like print but automatically appends a new line.

perl -E'sub Monkey::do{say$_,for@_,do{($monkey=[caller(0)]->[3])=~s{::}{ }and$monkey}}"Monkey say"->Monkey::do'

Replies are listed 'Best First'.
Re^4: Can I from within a module access variables from the calling program?
by HJO (Acolyte) on Oct 25, 2012 at 13:33 UTC

    Oh indeed that's quite usefull. Thanks I think i'll be able to adapt this