develooper Front page | perl.beginners | Postings from October 2009

Need some explanation about these lines.

Thread Next
From:
Raheel Hassan
Date:
October 15, 2009 05:55
Subject:
Need some explanation about these lines.
Message ID:
fcb728f20910150555k61c6fb54p9b7d0e85dd4595da@mail.gmail.com
Hi,

I will be very thankful if someone explains under given code.

#----- CGI Module ------------------------------
use CGI;

$q = CGI->new();

my ($myself) = split(/\?/,$q->self_url);     #from where it will call the
url?
my @base_url = split(/\//, $myself);         #what is \ /
my $base_url = $base_url[0]."//".$base_url[2]."/";
my $validate_url = $q->self_url."&validate=1";
my $id = $q->param("id");                                #what is the role
of param here?
my $hub = $q->param("HUB");

Regards,
Raheel.

Thread Next


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About