vladb has asked for the wisdom of the Perl Monks concerning the following question:
where, $handle_onfound is a handler subroutine and $startdir is set to directory I wish to do my search in. $File::Find::name would always have '/' in it. I'm wondering if any monk out there would know of a way to fix this? I consulted File::Find perldoc but didn't find anything pertaining to this matter.find(sub { !/$skip_match/ && /$accept_match/ && -f && $handle_onfound->("$File::Find::name", $handle_on +found_args); }, $startdir);
| "There is no system but GNU, and Linux is one of its kernels." -- Confession of Faith |
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: File::Find uses '/' in path on Win32 system.
by gellyfish (Monsignor) on Mar 10, 2002 at 09:57 UTC | |
by chromatic (Archbishop) on Mar 10, 2002 at 18:20 UTC | |
|
Re: File::Find uses '/' in path on Win32 system.
by BeernuT (Pilgrim) on Mar 10, 2002 at 06:29 UTC | |
|
Re: File::Find uses '/' in path on Win32 system.
by perrin (Chancellor) on Mar 10, 2002 at 16:51 UTC |