J
Johhny
Hello,
I am in the process of learning perl, One thing I am trying to work out
is if its possible to do a statement like this.
==SNIP==
my $hOst = $ARGV[0] if $pIng->ping($ARGV[0], 30);
==SNIP==
What im trying to do is set the variable $hOst IF the system is up. If
its not up it will exit.
Regards,
Johhny
I am in the process of learning perl, One thing I am trying to work out
is if its possible to do a statement like this.
==SNIP==
my $hOst = $ARGV[0] if $pIng->ping($ARGV[0], 30);
==SNIP==
What im trying to do is set the variable $hOst IF the system is up. If
its not up it will exit.
Regards,
Johhny