Beefy Boxes and Bandwidth Generously Provided by pair Networks vroom
Perl-Sensitive Sunglasses
 
PerlMonks  

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

by busunsl (Vicar)
on Jan 15, 2002 at 07:01 UTC ( [id://138844]=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

In addition to grep's answer:

Adding use warnings; to your code will give you warnings upon errors like this.

Additionally: using filenames entered by users is probably not a good idea. What if the filename is '../../*' and $func is 'rm'?

Do yourself a favour and read a bit about taint.

Also consider using strict and error messages that give you more information than just that something failed.

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://138844]
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.