in reply to Question about Open and Close
Hi,
While I cannot realy tell where the problem in your code is, I can give you a good advice: <emph>always test return value of system calls</emph>. That means writing something like:
This should allow you to find where the error is... May be you'll even be able to found the solution! :)))open(FOO,">$file") || die "Couldn't open $file: $!";
Cheers
Update: addent parenthesis, thank you gav^. This show me once again a thin: <emph>never, ever post code without trying it!</emph>.
TheHobbit goes to the monastery kitchens... will peeling 100 Kg potato's be enough to make ammend?
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: Question about Open and Close
by gav^ (Curate) on Jun 08, 2002 at 19:43 UTC |