|
|
| Perl-Sensitive Sunglasses | |
| PerlMonks |
Re: How can I run only a determined part of script not using if/then statementsby 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 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.
In Section
Seekers of Perl Wisdom
|
|
||||||||||||||||||||||||