in reply to Re: size of a file
in thread size of a file

Do you mean something like this?
$size= -s $file; die "Can't open file $!" unless open NEWFILE, ">/tmp/size_of_hello"; print NEWFILE $size,"\n"; close NEWFILE;