now for $stats7 which gives you the size, I need to make it say KB at the end if its over 1000 and then if its not Bytes.opendir(USER, "$user{'site_id'}"); @userfiles = grep !/^\.\.?\z/, readdir USER; close USER; @userfiles=(sort @userfiles); foreach $line (@userfiles) { @stats = stat("$user{'site_id'}/$line"); }
In reply to using the stat function by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |