"be consistent" | |
PerlMonks |
Re^2: Behaving appropriately based on ref() resultby demerphq (Chancellor) |
on Jan 09, 2006 at 09:11 UTC ( [id://521878]=note: print w/replies, xml ) | Need Help?? |
Data::Dump::Streamer can be used to serialize subroutines and closures properly under sane scenarios. (Yes you can deliberately craft a set of closures that will not dump properly, but it should be quite rare in practice as it would require using unwise var naming practices in the first place.) As for regular expressions, DDS can serilize them properly as well so long as they don't include (?{}) and (??{}). In other words regexes that arent closures are properly handled. Ill have to make a stab at handling regex closures in a future release. PS: i think you meant "SCALAR" and "REF", there is no perl type "SCALARREF". :-)
--- $world=~s/war/peace/g
In Section
Seekers of Perl Wisdom
|
|