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.
Scope (Score:1)
I think this is the same way that the debugger doesn't see lexicals declared on the previous line;
eg:
DB my $foo = 'bar';
DB x $foo
0 undef
So this works:
DB ($foo) = ('abcd' =~ /(bc)/) && print $1
Re:Scope (Score:2)
Yeah, Rafael pointed that out to me and I updated my post before I saw your response.
By the way, you can use <ecode>some code here</ecode> tags to make your post prettier :)
Reply to This
Parent