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
--
"A new swimming pool is rapidly taking shape since the contractors
have thrown in the bulk of their workers."
--In an East African newspaper
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
<http://learn.perl.org/> <http://learn.perl.org/first-response>