Do you know where your variables are? | |
PerlMonks |
Re: substitution in $0by BrowserUk (Patriarch) |
on Oct 02, 2002 at 16:12 UTC ( [id://202306]=note: print w/replies, xml ) | Need Help?? |
I don't really advocate what you are doing, better I think to store your vars in a seperate file and read them in at runtime, but if you insist, you could use Inline::Files, which make what your doing fairly trivial.
Nice things is that the module is tested, proven and has a backup facility (though only one level of backup). Also, doing this way you don't have to worry about making changes to your code and then having to modify your regexes, or risk forgetting and totally screwing your code. Using the BEGIN and END blocks makes sure it get done at the right time. Cor! Like yer ring! ... HALO dammit! ... 'Ave it yer way! Hal-lo, Mister la-de-da. ... Like yer ring!
In Section
Seekers of Perl Wisdom
|
|