Beefy Boxes and Bandwidth Generously Provided by pair Networks
P is for Practical
 
PerlMonks  

Re: forcing list-context

by Arunbear (Prior)
on Jan 23, 2012 at 17:31 UTC ( [id://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
Domain Nodelet?
Node Status?
node history
Node Type: note [id://949468]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others admiring the Monastery: (7)
As of 2024-04-23 10:05 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found