Beefy Boxes and Bandwidth Generously Provided by pair Networks
Do you know where your variables are?
 
PerlMonks  

Re: read_dir issue

by fishmonger (Pilgrim)
on Aug 24, 2013 at 20:39 UTC ( #1050828=note: print w/ replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    my $path = $ARGV[0] || '.';
    my @files = read_dir($path, prefix => 1);
    ...
    for my $file (@files) {
        say -f $file ? "$file is a file" : "$file is a dir";
    }
    

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1050828]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others romping around the Monastery: (7)
As of 2014-12-28 01:17 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    Is guessing a good strategy for surviving in the IT business?





    Results (177 votes), past polls