RosettaCodeData/Task/File-size/Perl/file-size-2.pl

4 lines
120 B
Perl
Raw Permalink Normal View History

2016-12-05 22:15:40 +01:00
use File::Spec::Functions qw(catfile rootdir);
my $size1 = -s 'input.txt';
my $size2 = -s catfile rootdir, 'input.txt';