Perl-Sensitive Sunglasses | |
PerlMonks |
assertions ? how do they work..by rootcho (Pilgrim) |
on Nov 24, 2013 at 09:57 UTC ( [id://1064108]=perlquestion: print w/replies, xml ) | Need Help?? |
rootcho has asked for the wisdom of the Perl Monks concerning the following question:
hi guys, Did exactly what the docs says i.e. :
but what I'm getting back is :
Also the explanation in the docs is a bit unclear.. From my undestanding I should be able to declare any sub to be assertion, if I specify :assertion attribute, right ? Then it should be optimised away during compilation unless there is active tag (declared via "use assertions 'tag' ") in the current lexical scope which matches tags provided via command line -A=... ? What I'm missing ?
Back to
Seekers of Perl Wisdom
|
|