Free web development scripts for the webmasterDevelopment Scripts

 Site Navigation
 o Development Scripts
 o Text Only Edition
 o PHP.net News
 o Tutorials
 o Register an account
 o New entries this week
 o Affiliates/Links
 o Contact Us
 o About us
 o Advanced Search

 Browse Path
 o 2 users online
 o Most users online: 67
 o Home
  o Perl
   o Files
    o Script

 Member Login
User Name
Password

 Standards
Valid XHTML 1.0!
Valid 
CSS!

 Recommended Links
 o PHP Freaks
 o Designer Baby Clothes
 o Advertise Here Make Money
 o OxyScripts
 o devnet
 o Wedding Vendor Directory
 o Free Wedding Websites
 o Open Source Design
 o designplace

Determine File Size (Rated 5)

Description:

This little code snippet shows how you can determine the size of a file in Perl.

Thanks to Scorpions4ever at devshed for writing this :)

Code starts here


# Written by Scorpions4ever @ devshed

$filename = "test.txt"; # your filename comes here
my ($dev, $ino, $mode, $nlink, $uid, $gid, $rdev, $size, $atime, $mtime,
$ctime, $blksize, $blocks) = stat $filename;

print "Size of $filename in bytes = $size\n";

Last Edited: 1046393343


Submitted by Devscripts on 28-02-2003 0:49


Rate This Script

User Contributed Comments

Registered Members login
© Copyright 2003 - Devscripts.net