"Casey West" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> It was Thursday, April 29, 2004 when John Doe took the soap box, saying:
> : Hello all,
> : i write script that open and read file but i have problem.
> : First, here are a script:
> : ----
> :   if (-e $fulltree) { # check to see if file exist
> :     open(FILE, "$fulltree");
> :     my @f = <FILE>;
> :     close(FILE);
> :     $temp = $f[0];
> :     ($files, $quotause) = split(/ /,$temp); # line 39
> :   }
>
> Sounds like your file is empty. You check that your file exists, and
> that is good, but perhaps you should make sure the file is not empty
> using '-s' instead of '-e'?
>
>   Casey West
>

Thank you, i now use -s and problem with uninitialized value
is resolved.

Regards,
John



-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
<http://learn.perl.org/> <http://learn.perl.org/first-response>


Reply via email to