Incidentally, you'll need to double the backwhack and backwhack the '$' unless you use // for the pattern (which is recommended). So you should spell it: if (/\.c$/ || /\.h$/) { push ... }
BTW, "$File::Find::dir/$_" is already available as $File::Find::name.
-- Chip Salzenberg, Free-Floating Agent of Chaos
In reply to Re: strange File::Find thing?
by chip
in thread strange File::Find thing?
by McMahon
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |