As stvn wrote, you can use perl's builtin -s function to get a file's size. If you want to check out all the other dash functions perl has, you can run perldoc -f -X at a command prompt.
One thing to keep in mind if you're doing multiple tests on one file, is you can pass _ in as the argument, and it will use the cached stat info from the previous test, alleviating the need to do yet another stat on the same file.
In reply to Re: filesize module on win32 systems
by revdiablo
in thread filesize module on win32 systems
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |