Beefy Boxes and Bandwidth Generously Provided by pair Networks
We don't bite newbies here... much
 
PerlMonks  

Re: How to get file descriptor (number)

by liverpole (Monsignor)
on Sep 13, 2005 at 12:12 UTC ( #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? | Other CB clients
Other Users?
Others drinking their drinks and smoking their pipes about the Monastery: (3)
As of 2023-03-20 15:13 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Which type of climate do you prefer to live in?






    Results (59 votes). Check out past polls.

    Notices?