Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

php to perl

Posted on 2006-07-15
3
Medium Priority
?
3,044 Views
Last Modified: 2008-03-17
$strXmlData = isset($_POST['domainID']) ? $_POST['domainID'] : null;

what is the perl equivalent?

isset($_GET['domainID']) ? $_GET['domainID'] : null;

is converted to

 $q->param('domainID') ? $q->param('domainID') : '';

but I'm not sure if the code should be different for POST vs. GET..
0
Comment
Question by:kesea
[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
3 Comments
 
LVL 28

Accepted Solution

by:
FishMonger earned 2000 total points
ID: 17116210
>> but I'm not sure if the code should be different for POST vs. GET..

No, you don't need to change to code.  The CGI module can import either post or get submissions with the same code.

Here's a shorter method.

$strXmlData = $q->param('domainID') || '';
0
 

Author Comment

by:kesea
ID: 17257799
so sorry, that answer helped me out, I just forgot to accept it.
0

Featured Post

New benefit for Premium Members - Upgrade now!

Ready to get started with anonymous questions today? It's easy! Learn more.

Question has a verified solution.

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

I have been pestered over the years to produce and distribute regular data extracts, and often the request have explicitly requested the data be emailed as an Excel attachement; specifically Excel, as it appears: CSV files confuse (no Red or Green h…
In the distant past (last year) I hacked together a little toy that would allow a couple of Manager types to query, preview, and extract data from a number of MongoDB instances, to their tool of choice: Excel (http://dilbert.com/strips/comic/2007-08…
Explain concepts important to validation of email addresses with regular expressions. Applies to most languages/tools that uses regular expressions. Consider email address RFCs: Look at HTML5 form input element (with type=email) regex pattern: T…
Six Sigma Control Plans

704 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