NOTE: use Perl; is on undef hiatus. You can read content, but you can't post it. More info will be forthcoming forthcomingly.
All the Perl that's Practical to Extract and Report
Stories, comments, journals, and other submissions on use Perl; are Copyright 1998-2006, their respective owners.
Monitoring with Names (Score:1)
I would find monitoring multiple variables all called
$VAR1frustrating. So I would want to extend the example to use the 2-arg version ofData::Dumper::Dump. Finger-painting, we can replace the Report loop withTo do that, we need to capture the name of the monitored variable, so we replace
except that doesn't work for the lexicals illustrated, so would have to detect $symbol eq 'LEXICAL' and look for an attribute argument in $data, such as 'Monitor(name=>Fred)'.push @monitoring, $referent;withWhich makes it so messy I understand why you kept the example simple!
Cheers,
Bill
Bill
# I had a sig when sigs were cool
use Sig;
Reply to This