Beefy Boxes and Bandwidth Generously Provided by pair Networks
Just another Perl shrine
 
PerlMonks  

Re: How to get file descriptor (number)

by liverpole (Monsignor)
on Sep 13, 2005 at 12:12 UTC ( [id://491558]=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
        use FileHandle;
        my $fh = new FileHandle;
    ...
        opendir($fh, $dir) or die "Unable to open directory '$dir' ($!)\n"
    +;
        my @files = readdir($fh);
        closedir $fh;
    
  2. or download this
        map { $_ = "$dir/$_" } @files;    # Prepend "/tmp" to all files
    

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others rifling through the Monastery: (2)
As of 2024-04-26 05:50 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found