Perl – Obtain the File Size

Here is a cool one line Perl script you can use to quickly obtain the file size of a file. The syntax to run the script is “perl [scriptname] [filename]”; in the below example I use the script itself as the file.

Perl script outputs the file size

Perl script outputs the file size

Output:

Perl script - fie size output

Perl script - fie size output

This entry was posted in Perl, Programming Languages, Technology and tagged , , , , , , . Bookmark the permalink.

Leave a Reply

Your email address will not be published. Required fields are marked *


7 + = nine