Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:
@dir = sort {lc($a) cmp lc($b)} @dir; foreach $line (@dir) { if (-f "$config{'root_dir'}/$in{'username'}/$line") { @stat=stat("$config{'root_dir'}/$in{'username'}/$line"); if ($stat[7] > 1000) { $stat[7] *= .001; $stat[7] = int($s +tat[7]); $stat[7] .= " KB"; } else { $stat[7] = int($stat[7]); $stat[7] .= " Bytes"; } $stat[9] = localtime($stat[9]); $list .= qq~ <tr> <td width="30"><input type="radio" value="$line" name="file" onclick=" +document.files.file_input.value='$line'"></td> <td width="250"><font face="Arial"><a href="$config{'root_url'}/$in{'u +sername'}/$line" target="_window">$line</a></font></td> <td width="100"><font face="Arial">$stat[7]</font></td> <td><font face="Arial">$stat[9]</font></td> </tr>~;
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: how can i also show sub folders
by tstock (Curate) on Nov 21, 2001 at 13:21 UTC | |
|
Re: how can i also show sub folders
by Zaxo (Archbishop) on Nov 21, 2001 at 13:14 UTC | |
by jclovs (Sexton) on Nov 21, 2001 at 14:04 UTC | |
by Anonymous Monk on Nov 21, 2001 at 18:47 UTC |