Change your map line to:
print join("\n", grep { defined } @dirstats);...and you avoid using map in a void context (What's wrong with using grep or map in a void context?).
In reply to Re: Re: How to obtain the size of a remote Winnt4 share
by zakb
in thread How to obtain the size of a remote Winnt4 share
by blackadder
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |