When I use the recursive method, I ask for input using the <> operator, I input /var and it spits out errors as such:
Use of uninitialized value in numeric gt (>) at find_hog2 line 21, <> +line 1. =============================== 103643136: /var/opt/ignite/media/image.iso =============================================

Line 21 is the sub routine wanted code. I run it in debug mode as /var as input and see these errors:

main::(find_hog2:17): find ( \&wanted, $fs ); DB<2> p DB<2> n Use of uninitialized value in numeric gt (>) at find_hog2 line 20, <> +line 1. main::wanted() called at /opt/perl/lib/5.8.2/File/Find.pm line + 888 File::Find::_find_dir('HASH(0x404f0fe4)','/var',28) called at +/opt/perl/lib/5.8.2/File/Find.pm line 672 File::Find::_find_opt('HASH(0x404f0fe4)','/var') called at /op +t/perl/lib/5.8.2/File/Find.pm line 1175 File::Find::find('CODE(0x403c10b4)','/var') called at find_hog +2 line 17

When I use /tmp as input I see no errors with some of these files from /var copied over to /tmp??? The script using File::Find::Closures works with no errors or warnings. please help. thank you!


In reply to Re^2: File::Find::Closures... help by mikejones
in thread File::Find::Closures... help by mikejones

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.