in reply to Doing an 'ls' in SFTP:Foreign

Are you using the autodie param when creating the object? If the ls fails in your example, the loop may still execute, but it obviously won't give you a hash entry.

fnord

Replies are listed 'Best First'.
Re^2: Doing an 'ls' in SFTP:Foreign
by StarkRavingCalm (Sexton) on Feb 15, 2013 at 17:29 UTC

    not using autodie