U
urizen
Have encountered an odd bug in Perl 5.8.4 that doesn't seem to be in my
code. The following is a bit of the debugger output:
501: $ocr = 1 if $ocr == 0 and (-e glob "${file}_*.txt"
or -e glob "'${file}'_*.txt");
DB<33> x $ocr == 0 and (-e glob "${file}_*.txt"
or -e glob "'${file}'_*.txt");
0 1
DB<34> p $ocr
0
DB<35> n
main:
/home/ajordon/scripts/GenJob:502):
502: ($str, $tmp) = $file =~ /^(.*?)([^\/]+)$/;
DB<35> p $ocr
0
Despite the if clause being true, the assignment in line 501 isn't
happening. To make things even odder, it does work on other values of
$file. And, if I cut and paste line 501 directly into the debugger, it
functions properly. Really at a loss here, so any suggestions would be
appreciated.
code. The following is a bit of the debugger output:
501: $ocr = 1 if $ocr == 0 and (-e glob "${file}_*.txt"
or -e glob "'${file}'_*.txt");
DB<33> x $ocr == 0 and (-e glob "${file}_*.txt"
or -e glob "'${file}'_*.txt");
0 1
DB<34> p $ocr
0
DB<35> n
main:
502: ($str, $tmp) = $file =~ /^(.*?)([^\/]+)$/;
DB<35> p $ocr
0
Despite the if clause being true, the assignment in line 501 isn't
happening. To make things even odder, it does work on other values of
$file. And, if I cut and paste line 501 directly into the debugger, it
functions properly. Really at a loss here, so any suggestions would be
appreciated.