On 13 Sep 2000, Perl6 RFC Librarian wrote:
> =head1 DESCRIPTION
>
> $_ is the default scalar for a small set of operations and functions.
> Most of these operations and functions are ones that use C<=~>.
Er, no. Quite a few others also use $_. The ones I found: -X filehandle
tests (except for -t), abs, alarm, chomp, chop, chr, chroot, cos, defined,
eval, exp, glob, hex, int, lc, lcfirst, length, log, lstat, oct, ord, pos,
print, quotemeta, readlink, ref, require, rmdir, sin, split, sqrt, stat,
study, uc, ucfirst, unlink. None of those uses C<=~>.
> Problem:
> since <> has a different behavior in a list context, does
> "C<(> <> C<);>" break, or does it mean something like "C<@_ => <>c<;>" ?
Eek. This is really ugly. I propose:
since C<< <> >> has a different behavior in a list context, does
"C<< (<>); >>" break, or does it mean something like "C>> @_ = <>; >>" ?
I especially wonder about your c<;> escape.
> =head2 3: For Functions In General
>
> "C<stat>;", "C<length;>", and many others could use C<$_>.
Er, they already do. man perlfunc, and/or see my list above.
Cheers,
Philip
--
Philip Newton <[EMAIL PROTECTED]>