$$_[0] uses $_ as an arrayref, probably not what you want; try dropping one of the $ and passing $pro, not \$pro. (Or use ${$_[0]}->close with passing \$pro.)
In reply to Re: How to close a telnet connection when using strict
by ysth
in thread How to close a telnet connection when using strict
by han_perl
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |