Beefy Boxes and Bandwidth Generously Provided by pair Networks
more useful options
 
PerlMonks  

Re: forcing list-context

by Arunbear (Parson)
on Jan 23, 2012 at 17:31 UTC ( #949468=note: print w/replies, xml ) Need Help??


in reply to forcing list-context

Another way is to unload the readdir call into a temporary array and then call scalar on that e.g.
say scalar(@{[readdir $dh]});
Though this is not as economical (memory wise) as the above solution in Re: forcing list-context

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://949468]
help
Chatterbox?
and all is quiet...

How do I use this? | Other CB clients
Other Users?
Others drinking their drinks and smoking their pipes about the Monastery: (4)
As of 2016-12-05 20:57 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    On a regular basis, I'm most likely to spy upon:













    Results (93 votes). Check out past polls.