On Fri 17 Sep, Larry Wall wrote:
> 
>     $?file    Which file am I in?
>     $?line    Which line am I at?
>     $?package Which package am I in?
>     @?package Which packages am I in?
>     $?module  Which module am I in?
>     @?module  Which modules am I in?
>     $?class   Which class am I in?
>     @?class   Which classes am I in?
>     $?role    Which role am I in?
>     @?role    Which roles am I in?
>     $?grammar Which grammar am I in?
>     @?grammar Which grammars am I in?
>     &?sub     Which sub am I in?
>     @?sub     Which subs am I in?
>     $?sub     Which sub name am I in?
>     &?block   Which block am I in?
>     @?block   Which blocks am I in?
>     $?block   Which block label am I in?
> 
> Some of those may be sillier than others.  But the fact that these all
> contain a C<?> is a good visual indication that they're all potentially
> generic in meaning when you use them in a macro.  I kinda like that.

Maybe there are some more...

$?perl  Which version of perl am I in

And relating to the outside world

$?os    Which operating system am I operating on

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

Richard

-- 
Personal     [EMAIL PROTECTED]            http://www.waveney.org
Telecoms     [EMAIL PROTECTED]  http://www.WaveneyConsulting.com
Web services [EMAIL PROTECTED]            http://www.wavwebs.com
Independent Telecomms Specialist, ATM expert, Web Analyst & Services

Reply via email to