omcr
asked on
Using stat
Here is my code:
my ($a1,$a2,$a3,$a4,$a5,$a6,$ a7,$bits,$ a9,$a10,$a 11,$a12,$a 13) =stat "/home/log.txt";
if ($bits > 75){
do something;
}
It works fine but isn't there a cleaner way to use stat to pull just the size of the file?
I'm running perl on a solaris box.
Thanks
my ($a1,$a2,$a3,$a4,$a5,$a6,$
if ($bits > 75){
do something;
}
It works fine but isn't there a cleaner way to use stat to pull just the size of the file?
I'm running perl on a solaris box.
Thanks
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.