Beefy Boxes and Bandwidth Generously Provided by pair Networks
Don't ask to ask, just ask
 
PerlMonks  

Re: CGI::Application Question

by elusion (Curate)
on May 19, 2003 at 02:22 UTC ( #259048=note: print w/ replies, xml ) Need Help??


in reply to CGI::Application Question

The easiest way to do this would be to add another parameter to the query string. In other words, request "index.pl?node=articles&n=15" or something like it. Then...

sub articles { my ($self) = @_; my $q = $self->query; # CGI query object my $n = $q->param('n'); # get article number ... # get and display the nth article }
Hope this helps,

elusion : http://matt.diephouse.com


Comment on Re: CGI::Application Question
Download Code
Re: Re: CGI::Application Question
by debiandude (Scribe) on May 19, 2003 at 02:28 UTC
    Wow thanks. That worked right away.

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others cooling their heels in the Monastery: (11)
As of 2015-07-03 11:11 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (51 votes), past polls