On Fri, Sep 17, 2004 at 09:25:08AM +0100, Richard Proctor wrote:
: Maybe there are some more...
: 
: $?perl        Which version of perl am I in

It would be "Which version of Perl am I compiled with?"  But $?perlversion
would much clearer.  I suppose the same could be said for $?subname.

: And relating to the outside world
: 
: $?os  Which operating system am I operating on

Again, which OS am I compiled on, or at best, which OS does the compiler
think I'm compiling for, in the case of cross-compilation.

: I am sure there could be many more, perhaps many (all?) of the special
: variables could become $? variables for consistency.

Most of the special variables are process state, not compiler state, and
should live in * instead of ?.

Larry

Reply via email to