Beefy Boxes and Bandwidth Generously Provided by pair Networks
No such thing as a small change
 
PerlMonks  

Re: URL linking within script

by december (Pilgrim)
on May 13, 2003 at 12:12 UTC ( [id://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
Domain Nodelet?
Node Status?
node history
Node Type: note [id://257697]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others learning in the Monastery: (5)
As of 2024-04-23 13:24 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found