What fails is your call to open.
If you don't check that, you will wonder forever why Perl does not seem to read from that file.
What works is your call to ->cmd, but that doesn't return a filehandle but the output of the command you run on the remote end.
In reply to Re^3: Read Pipe, Never Enters While Loop
by Corion
in thread Read Pipe, Never Enters While Loop
by ImJustAFriend
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |