From:                   Sibi John <[EMAIL PROTECTED]>

> does anybody know whether  -s file comparision operator returns the
> file size in bytes or not.. if it does is there any way to change it
> to kilobytes or mega bytes ..  thanks.

>From perlfunc manpage:

                -s  File has nonzero size (returns size in bytes).


To KB :
        
        $KB_size = ( -s $file ) >> 10;

To MB

        $MB_size = ( -s $file ) >> 20;

Jenda

=========== [EMAIL PROTECTED] == http://Jenda.Krynicky.cz ==========
There is a reason for living. There must be. I've seen it somewhere.
It's just that in the mess on my table ... and in my brain.
I can't find it.
                                        --- me
_______________________________________________
Perl-Win32-Admin mailing list
[EMAIL PROTECTED]
http://listserv.ActiveState.com/mailman/listinfo/perl-win32-admin

Reply via email to