I am writing a trigger for ClearCase to prevent files e.g.)greater than 10 MB from being added to source control. We are using the ccperl that is installed with ClearCase. In my perl script, I've tried using the two examples below and it returns nothing:
1.
$filesize = -s "test.txt";
print "Size: $filesize\n;"
2.
use File::stat;
$filesize = stat("test.txt")->size;
print "Size: $filesize\n";
Any help is much appreciated. Thanks.
Gary
1.
$filesize = -s "test.txt";
print "Size: $filesize\n;"
2.
use File::stat;
$filesize = stat("test.txt")->size;
print "Size: $filesize\n";
Any help is much appreciated. Thanks.
Gary