Skip Menu |

Preferred bug tracker

Please visit the preferred bug tracker to report your issue.

This queue is for tickets about the File-RandomLine CPAN distribution.

Report information
The Basics
Id: 85619
Status: resolved
Priority: 0/
Queue: File-RandomLine

People
Owner: Nobody in particular
Requestors: usertalk.grep [...] gmail.com
Cc:
AdminCc:

Bug Information
Severity: (no value)
Broken in: (no value)
Fixed in: (no value)



Subject: Small Error in File::RandomLine
Date: Sun, 26 May 2013 02:46:01 -0400
To: bug-File-RandomLine [...] rt.cpan.org
From: "Grep G." <usertalk.grep [...] gmail.com>
File::RandomLine 0.19 perl -v: This is perl 5, version 16, subversion 3 (v5.16.3) built for x86_64-linux-thread-multi uname -a: Linux mustang.afterburst.com 2.6.32-042stab075.2 #1 SMP Tue Mar 5 15:21:53 MSK 2013 x86_64 GNU/Linux The error I get: --------------------------------------------------------------- Use of uninitialized value $algo in lc at /home/a/perl5/lib/perl5/File/RandomLine.pm line 103 (#1) (W uninitialized) An undefined value was used as if it were already defined. It was interpreted as a "" or a 0, but maybe it was a mistake. To suppress this warning assign a defined value to your variables. To help you figure out what was undefined, perl will try to tell you the name of the variable (if any) that was undefined. In some cases it cannot do this, so it also tells you what operation you used the undefined value in. Note, however, that perl optimizes your program anid the operation displayed in the warning may not necessarily appear literally in your program. For example, "that $foo" is usually optimized into "that " . $foo, and the warning will refer to the concatenation (.) operator, even though there is no . in your program. --------------------------------------------------------------- The solution (as far as I can tell) would be to put parentheses to have perl call lc as a function, or to remove lc.
Thanks. Fixed and uploaded to CPAN as 0.20.