|
|
| Keep It Simple, Stupid | |
| PerlMonks |
Re: How can I run only a determined part of script not using if/then statementsby 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.
'==' 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
In Section
Seekers of Perl Wisdom
|
|
|||||||||||||||||||||||||