barrycarlyon has asked for the wisdom of the Perl Monks concerning the following question:

Just looking at how perl monks work,

the address bar says perlmonks.org/?node_id=x

how is x obtained in the perl script?

Say: my $node_id = (value x from address bar)

Yours

Barry Carlyon barry@barrycarlyon.co.uk

Replies are listed 'Best First'.
Re: How does perlmonks.org work
by jasonk (Parson) on Apr 18, 2006 at 14:01 UTC

    One possible way:

    use CGI; my $cgi = CGI->new; my $node_id = $cgi->param('node_id');

    We're not surrounded, we're in a target-rich environment!

      That's basically exactly how it does it.