|Just another Perl shrine|
Re: Seeking Feed backby azatoth (Curate)
|on Jul 05, 2001 at 12:34 UTC||Need Help??|
For starters, all people new to Perl should be made aware of strict.pm. This is a Perl Module that ensures your program runs smoothly with regard to Scoping. You should also read up on use warnings; or the -w switch, which basically adds an extra level of integrity to your program.
Also on your filehandle call, you should always finish the statement off with or die "Could not open $fh : $!\n";
The die function enables error handling, storing the error value in the special variable $!. So your code should now look like
In fact, you should use die on most function calls. Read up on that, it'll save you a lot of heartache in the future.
Finally, enjoy your time on Perlmonks. It's a very nice place.
Azatoth a.k.a Captain WhiplashMake Your Die Messages Full of Wisdom!
Get YOUR PerlMonks Stagename here!
Want to speak like a Londoner?