Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 192808 - dev-perl/Net-Telnet-Cisco - Net::Telnet::Cisco generates perl warnings for /g modifier
Summary: dev-perl/Net-Telnet-Cisco - Net::Telnet::Cisco generates perl warnings for /g...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Gentoo Perl team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-09-17 13:06 UTC by Dan Thorson
Modified: 2008-05-08 19:57 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Dan Thorson 2007-09-17 13:06:43 UTC
When using Net::Telnet::Cisco I get the following warning:

Use of /g modifier is meaningless in split at /usr/lib/perl5/vendor_perl/5.8.8/Net/Telnet/Cisco.pm line 756.

Line 756 is
    return wantarray ? split /$/mg, $_ : $_; # ORS instead?
but should be
    return wantarray ? split /$/m, $_ : $_; # ORS instead?
to avoid the warning message.



Reproducible: Always

Steps to Reproduce:
1. Use Net::Telnet::Cisco
2. See warning message
3.

Actual Results:  
nothing special required

Expected Results:  
I have modified the line in Cisco.pm as shown in the original description and the warnings disappear with no loss of functionality in the code

don't use "global" option when matching on end-of-line "$".
Comment 1 Torsten Veller (RETIRED) gentoo-dev 2008-05-08 19:57:21 UTC
Fixed.Thanks