Hi,

My code:

Use strict;
Use warnings;

my $j = 0;
my $doread = 0;
my ($buf, $data, $n);
$n = read FILE, $data, 1;
$buf = $data;
while($n != 0) {

$doread = 0;

# there has to be a begin tag before the end tag
# so we can check for begin tag first

if($begintagfound == 0) {
    if($buf eq chr hex $xhtmlbegin[$j + 1]) {
        $doread = 1;
        $j = $j + 1;
    } else {
        if($j == 0) {...  line 125
...

Says use of uninitialized value $j in numeric eq == at line 125
Does anyone has any idea why does it tell $j as uninitialized?

I initialized it at the first line to 0.

Tamas

Reply via email to