0 Replies - 1388 Views - Last Post: 12 October 2007 - 09:53 AM

#1 no2pencil   User is offline

  • Professor Snuggly Pants
  • member icon

Reputation: 6749
  • View blog
  • Posts: 31,233
  • Joined: 10-May 07

File Size

Posted 12 October 2007 - 09:53 AM

Description: Standard way to retrieve the size of a file.
#!/usr/bin/perl
use strict;
use warnings;

my $filesize = -s "file.txt";
print "Size: $filesizen";

Is This A Good Question/Topic? 0
  • +

Page 1 of 1