develooper Front page | perl.perl5.porters | Postings from August 2008

[perl #57926] File::Find Bug

Thread Next
From:
Andrew Billeb
Date:
August 15, 2008 00:01
Subject:
[perl #57926] File::Find Bug
Message ID:
rt-3.6.HEAD-29759-1218727093-935.57926-75-0@perl.org
# New Ticket Created by  Andrew Billeb 
# Please include the string:  [perl #57926]
# in the subject line of all future correspondence about this issue. 
# <URL: http://rt.perl.org/rt3/Ticket/Display.html?id=57926 >


I got the following error:

Use of uninitialized value in subroutine entry at /usr/lib/perl5/5.8.8/File/Find.pm line 822.
Can't use string ("") as a subroutine ref while "strict refs" in use at /usr/lib/perl5/5.8.8/File/Find.pm line 822.

when I tried to run:

find(\%options, @dirs);

after mistakenly using:

my %options = (no_chdir => 1);

instead of:

my %options = (no_chdir => 1, \&wanted => 1);

This is perl, v5.8.8 built for i686-linux

Thanks,
Andrew






      


Thread Next


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