I also find your usage of 'our' to be quite strange.I'm new to Perl, so I'm sure some of it is going to look "strange" :)
Thank you for the rewrite. I'm still having difficulty understanding our, my, and local. If I change it from 'our' to 'my', how do I properly "access" $localip from within nested IF/ELSE and WHILE? That in a nutshell is my biggest challenge with Perl currently, is watching the warnings and errors complain about my syntax for using variables.
Verifying whether this has worked or not will take some time. This script is running out in the field, and I would need to wait for another network event to see what happens. Under normal conditions I have no warnings or errors returned from running the script. It also runs on many other systems and returns no errors or warnings at all. Since it's all logged I can verify what occurs on the other systems and that the script is working.
In reply to Re^2: Uninitialized value from hostname()
by eepstein
in thread Uninitialized value from hostname()
by eepstein
For: | Use: | ||
& | & | ||
< | < | ||
> | > | ||
[ | [ | ||
] | ] |