Beefy Boxes and Bandwidth Generously Provided by pair Networks
Your skill will accomplish
what the force of many cannot
 
PerlMonks  

Re: Security with open() in CGI scripts

by Trimbach (Curate)
on Feb 26, 2002 at 04:36 UTC ( #147476=note: print w/ replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    my $template = $theme->{ThemeDir}."index.html";
    
  2. or download this
    my %themes = {1 => '/dir1/', 
                  2 => '/dir2/',
    ...
    my $theme = param(theme);
    my $filename = "$themes{$theme}.index.html";
    open (FILE, $filename);
    

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://147476]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others examining the Monastery: (5)
As of 2014-09-18 22:36 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    How do you remember the number of days in each month?











    Results (126 votes), past polls