Rob Dixon wrote:

> Giarrocco, Camillo wrote:
>> Hi,
>>
>> Can anybody tell me how can I check the size of a file?
>>
>> I know the "if  (-s "file") function but never used and don't know the
>> right syntax of it.
> 
> Well it's just that really. But you can do more than just test it for
> being non-zero with 'if'.
> 
>     my $size = -s 'file';
> 
> and use it as you will.
> 
> Rob

there's also 
        perldoc -f stat

my $filesize = (stat( $filename ))[7];



-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to