![]() |
|
Just another Perl shrine | |
PerlMonks |
Re^3: Problem with regex passed to a hashby pokki (Monk) |
on Oct 02, 2012 at 09:35 UTC ( #996827=note: print w/replies, xml ) | Need Help?? |
Yeah, Net::Telnet is rather old and uses a weird method of passing regexes as arguments. For a more recent module qr// would be appropriate, but Net::Telnet requires a string that starts and ends with a slash. The other posters are right when they say you should double quote. Any method for building strings will work: As an aside, if you're trying to log in, there's a login method in Net::Telnet.
In Section
Seekers of Perl Wisdom
|
|