in reply to How to get code from a coderef?
I'm a big (but newly converted) YAML fan.
Does anyone with more experience than me have an opinion on YAML's behavior with code refs?
--Thanks
Pileofrogs
Update: (added Sat Midnight, US Pacific time)
Just to satisfy my curiosity:
#! /usr/bin/perl -w -T use YAML; my $foo = sub { print "bar" }; print Dump($foo)."\n";
Produces:
--- !perl/code: '{ "DUMMY" }'
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: How to get code from a coderef?
by diotalevi (Canon) on Jan 20, 2006 at 20:15 UTC | |
by diego_de_lima (Beadle) on Jan 20, 2006 at 21:41 UTC | |
by diotalevi (Canon) on Jan 20, 2006 at 22:06 UTC |