in reply to Re^2: Counting bytes in a Unicode document
in thread Counting bytes in a Unicode document
Yes, -s is just another way to stat.
For example, one could write the following:
defined( my $s = -s $qfn ) or die( "Can't stat `$qfn`: $!\n" ); ... $s ...
But it could also be written as follows:
stat( $qfn ) or die( "Can't stat `$qfn`: $!\n" ); ... -s _ ...
or
defined( my $s = ( stat( $qfn ) )[ 7 ] ) or die( "Can't stat `$qfn`: $!\n" ); ... $s ...
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^4: Counting bytes in a Unicode document
by etj (Priest) on Oct 15, 2024 at 12:39 UTC | |
by ikegami (Patriarch) on Oct 15, 2024 at 15:38 UTC | |
by etj (Priest) on Oct 23, 2024 at 08:55 UTC | |
by ikegami (Patriarch) on Oct 23, 2024 at 10:04 UTC |