Beefy Boxes and Bandwidth Generously Provided by pair Networks
There's more than one way to do things
 
PerlMonks  

Re: Open a folder

by vinoth.ree (Monsignor)
on Jan 08, 2013 at 10:37 UTC ( #1012218=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    #!/usr/bin/perl
    use strict;
    use warnings;
    my $tmp_dir="/tmp";
    opendir (DIR, $tmp_dir) or die $!;
    
  2. or download this
    while (my $file_name = readdir(DIR)) {print "$file_name\n";}
    
  3. or download this
    closedir(DIR);
    

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others examining the Monastery: (12)
As of 2016-09-29 16:31 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Extraterrestrials haven't visited the Earth yet because:







    Results (555 votes). Check out past polls.