C
Chris Charley
A small piece of code (below) to demonstrate the bug.
If the code would run without a bug, it would be an infinite loop.
But the bug produces warnings about the use of an uninitialized value. . .
#####################################################################
################### code #######################################
#!/usr/bin/perl
use strict;
use warnings;
while (my $data = <DATA>) {
print $data;
redo if $data == 2;
}
__DATA__
1
2
3
4
################### end code ##################################
#####################################################################
Note: I also found mention of this bug in a Google search in Groups,
(with demonstration of the bug).
############################################
Message 1 in thread #
From: Bart Lateur ([email protected])
Subject: redo and scope bug #
#
View this article only
Newsgroups: comp.lang.perl.misc #
Date: 2002-01-25 03:49:38 PST
############################################
I tried to use the perlbug program to submit the report, but I need
Mail::Send and can't find it in any of Active State's repositories.
Chris
If the code would run without a bug, it would be an infinite loop.
But the bug produces warnings about the use of an uninitialized value. . .
#####################################################################
################### code #######################################
#!/usr/bin/perl
use strict;
use warnings;
while (my $data = <DATA>) {
print $data;
redo if $data == 2;
}
__DATA__
1
2
3
4
################### end code ##################################
#####################################################################
Note: I also found mention of this bug in a Google search in Groups,
(with demonstration of the bug).
############################################
Message 1 in thread #
From: Bart Lateur ([email protected])
Subject: redo and scope bug #
#
View this article only
Newsgroups: comp.lang.perl.misc #
Date: 2002-01-25 03:49:38 PST
############################################
I tried to use the perlbug program to submit the report, but I need
Mail::Send and can't find it in any of Active State's repositories.
Chris