Don't ask to ask, just ask | |
PerlMonks |
Re: Regular expressions in shell promptsby shmem (Chancellor) |
on Feb 12, 2018 at 14:25 UTC ( [id://1209001]=note: print w/replies, xml ) | Need Help?? |
The argument for prompt in the constructor of Net::Telnet in fact is a regular expression. So the task at hand here is to craft a valid regular expression for all 900 routers. If you are having problems with that, feel free to ask.
perl -le'print map{pack c,($-++?1:13)+ord}split//,ESEL'
In Section
Seekers of Perl Wisdom
|
|