Beefy Boxes and Bandwidth Generously Provided by pair Networks
P is for Practical
 
PerlMonks  

Re: How to open an URL with variable in CGI?

by marinersk (Priest)
on Jul 27, 2015 at 23:26 UTC ( [id://1136528]=note: print w/replies, xml ) Need Help??


in reply to How to open an URL with variable in CGI?

I'm guessing (because it doesn't look like you posted a fully functional example), but -- if you intend $1to be the first parameter sent to the subroutine which contains the code you posted, you need to grab that in advance:

sub doMyThing { my ($changeNumber, @otherParameters) = @_; : : print $q->start_form( -name => 'main_form2', -method => 'GET', -action => "http://xxx.com/cgi-bin/perforce?Submit=describe\& +changenum=$changeNumber", -target => '_blank', ); : : return; }

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others musing on the Monastery: (3)
As of 2024-04-19 05:53 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found