Skip Menu |

This queue is for tickets about the Net-Telnet CPAN distribution.

Report information
The Basics
Id: 11747
Status: open
Priority: 0/
Queue: Net-Telnet

Owner: Nobody in particular
Requestors: smylers [...]

Bug Information
Severity: Wishlist
Broken in: (no value)
Fixed in: (no value)

Subject: Prompt Patterns with qr//
Download (untitled) / with headers
text/plain 749b
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
Download (untitled) / with headers
text/plain 205b
Yes, using the qr operator is a much better way to provide the prompt pattern. I'll add this feature to the next release. Thanks for submitting it and sorry it has not already been added. -- Jay Rogers

This service is sponsored and maintained by Best Practical Solutions and runs on infrastructure.

Please report any issues with to