R. Joseph Newton wrote:
WC -Sx- Jones wrote:



Better would be -


#!/usr/bin/perl -w

# just predeclare them ALL here; before they are used. # See my comments below

...


&print_if_Warn if (system("nstat -a") / 256);

&print_if_Fatal if (system("netstat -nr") / 256);


Hi Bill,

I'm a little unclear here.  What do you see as calling for the ampersand & in the
function calls above.  Most list veterans have been trying to steer newbies away
from it.  Have you tried the calls above without?

Joseph




sub print_if_Warn; sub print_if_Fatal;

That way you can call them without the & later.
IMHO it makes C programmers out of Perl programmers.
(And it is MORE lines - but I won't argue with progress :)

-Bill-
__Sx__________________________________________
http://youve-reached-the.endoftheinternet.org/

--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
<http://learn.perl.org/> <http://learn.perl.org/first-response>




Reply via email to