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)



Content-Type: text/plain
Content-Disposition: inline
Content-Transfer-Encoding: binary
MIME-Version: 1.0
X-Mailer: MIME-tools 5.415 (Entity 5.415)
Subject: Prompt Patterns with qr//
X-RT-Original-Encoding: iso-8859-1
Content-Length: 749
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
MIME-Version: 1.0
X-Mailer: MIME-tools 5.504 (Entity 5.504)
Content-Disposition: inline
X-RT-Interface: Web
Content-Type: text/plain; charset="utf-8"
Message-ID: <rt-4.0.11-11381-1366834392-79.11747-0-0 [...] rt.cpan.org>
Content-Transfer-Encoding: binary
X-RT-Original-Encoding: utf-8
X-RT-Encrypt: 0
X-RT-Sign: 0
Content-Length: 205
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.