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

[perl #57926] File::Find Bug

Thread Next
Andrew Billeb
August 15, 2008 00:01
[perl #57926] File::Find Bug
Message ID:
# New Ticket Created by  Andrew Billeb 
# Please include the string:  [perl #57926]
# in the subject line of all future correspondence about this issue. 
# <URL: >

I got the following error:

Use of uninitialized value in subroutine entry at /usr/lib/perl5/5.8.8/File/ line 822.
Can't use string ("") as a subroutine ref while "strict refs" in use at /usr/lib/perl5/5.8.8/File/ 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



Thread Next Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at | Group listing | About