Clear questions and runnable code get the best and fastest answer |
|
PerlMonks |
Re: loadingby jjhorner (Hermit) |
on Jul 08, 2000 at 07:37 UTC ( [id://21621]=note: print w/replies, xml ) | Need Help?? |
Try wrapping your code in tags. As Ozymandias said, use strict and -w. Also, if you are going to report an error, you might want to know why the error occurred: use $! to report the error message. I heard someone say once that you should use all caps to differentiate filehandles from other words in your code. Why use "|| die" inside the parenthesis? Isn't it just fine outside of them? You should also error check your 'system' call, but since 'system' returns 0 as the successful response, use && instead of ||.
J. J. Horner Linux, Perl, Apache, Stronghold, Unix jhorner@knoxlug.org http://www.knoxlug.org/
In Section
Seekers of Perl Wisdom
|
|