Do you know where your variables are? | |
PerlMonks |
Re: Find out, if "use warnings(all)" and "use strict(all)" are usedby Krambambuli (Curate) |
on Apr 23, 2007 at 14:39 UTC ( [id://611529]=note: print w/replies, xml ) | Need Help?? |
It's important I believe to cut a very clear line between what happens at compile time and what happens at runtime. Once those very distinctive steps are put apart and understood, it might be that your question changes. Playing a bit with BEGIN{} might help in getting things apart; This will display at runtime the values in use at compile time _at that specific point in the program_. Note that to unpack ${^WARNING_BITS} - a 96 bits value - your bintodec sub won't work. You might be interested in having a look on the warnings.pm source code - it's not really scary and definitely worth a look - and maybe check the 'Pragmatic modules' in perlmodlib. Hope that helps.
In Section
Seekers of Perl Wisdom
|
|