hi, being new to perl i was wondering what the explaination of these lines are... what are they doing:
Code:
$temp=$ENV{'QUERY_STRING'};
$temp =~ s/%40/@/g;
@pairs=split(/&/,$temp);
foreach $item(@pairs) {
($key,$content)=split (/=/,$item,2);
$content=~tr/+/ /;
$content=~ s/%(..)/pack("c",hex($1))/ge;
$fields{$key}=$content;
}
$file=$fields{'website'};
#$file=~s/\..+//gi;
use LWP::UserAgent;
use HTTP::Request;
use HTTP::Response;
$ua = new LWP::UserAgent;
$dir= $fields{'ws'};
#my $location="file://c:/$dir/$file";
my $absolute="[URL unfurl="true"]http://www.company.com/edgar2";[/URL]
my $companyName=$fields{'companyName'};
my $website=$fields{'website'};
my $location="[URL unfurl="true"]http://www.company.com/edgar2/edgar-download/"[/URL] . $website;
my $fileType;
my $search=$fields{'companyName'};