in reply to Re^2: will you explain what's going on?
in thread will you explain what's going on?
I tried the following program under Perl 5.005_03, 5.6.1, and 5.8.4 and got the same results - no "memory effect":
use strict; #use warnings; for my $s ( qw( nob bob cob bob dob ) ) { my $name = $1 if $s =~ /(bob)/; warn $name || 'undef'; }
result:
undef at - line 7. bob at - line 7. undef at - line 7. bob at - line 7. undef at - line 7.
|
|---|