Ok so I wrote this quite a while ago and after going through the code
have a better handle on whats going on.
Initially I was getting warnings in the put method, so I trap warnings
and change them to die's, then run $sftp->put inside an eval. So the
warning about changing the attribute was being changed to a die, and
made it appear that it was dying.
So - I've changed the warn handler to not do that, but it still spits
out a warning every time. I'd like to ignore this particular warning,
while still trapping others so my original question still remains - is
there an elegant way to accomplish this? I can think of hacks to check
the warning inside a handler for the string but that still doesn't
future proof my code as the string may change.
--
Tim Pushor
York Electronics Ltd.
Information Technology
Phone: 403.207.0202 x243
Mobile: 403.978.6502
|