in reply to Re^2: Anonymous Hash in Constructor
in thread Anonymous Hash in Constructor
Ah, but using strict and warnings demonstrates that nothing in the example is considered bizarro stuff that Perl will complain about.
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: Anonymous Hash in Constructor
by Jim (Curate) on Oct 19, 2012 at 19:20 UTC | |
by tobyink (Canon) on Oct 19, 2012 at 23:09 UTC | |
by Jim (Curate) on Oct 19, 2012 at 23:42 UTC |
In Section
Seekers of Perl Wisdom