• We’re currently investigating an issue related to the forum theme and styling that is impacting page layout and visual formatting. The problem has been identified, and we are actively working on a resolution. There is no impact to user data or functionality, this is strictly a front-end display issue. We’ll post an update once the fix has been deployed. Thanks for your patience while we get this sorted.

Accessing post and get in perl

pushVTEC

Senior member
I know php I can use $_REQUEST or $_POST or $_GET, but with all my research i've done it looks like the only way to access them in perl is to parse the $ENV{'QUERY_STRING'} variable right?
 
Yeah the program i'm making uses get, I know post comes from a stdin.

Also does anyone know of a way to get a hostname from an IP address in perl? Is there a function for it or do I have to write it myself? Thanks
 
Also does anyone know of a way to get a hostname from an IP address in perl?

You want gethostbyaddr(), if you're doing perl development it would probably be a good idea to keep a copy of the perl man pages around.
 
HTML:

<input name="somevariable">

Perl:

use CGI qw🙂standard); # Put this line at the top of your script.
$somevar = param('somevariable');
 
Back
Top