Slash Boxes
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

The Fine Print: The following comments are owned by whoever posted them. We are not responsible for them in any way.
More | Login | Reply
Loading... please wait.
  • by clintongormley (8819) on 2009.12.08 9:12 (#71351)

    I think this is the same way that the debugger doesn't see lexicals declared on the previous line;

          DB my $foo = 'bar';
          DB x $foo
          0 undef

    So this works:

          DB ($foo) = ('abcd' =~ /(bc)/) && print $1

    • 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 :)