P is for Practical | |
PerlMonks |
Re: forcing list-contextby Arunbear (Prior) |
on Jan 23, 2012 at 17:31 UTC ( [id://949468]=note: print w/replies, xml ) | Need Help?? |
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-context
In Section
Seekers of Perl Wisdom
|
|