Forums
New posts
Search forums
Members
Current visitors
Log in
Register
What's new
Search
Search
Search titles only
By:
New posts
Search forums
Menu
Log in
Register
Install the app
Install
Forums
Archive
Archive
Perl
Perl Misc
using strict
JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding.
Reply to thread
Message
[QUOTE="Tad McClellan, post: 4802855"] You should not do that. You should do this instead: my $hOst; $hOst = $ARGV[0] if $pIng->ping($ARGV[0], 30); See: perldoc perlsub B<NOTE:> The behaviour of a C<my> statement modified with a statement modifier conditional or loop construct (e.g. C<my $x if ...>) is B<undefined>. The value of the C<my> variable may be C<undef>, any previously assigned value, or possibly anything else. Don't rely on it. Future versions of perl might do something different from the version of perl you try it out on. Here be dragons. [/QUOTE]
Verification
Post reply
Forums
Archive
Archive
Perl
Perl Misc
using strict
Top