Beefy Boxes and Bandwidth Generously Provided by pair Networks
Clear questions and runnable code
get the best and fastest answer
 
PerlMonks  

Re: URL linking within script

by december (Pilgrim)
on May 13, 2003 at 12:12 UTC ( #257697=note: print w/replies, xml ) Need Help??


in reply to URL linking within script

This might seem like a cool idea, and it would be for normal scripts, but the direct passing of arguments and executing them is probably not a good idea for cgi applications. You probably do not want people to be able to call all functions in your code; let alone, when someone finds a way to trick the 'define' clause and gets to run their own perl/machine code. I would use a dispatch method like chromatic already demonstrated, so you have much more control over what gets called and therefore executed.

If you still really want to do it, you'll have to use no strict "refs";, because this is exactly what strict is meant to stop.

Cya,

    december

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others having an uproarious good time at the Monastery: (5)
As of 2020-08-03 13:23 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Which rocket would you take to Mars?










    Results (27 votes). Check out past polls.

    Notices?