P is for Practical | |
PerlMonks |
comment on |
( [id://3333]=superdoc: print w/replies, xml ) | 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 Whiplash Make Your Die Messages Full of Wisdom!Get YOUR PerlMonks Stagename here! Want to speak like a Londoner? In reply to Re: Seeking Feed back
by azatoth
|
|