i was bitten by this File::Find-chdir bug not so
long ago... although i notice that you are passing
productionize the value of
$File::Find::name,
which, according to the perl5.6 docs says:
`$File::Find::name' contains the complete pathname to the
file. You are chdir()'d to `$File::Find::dir' when the
function is called, unless `no_chdir' was specified. When
...in which case you should have the correct pathname
in productionize. i don't believe this
was the case with previous versions(???).
you may want to check out the no_chdir option (from
man File::Find...):
`no_chdir'
Does not `chdir()' to each directory as it recurses.
The wanted() function will need to be aware of this, of
course. In this case, `$_' will be the same as
`$File::Find::name'.
personally, in the future i would stick with defining
my own routines for the current path and file, ie:
sub current_dir { $File::find::dir }
sub current_file { $_ }
...and then go from there... just in case you end up
writing your own traversal function and ditching File::Find
altogether... ;-)
paranoid dirty
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: |
| & | | & |
| < | | < |
| > | | > |
| [ | | [ |
| ] | | ] |
Link using PerlMonks shortcuts! What shortcuts can I use for linking?
See Writeup Formatting Tips and other pages linked from there for more info.