Beefy Boxes and Bandwidth Generously Provided by pair Networks
"be consistent"
 
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?
[mz2255]: I'm trying to post a question to "seekers of perl wisdom" but always getting a permission denied when I want to submit. There are no links in my post...

How do I use this? | Other CB clients
Other Users?
Others cooling their heels in the Monastery: (11)
As of 2017-10-19 15:17 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    My fridge is mostly full of:

















    Results (255 votes). Check out past polls.

    Notices?