[Date Prev][Date Next][Thread Prev][Thread Next] [Search] [Date Index] [Thread Index]

Re: [MacPerl] -s File Test Operator



Vicki Brown writes:
|Could -s (under MacPerl) be modified slightly to return the size of the
|data fork (as it currently does) if called in scalar context, and the size
|of both forks if called in list context?

It could, but it would break some code. Consider:

my ($size, $age) = (-s $file, -M _);

and moving a script that uses the two value -s to Unix could produce quiet
bugs:

my ($dsize, $rsize, $age) = (-s $file, -M _);

Brian

***** Want to unsubscribe from this list?
***** Send mail with body "unsubscribe" to mac-perl-request@iis.ee.ethz.ch