Problems? Is your data what you think it is? | |
PerlMonks |
Re: Presenting a local listing of remote files over HTTPby hacker (Priest) |
on Jul 03, 2002 at 19:45 UTC ( [id://179281]=note: print w/replies, xml ) | Need Help?? |
Except that your last line above actually reverses the size, so a file of 180,224 bytes becomes 422,081 bytes when returned from commify(). Easy fix: s/scalar reverse/scalar/ Great tip, and benches a few millis faster in execution time on longer file listings.
In Section
Cool Uses for Perl
|
|