in reply to More info, please.
in thread Why SFTP copy_time doesn't work?

Well, I use the Dev. release and the "status" method does not return more the numeric value of "SSH2_FX*" as the stable release.

I made a switch case statement using the numeric return, but may I now need to get the status string and no more the numeric value, just to personalize the errors messages.

Thank you very much!

Replies are listed 'Best First'.
Re^2: More info, please.
by salva (Canon) on Jan 10, 2007 at 17:55 UTC
    the return value for the status method is both a number and a string, it works in the same way as $!, so you can compare it numericaly if you wish.

    Anyway, for most high level methods such as put, get, etc., the status value doesn't really mean anything, it's just the server response to the last low level request. It is implementation dependant and could change between versions of the module. You will be better using the error method.