wang jm wrote:

> Hello everyone,
> I am trying to measure the size of binary and .SWF files.I
> am new to Perl.Who can help me to tell me what syntax to
> use and how to measure?Thanks in advance.
> Best regards,


One way:

        my $size = -s $file;

also works with an open filehandle instead of filename.

-- 
   ,-/-  __      _  _         $Bill Luebkert   ICQ=14439852
  (_/   /  )    // //       DBE Collectibles   Mailto:[EMAIL PROTECTED]
   / ) /--<  o // //      http://dbecoll.tripod.com/ (Free site for Perl)
-/-' /___/_<_</_</_     Castle of Medieval Myth & Magic http://www.todbe.com/

_______________________________________________
Perl-Win32-Admin mailing list
[EMAIL PROTECTED]
To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs

Reply via email to