Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:
and have it return:use Some::Module; sub somecode { do { print "some stuff\n" } } my $somevar = Some::Module->new(); print $somevar->printcode(\&somecode);
?do { print "some stuff\n" }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Printing the code of a coderef
by Trizor (Pilgrim) on Jun 26, 2007 at 05:35 UTC | |
by Anonymous Monk on Jun 26, 2007 at 06:05 UTC | |
by sgt (Deacon) on Jun 26, 2007 at 13:08 UTC | |
by naikonta (Curate) on Jun 26, 2007 at 14:14 UTC | |
|
Re: Printing the code of a coderef
by ferreira (Chaplain) on Jun 26, 2007 at 13:43 UTC | |
|
Re: Printing the code of a coderef
by belden (Friar) on Jun 28, 2007 at 15:08 UTC |