[plug] A question for perl hackers

Trevor Phillips T.Phillips at murdoch.edu.au
Fri Aug 30 10:07:22 WST 2002


On Friday 30 August 2002 09:45, Trevor Phillips wrote:
> I'm a bit late to this thread, but here's my $0.02...

Oops!!
Forgot to also mention: If you're just generally talking about getting sizes 
of files in a directory, I'd use opendir()/readdir()/closedir() to read the 
directory, and -s or stat() to get the size of the files. ^_^

ie; Don't call or rely on external programs when you can do it more 
efficiently in Perl itself...

-- 
. Trevor Phillips             -           http://jurai.murdoch.edu.au/ . 
: Web Technical Administrator     -          T.Phillips at murdoch.edu.au : 
| IT Services                        -              Murdoch University | 
 >--------------------------------------------------------------------<
| On nights such as this, evil deeds are done. And good deeds, of     /
| course. But mostly evil, on the whole.                             /
 \      -- (Terry Pratchett, Wyrd Sisters)                          /



More information about the plug mailing list