Do you know where your variables are? | |
PerlMonks |
golf challenge: one-liner netcat cloneby salva (Canon) |
on Dec 10, 2011 at 19:31 UTC ( [id://942861]=perlquestion: print w/replies, xml ) | Need Help?? |
salva has asked for the wisdom of the Perl Monks concerning the following question:
Dear Monks,
I am working on Net::OpenSSH::Gateway, a Net::OpenSSH extension that allows this module to cross through proxies and SSH gateways. As part of it, I have written a Perl one-liner that is a netcat clone, but this one-liner is bigger than I wish, so I would like to get your help in order to reduce its length. You can improve on the current version or rewrite it from scratch, I don't mind as long as it is able to run an SSH session on top of it (using ProxyCommand, see ssh_config) and exit when any side of the connection closes. It should only use core modules and be able to run on older Perls. Here is the current one-liner:
It is automatically generated from this more readable version:
Back to
Seekers of Perl Wisdom
|
|