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

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?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://949468]
[choroba]: For my "internal" projects, I just have a thumb drive with --bare clones of the repos
[marto]: too add to my RL to do list: "This USB hard drive is damp, do you think my photos will be ok?"

How do I use this? | Other CB clients
Other Users?
Others lurking in the Monastery: (7)
As of 2017-01-23 10:43 GMT
Find Nodes?
    Voting Booth?
    Do you watch meteor showers?

    Results (192 votes). Check out past polls.