develooper Front page | perl.perl5.porters | Postings from September 2001

Re: [ID 20010831.002] Bug in Term::Cap on Solaris ansi terminalusing CPAN::Shell

Thread Previous
From:
Arthur Bergman
Date:
September 1, 2001 05:42
Subject:
Re: [ID 20010831.002] Bug in Term::Cap on Solaris ansi terminalusing CPAN::Shell
Message ID:
B7B6A434.3759%arthur@contiller.se
40-10-20 13.27, skrev mike808@users.sourceforge.net på
mike808@users.sourceforge.net följande:

> I get the following error using the CPAN.pm shell:
> 
> Use of uninitialized value in pattern match (m//)
> at /usr/local/perl-5.6.1/lib/5.6.1/Term/Cap.pm line 284.
> 
> This patch will correct the problem.
> 
> diff Term/Cap.pm /usr/local/perl-5.6.1/lib/5.6.1/Term/Cap.pm
> 284c284
> <     if (defined $string && $string =~ /(^[\d.]+)(\*?)(.*)$/) {
> ---
>> if ($string =~ /(^[\d.]+)(\*?)(.*)$/) {

Thanks, applied.

-- 
Arthur


Thread Previous


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About