Subject: | Prompt Patterns with qr// |
Hello there. Thanks for Net::Telnet -- it's just been very useful for me.
One tiny feature request: the prompt parameter currently accepts a pattern specified in a string (which has the various backslash-quoting problems you mention in the docs). Could precompiled patterns also be accepted here, so the qr// operator can be used instead of quotes?
Net::Telnet->new(host => $host, prompt => qr/menu option:/);
That would seem more Perl-ish (and allow text editors to syntax-highlight the pattern as a regexp rather than a string).
(I'm guessing that your module predates the qr// operator, so this is not a criticism of how it works at the moment, and obviously string support needs to be kept for backwards compatibility.)
Cheers.
Smylers