in reply to Re: Package variables
in thread Package variables
of course that could be optimized further by parsing out the url at the same time that we test for it, and setting it to 'index' if it's not there, but you get the idea.use CGI::Pretty qw( param ); if ( defined( param('url') ) { #lets not waste any CPU here, this gets + called even when I'm index.cgi #okay, this isn't the front page, lets see what we've got. my $object = new CGI(); my $url = $object->('url'); # etc....
|
|---|