in reply to Problems with open
Your code dies for me:
$ perl test.pl Can't exec "garbage": No such file or directory at test.pl line 6. Can't fork a garbage: No such file or directory at test.pl line 6.
I am running perl 5.6.1 on Debian Linux 3.0
Just a small adding to other monks' comments. Like other functions, print has a return value, too. So you shouldn't limit yourself at checking if open succeeds or fails: you should check print also, and take actions when it fails
Just my 2c/Euro
--bronto
# Another Perl edition of a song:
# The End, by The Beatles
END {
$you->take($love) eq $you->made($love) ;
}
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: Problems with open
by skerr1 (Sexton) on Jul 24, 2002 at 16:22 UTC |