Just another Perl shrine | |
PerlMonks |
Re: Re: using symbol table lookupby asinghvi (Acolyte) |
on Sep 25, 2001 at 20:18 UTC ( [id://114570]=note: print w/replies, xml ) | Need Help?? |
My purpose is that my perl scripts read many text files So rather than checking each one in each script, I thought I would always make my filename variables always as "something_file". And have a standard subroutine that checks all %main:: scalar variables =~ /\_file/ and do the checks on each entry (Like file exists, file is readable etc.) .
In Section
Seekers of Perl Wisdom
|
|