I have the following program:
#!/opt/perl/bin/perl
$file="/home/nfaber/test.txt";
if ( -e $file) {
print ( -s $file);
}
else {
print "$file does not exist";
}
The program returns the number of bytes on the command line. What I want to do is store the number of bytes in a variable that I can compare to another variable passed via the @ARGV.
Any help is appriciated.
Thanks
#!/opt/perl/bin/perl
$file="/home/nfaber/test.txt";
if ( -e $file) {
print ( -s $file);
}
else {
print "$file does not exist";
}
The program returns the number of bytes on the command line. What I want to do is store the number of bytes in a variable that I can compare to another variable passed via the @ARGV.
Any help is appriciated.
Thanks