http://qs1969.pair.com?node_id=266848


in reply to Re: How to obtain the size of a remote Winnt4 share
in thread How to obtain the size of a remote Winnt4 share

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?).