Hi Tamas,

On Fri, 3 Jul 2015 15:10:18 +0000
"Nagy Tamas (TVI-GmbH)" <tamas.n...@tvi-gmbh.de> wrote:

> 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 don't have an idea off hand and part of the problem is that the code is
incredibly partial. Can you provide a self contained, reproducing, example?
Note that often trimming the code in an attempt to isolate the problem, can
reveal its root cause.

Regards,

        Shlomi Fish

-- 
-----------------------------------------------------------------
Shlomi Fish       http://www.shlomifish.org/
Selina Mandrake - The Slayer (Buffy parody) - http://shlom.in/selina

Reality to be conquered, must be obeyed.  — Francis Bacon

Please reply to list if it's a mailing list post - http://shlom.in/reply .

--
To unsubscribe, e-mail: beginners-unsubscr...@perl.org
For additional commands, e-mail: beginners-h...@perl.org
http://learn.perl.org/


Reply via email to