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 "$".
Fixed.Thanks