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.
Though this is not as economical (memory wise) as the above solution in Re: forcing list-contextsay scalar(@{[readdir $dh]});
|
---|
In Section
Seekers of Perl Wisdom