Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl Monk, Perl Meditation
 
PerlMonks  

Re^5: Using guards for script execution?

by stevieb (Canon)
on Mar 01, 2017 at 02:12 UTC ( [id://1183232]=note: print w/replies, xml ) Need Help??


in reply to Re^4: Using guards for script execution?
in thread Using guards for script execution?

You are right on both counts. But, I didn't consider fully qualified vars to be relevant here ;)

...and the true val, I didn't think of in this context. I should have.

Thanks for pointing these out. ++

  • Comment on Re^5: Using guards for script execution?

Replies are listed 'Best First'.
Re^6: Using guards for script execution?
by AnomalousMonk (Archbishop) on Mar 01, 2017 at 02:52 UTC
    ... the true val ...

    This is actually kinda neat. This is Compile Time Function Evaluation (CTFE), which D, for instance, trumpets as a major feature (see this). Perl, of course, has had this for a long time. Data structures, functions, etc., can be generated and checked at compile time; if they are incorrect, the code can be aborted prior to run-time.


    Give a man a fish:  <%-{-{-{-<

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://1183232]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others imbibing at the Monastery: (3)
As of 2026-04-11 14:14 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found

    Notices?
    hippoepoptai's answer Re: how do I set a cookie and redirect was blessed by hippo!
    erzuuliAnonymous Monks are no longer allowed to use Super Search, due to an excessive use of this resource by robots.