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

Re: [perl #57926] File::Find Bug

Thread Previous | Thread Next
From:
Steve Peters
Date:
August 15, 2008 06:34
Subject:
Re: [perl #57926] File::Find Bug
Message ID:
fd7a59d30808150634gbc4db13m9aff6a24fcc6fe38@mail.gmail.com
On Thu, Aug 14, 2008 at 10:18 AM, via RT Andrew Billeb
<perlbug-followup@perl.org> wrote:
> # 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
>

Thank you for the report.  I have a good idea what's happening, but it
would help us out in reproducing your bug if you could provide a small
piece of code based on your code that is failing.

Thanks,

Steve Peters
steve@fisharerojo.org

Thread Previous | 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