use Object::File; my $file = File->new("bah.mp3"); my $size = $file->getSize();