![]() |
|
Your skill will accomplish what the force of many cannot |
|
PerlMonks |
Re: Passing parameters to object method referencesby citromatik (Curate) |
on Jun 21, 2007 at 11:27 UTC ( #622537=note: print w/replies, xml ) | Need Help?? |
Two comments: Data::Dumper may not be the best way to Dump closures, I find Data::Dump::Streamer a lot more useful: foo.pl
Outputs:
This seems clearer to me than the output you got from Data::Dumper. And maybe you would catch the error that rhesa points out. And since you already broke the encapsulation of your object, why don't you return the plain function instead of a method?:
Outputs (as expected)
citromatik
In Section
Seekers of Perl Wisdom
|
|