Solved

query_string

Posted on 2000-04-08
10
233 Views
Last Modified: 2013-12-25
hi experts,
i don't know how to get the query_string
using CGI.pm (oo type)

/cgi-bin/show.cgi?hello

use CGI;
$qs = new CGI;
$any = $qs->param????

how about /cgi-bin/show.cgi?action=add&name=stanley&email=abc@xxx.com
??
please help
0
Comment
Question by:mwhuen
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 5
  • 4
10 Comments
 
LVL 84

Accepted Solution

by:
ozo earned 20 total points
ID: 2697264
($keywords) = $qs->param;
$any = $qs->param($keywords);
$query = $qs->query_string;
$action = $qs->param('action');
$name = $qs->param('name');
$email = $qs->param('email);
0
 

Expert Comment

by:stanleyhuen
ID: 2697644
thanks, but ozo can you explain more details to me,
what is meant by
($keywords) = $qs->param;
$any = $qs->param($keywords);

$query = $qs->query_string;
??
0
 
LVL 84

Expert Comment

by:ozo
ID: 2698131
$any = $qs->param($keywords); #gets 'hello'
$query = $qs->query_string; #gets 'action=add&name=stanley&email=abc%40xxx.com'
see
perldoc CGI
0
Why You Need a DevOps Toolchain

IT needs to deliver services with more agility and velocity. IT must roll out application features and innovations faster to keep up with customer demands, which is where a DevOps toolchain steps in. View the infographic to see why you need a DevOps toolchain.

 

Author Comment

by:mwhuen
ID: 2700974
why the
()
in
($keywords)=$qs->param;
so important?
if i omit it, it can't show the result.
0
 
LVL 84

Expert Comment

by:ozo
ID: 2701007
the () causes $qs->param to be evaluated in list context instead of scalar context
0
 

Author Comment

by:mwhuen
ID: 2708594
Adjusted points from 5 to 20
0
 

Author Comment

by:mwhuen
ID: 2708595
sorry,
i am really new in programming,
what is list content and what is scalar context?
0
 
LVL 84

Expert Comment

by:ozo
ID: 2708654
see
perldoc perldata
0
 

Author Comment

by:mwhuen
ID: 2720535
besides run perldoc in unix shell,
where i can read perldoc?
i prefer web page perl doc
0
 
LVL 84

Expert Comment

by:ozo
ID: 2721023
0

Featured Post

On Demand Webinar - Networking for the Cloud Era

This webinar discusses:
-Common barriers companies experience when moving to the cloud
-How SD-WAN changes the way we look at networks
-Best practices customers should employ moving forward with cloud migration
-What happens behind the scenes of SteelConnect’s one-click button

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Chocolatey under PowerShell is not working properly 3 93
AWK Code gives empty file, why? 12 62
Help to debug powershell script 5 57
Sleep one hour while in loop 4 43
Introduction This tutorial will give you a fast look what you can do with WhizBase. I expect you already know how to work with HTML at least, and that you understand the basics of the internet and how the internet works. WhizBase is a server-s…
I hope you'll find this tutorial useful and interesting. So let's try to extend Tcl with a new package.  For anyone more deeply interested please check out the book "Practical Programming in Tcl and Tk". It's really one of the best written books abo…
In this fifth video of the Xpdf series, we discuss and demonstrate the PDFdetach utility, which is able to list and, more importantly, extract attachments that are embedded in PDF files. It does this via a command line interface, making it suitable …
Video by: Mark
This lesson goes over how to construct ordered and unordered lists and how to create hyperlinks.

737 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question