At 02:04 PM 12/4/2008 -0600, SelfSimilar wrote:
>> try something like
>>
>> print $buf while (($len = $chan->read($buf,512))||0) > 0);
>
>Thank you for the suggestion. Unfortunately, it get the same error warning
>
>Use of uninitialized value in numeric gt (>) at SFTP_test2.pl line 21
I have to chime in. That kind of construct is just plain wrong. :) U need
an if{} block to test for every possible return type of $chan->read(). i.e.
blank, undef, valid number, invalid number, and other junk. U've fallen
into the one liner trap. Laziness *is* the cardinal virtue of the
programmer, but u can still be burned by it.
--
REMEMBER THE WORLD TRADE CENTER ---=< WTC 911 >=--
"...ne cede malis"
00000100
_______________________________________________
Perl-Win32-Users mailing list
[email protected]
To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs