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

Re: [MacPerl] -s File Test Operator



> A question.  (Given that everything in Perl is an operator, including the
> "functions", perhaps it's not too strange to consider this operator a
> function?)
> 
> 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?
> 
> Is that too off the wall?

That would break lines like this:

print "$file ", -s $file;

-- 
  Kevin Reid.      |         Macintosh.
   "I'm me."       |      Think different.

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