RE: [Perl-unix-users] Both sides of 'or' executing

2004-09-30 Thread Thomas, Mark - BLS CTR
> The get retrieves the whole file > and then the die occurs. Why?! Is it something really simple > that I missed because I have been looking at this too long? You're assuming the get method returns a status boolean. It doesn't. It'll either return the results, or if you've specified the local f

Re: [Perl-unix-users] Both sides of 'or' executing

2004-09-30 Thread Anthony Ettinger
What does $sftp->get() return? --- Jeff Williams <[EMAIL PROTECTED]> wrote: > I have a loop I am running to retrieve some files > over SFTP. The issue is > that I have a 'get or die' statement and both parts > are executing one after > each other. I know it is getting the file because I > checked

[Perl-unix-users] Both sides of 'or' executing

2004-09-30 Thread Jeff Williams
I have a loop I am running to retrieve some files over SFTP. The issue is that I have a 'get or die' statement and both parts are executing one after each other. I know it is getting the file because I checked the download directory and I know the loop is only executing once because of the filename