@{[$sftp->error]}
... what the brackets are doing ...
See the "Baby cart" idiom in perlsecret.
Update:
@{[$sftp->error]}Note also that as $sftp->error (I assume; haven't checked) returns a scalar, not a list,
Give a man a fish: <%-{-{-{-<
In reply to Re^3: Net::SFTP::Foreign error
by AnomalousMonk
in thread Net::SFTP::Foreign error
by roperl
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |