> Use of uninitialized value at Audit_WTN.pl line 133,
> <FH_IN_FILE> chunk 19.
>
> how to avoid warning at following location....
> 133 if ( $ret >= 1 ) {
Try
if ( ($ret||0) >= 1 ) {
If $ret is uninitialized, the || will pass to the 0 and return that.
Better to check your situation more carefully if you can, though.
This is just a hack to make the warning system shut up. Rather, try:
if ($ret) {
if ( $ret >= 1 ) {
# stuff ....
} else {
# different stuff.
}
} else {
# undefined or zero stuff
}
It guarantees an extra check, but checking is usually better than
having bad data (or total lack of it) trip you up.
__________________________________________________
Do you Yahoo!?
Yahoo! Shopping - Send Flowers for Valentine's Day
http://shopping.yahoo.com
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]