Beefy Boxes and Bandwidth Generously Provided by pair Networks
No such thing as a small change
 
PerlMonks  

Re: Reading DIR content and printing it

by perlaintdead (Scribe)
on Jul 18, 2011 at 05:45 UTC ( #915079=note: print w/ replies, xml ) Need Help??


in reply to Reading DIR content and printing it

here's my solution

opendir(DIR, "\."); @filelist = readdir(DIR); closedir(DIR); $filelist = @filelist; $i = 0; for(;;){ if(defined $filelist[$i]){ print "$filelist[$i]\n"; } else { exit; }; $i++; }


Comment on Re: Reading DIR content and printing it
Download Code

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others having an uproarious good time at the Monastery: (8)
As of 2015-05-30 19:47 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    In my home, the TV remote control is ...









    Results (599 votes), past polls