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:  <%-{-{-{-<