in reply to Re^2: here-docs vs quote operators
in thread here-docs vs quote operators
How about this?
use strict; use Data::Dumper; sub print_code { my ($sub) = @_; my $d = Data::Dumper->new( [$sub] ); $d->Deparse(1); print $d->Dump(); }; print_code(sub{ print 'This is a coderef' });
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^4: here-docs vs quote operators
by Anonymous Monk on Feb 16, 2006 at 22:02 UTC | |
by Corion (Patriarch) on Feb 16, 2006 at 22:13 UTC |