in reply to pattern match against in-memory file causes odd behavior
Trying this out in my 5.10.1 debugger on (Debian)Linux, I'm getting quite erratic behavior:
DB<525> open $fh, '>', \$memory DB<526> print $fh 'abc'; DB<527> x $memory =~ m/(.*)\Z/ empty array DB<528> print $fh 'def'; DB<529> x $memory =~ m/(.*)\Z/ 0 'abcdef' DB<530> print $fh 'ghi'; DB<531> x $memory =~ m/(.*)\Z/ empty array DB<532> print $fh 'jkl'; DB<533> x $memory =~ m/(.*)\Z/ empty array DB<534> print $fh 'mno'; DB<535> x $memory =~ m/(.*)\Z/ 0 'abcdefghijklmno'which just smells of buggity-bug-bug-bug.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: pattern match against in-memory file causes odd behavior
by Eliya (Vicar) on Dec 28, 2011 at 06:15 UTC |