Most probably, you're just not declaring $telnet in a sufficiently large scope: the code you pasted above, as of itself is fine.
In reply to Re^5: Trying to capture an error using NET::TELNET
by blazar
in thread Trying to capture error message using telnet::net
by tprizler
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |