http://www.perlmonks.org?node_id=147489


in reply to Re: Security with open() in CGI scripts
in thread Security with open() in CGI scripts

Another thought on the token idea here...

I'd recommend having another file external to the script, which contains some quick perl code to create the token list, such as
my %tokens = {1 => '/dir1/', 2 => '/dir2/', 3 => '/dir3/};
<blatently stolen from Gary's reply ;)>

and then just require this file when you need to reference the token. This way, it's easy to add to the themes without having to find where it's at in some script. I'm personally all about the use of extra files for data like this - it helps keep script sizes smaller and helps to separate the code from the data.

~Brian