Beefy Boxes and Bandwidth Generously Provided by pair Networks
XP is just a number
 
PerlMonks  

Re: system(find) unable to find a file even if the file exists

by 1nickt (Monsignor)
on Feb 14, 2018 at 14:06 UTC ( #1209138=note: print w/replies, xml ) Need Help??


in reply to system(find) unable to find a file even if the file exists

Try Path::Iterator::Rule.

use strict; use warnings; use Path::Iterator::Rule; my $destination = 'C:/Users/Documents'; my $rule = Path::Iterator::Rule->new->file->name('*.txt'); print "$_\n" for $rule->all( $destination ); __END__

Hope this helps!


The way forward always starts with a minimal test.

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1209138]
help
Chatterbox?
NodeReaper adds to his collection

How do I use this? | Other CB clients
Other Users?
Others examining the Monastery: (3)
As of 2018-07-19 23:26 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    It has been suggested to rename Perl 6 in order to boost its marketing potential. Which name would you prefer?















    Results (421 votes). Check out past polls.

    Notices?