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

People
Owner: Nobody in particular
Requestors: smylers [...] cpan.org
Cc:
AdminCc:

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 Perl.org infrastructure.

Please report any issues with rt.cpan.org to rt-cpan-admin@bestpractical.com.