Beefy Boxes and Bandwidth Generously Provided by pair Networks httptech
Keep It Simple, Stupid
 
PerlMonks  

Re: How can I run only a determined part of script not using if/then statements

by grep (Monsignor)
on Jan 15, 2002 at 06:37 UTC ( [id://138840]=note: print w/replies, xml ) Need Help??

This is an archived low-energy page for bots and other anonmyous visitors. Please sign up if you are a human and want to interact.


in reply to How can I run only a determined part of script not using if/then statements

'==' is a numeric comparison. You want 'eq' for text.

Change
if ($func == "vi")
for
if ($func eq "vi")
and you are set.

also you should check out perlop

UPDATE: PLEASE follow busunsl's suggestions I would also suggest Ovid's CGI Course it addresses many security concerns.

grep
grep> cd pub grep> more beer

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://138840]
help
Sections?
Information?
Find Nodes?
Leftovers?
    Notices?
    hippoepoptai's answer Re: how do I set a cookie and redirect was blessed by hippo!
    erzuuliAnonymous Monks are no longer allowed to use Super Search, due to an excessive use of this resource by robots.