Beefy Boxes and Bandwidth Generously Provided by pair Networks
No such thing as a small change
 
PerlMonks  

Re^2: How to convert an @ARGV to form based input?

by taint (Chaplain)
on Aug 21, 2012 at 16:50 UTC ( #988796=note: print w/replies, xml ) Need Help??


in reply to Re: How to convert an @ARGV to form based input?
in thread How to convert an @ARGV to form based input?

Greetings @CountZero, and thank you for your continued efforts.
Well, I see what the problem has been. Using the advice listed within this thread -- including my own thoughts, have all returned the POSTed data as $domain=blah..., instead of turning $domain into blah... -- which was what the title suggested ;).
So. I think the best idea will be to abandon the use of NET::DNS::*, and simply slurp the form input data, and pass it to my system via a:
read(STDIN,$temp,$ENV{'CONTENT_LENGTH'});.
This worked quite well for my whois script, and I was able to easily sanitize the input by filtering $temp before handing it off to the system itself.
Thanks again, to you, and everyone else who attempted to help me solve this problem.
Perhaps this dialog will help others who fall into this dilemna. :)
--Chris
#!/usr/bin/perl -Tw
use perl::always;
my $perl_version = "5.12.4";
print $perl_version;

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://988796]
help
Chatterbox?
[zentara]: it's useful if you want to lockup a multicore machine :-)
[zentara]: marto I would give up the key easy with drugs....
[Corion]: Discipulus: No, the Perl opcodes are more high-level than the raw processor opcodes
[zentara]: sodium pentathol and a beautiful woman interogator :-)
[Discipulus]: thanks Corion if so i probably never meet them in my life.. ;=)
[Discipulus]: have you all a nice and relaxing weekend!
NodeReaper on the other hand, I've already bought the hammer....

How do I use this? | Other CB clients
Other Users?
Others exploiting the Monastery: (11)
As of 2017-07-28 12:16 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    I came, I saw, I ...
























    Results (428 votes). Check out past polls.