in reply to Re: Capturing shell command error
in thread Capturing shell command error

i understand what you're saying.
my $str=-s "upload.log"; print $str;
How can i calculate the size for multiple files without looping like,
i have upload1.log, upload2.log, upload3.log.
how can i get the sizes without looping ?. How can i use upload* pattern in the -s option ?. I tried but it's not return anything.
Can you please ?
- kulls

Replies are listed 'Best First'.
Re^3: Capturing shell command error
by explorer (Chaplain) on Jan 07, 2006 at 12:52 UTC
    @size = map { -s $_ } glob("upload*.log");