good chemistry is complicated, and a little bit messy -LW |
|
PerlMonks |
comment on |
( [id://3333]=superdoc: print w/replies, xml ) | Need Help?? |
Note Re: $. - smarter than you might think which describes using <DATA> to access the source of the script. That's a neat way to get the source actually being executed and if there is any excuse (like configuration parameters for example) to have a __DATA__ section then much of the code pertaining to the tests can vanish from sight as being relevant to checking configuration. The code protection could be made rather strong by requiring a key (some of the source) to decode important parts of the code that then get executed using eval. DWIM is Perl's answer to Gödel In reply to Re^2: scramble ad link
by GrandFather
|
|