in reply to Using Perl for directory listing

If you have the file's path, you can use -s to get its size:
my $size = -s $item;

If you need more details, use stat.

map{substr$_->[0],$_->[1]||0,1}[\*||{},3],[[]],[ref qr-1,-,-1],[{}],[sub{}^*ARGV,3]