On Mon, 25 Sep 2000, Nathan Wiger wrote:

> >         perl -e 'print -rwx $_'
> >         Can't call method "rwx" on an undefined value at -e line 1.
> 
> Yeah, but read the error - Perl's parsing that as:
> 
> [nwiger@matrix:~]$ perl -MO=Deparse -e 'print -rwx $_';
> print -$_->rwx;
> -e syntax OK

Ok, so that's pathological, but this isn't

        perl -e 'print -rwx($_)'
        Undefined subroutine &main::rwx called at -e line 1.

Just think about all the possible subroutine names you can make out of 
the set of chars [rwxoRWXOezsfdlpSbctugkTBMAC].  I don't think we want to 
prevent the use of those names by allowing the -XXX syntax without some 
special char used as a prefix.  But as the ^ is already taken by the 
cool RFC 23, my idea have hit a dead end:

        -{rwx}
        -~rwx

have ambiguity problems.

Hmmm, does

        -^{rwx}

have a currying interpretation?

John.

Reply via email to