http://qs321.pair.com?node_id=257697


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