|
|
| No such thing as a small change | |
| PerlMonks |
Re: Ordered Directory Listing CGIby hiseldl (Priest) |
| on May 15, 2005 at 02:43 UTC ( #457144=note: print w/ replies, xml ) | Need Help?? |
|
I've revisited this script and made some enhancements and cleaned it up so it is less obfuscated. (-:
Most notably I've taken another look at Aristotle's code and replaced the cute splice with array refs which turns out to be useful in the output section. E.g. I've added a directory count and a file count. The other noticable part is that I've removed the 0 .. (@_ / $columns) and inserted a grep to eliminate extra list elements that cause extra TR elements (the initial reason I put that in there in the first place). And, yes, I cleaned up the exclusion logic to use eq, etc. Enjoy! Update: Yes, the grep is a hack, for a full treatize on this issue click here. --
In Section
Code Catacombs
|
|
||||||||||||||||||||||