Do you have a question? Post it now! No Registration Necessary. Now with pictures!
- Posted on
- using strict
November 19, 2005, 9:01 am
rate this thread
Re: using strict
You should not do that. You should do this instead:
$hOst = $ARGV if $pIng->ping($ARGV, 30);
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.
Tad McClellan SGML consulting
email@example.com Perl programming
Fort Worth, Texas
- Bart Van der Donck
November 19, 2005, 9:25 am
- » FAQ 4.72 How do I keep persistent data across program calls?
- — Previous thread in » PERL Discussions