Link to home
Start Free TrialLog in
Avatar of omcr
omcr

asked on

Using stat

Here is my code:
my ($a1,$a2,$a3,$a4,$a5,$a6,$a7,$bits,$a9,$a10,$a11,$a12,$a13) =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
ASKER CERTIFIED SOLUTION
Avatar of ravenpl
ravenpl
Flag of Poland image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial