in reply to beginner - if test on file flags
-s File has nonzero size (returns size in bytes).
-f File is a plain file.
Both use the default variable $_ if no arguments are specified, so the line in question first tests if the value in $_ corresponds to a file name, and if so, adds the size of the file to $total_size
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: beginner - if test on file flags
by morgon (Priest) on Oct 15, 2010 at 15:48 UTC | |
by cdarke (Prior) on Oct 15, 2010 at 16:59 UTC | |
by locked_user sundialsvc4 (Abbot) on Oct 15, 2010 at 17:00 UTC | |
|
Re^2: beginner - if test on file flags
by Anonymous Monk on Oct 15, 2010 at 23:00 UTC |