SitePoint Sponsor

User Tag List

Results 1 to 5 of 5
  1. #1
    SitePoint Guru arunkumar's Avatar
    Join Date
    Jan 2005
    Location
    India:Chennai
    Posts
    827
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    how to get POST and GET variables in perl

    hello..

    I have been worked in PHP in PHP we just use $post variables to get the value of the post data.

    When i came to PERL how can i pass the form data and get in the passed page.


    please give me one example for POST and GET..
    Where there is a will there is a way
    ArunKumar

  2. #2
    SitePoint Guru momos's Avatar
    Join Date
    Apr 2004
    Location
    Belgium
    Posts
    919
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    use HTTP::Request::Common qw(POST);
    use HTTP::Request::Common qw(GET);

  3. #3
    SitePoint Guru arunkumar's Avatar
    Join Date
    Jan 2005
    Location
    India:Chennai
    Posts
    827
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    thank you momos i get you please tell me where to use this and how to use i am new to perl please tell me...

    expecting your help...
    Where there is a will there is a way
    ArunKumar

  4. #4
    SitePoint Guru momos's Avatar
    Join Date
    Apr 2004
    Location
    Belgium
    Posts
    919
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

  5. #5
    SitePoint Enthusiast
    Join Date
    Mar 2005
    Posts
    58
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    You should use the CGI module. Both POST and GET vaiables are accessible via the param method. Something like:

    use CGI;
    $q = new CGI;
    my $value = $q->param('my_parameter_bame');


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •