Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Perl > Perl Misc > meaning of $^S

Reply
Thread Tools

meaning of $^S

 
 
Ilya Zakharevich
Guest
Posts: n/a
 
      04-14-2006
[A complimentary Cc of this posting was sent to

<(E-Mail Removed)>], who wrote in article <(E-Mail Removed) .com>:
> $^S State
> --------- -------------------
> undef Parsing module/eval
> true (1) Executing an eval
> false (0) Otherwise
>
> And that the undef state can happen in a $SIG{__WARN__} or
> $SIG{__DIE__}. Are those the only times that $^S can be undef? I
> don't know. But _something_ more should be said about that in the pod.


As I said, there should not. defined $^S has *semantic*: you can call
eval""/require.

> And $^S == 1 in a "use" statement as well


A bug. I was too lazy when implementing $^S, and did not notice that
during use() there is an extra "frame" (do not rememeber what it is
created for). Apparently, nobody bothered to fix this...

Hope this helps,
Ilya
 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Understanding search queries, semantics, and "Meaning" ...aren't weall looking for meaning? 5lvqbwl02@sneakemail.com Python 4 01-14-2009 02:28 PM
use work.my_package.all-->what exactly meaning of this Parthav VHDL 4 01-13-2006 07:50 PM
WHAT IS THE MEANING *FESWANY MCSE 3 01-28-2005 02:55 PM
Meaning of word "develop" in the exam (70-300) TomTom MCSD 10 08-13-2004 04:39 PM
Meaning of output value? Sander Odekerken VHDL 2 05-18-2004 05:41 PM



Advertisments