Hello,
I need some help understanding the following Perl code snippet. I have the following two questions.
1.
What does local *PIPER
mean? Even though I've done some Perl programming before the local *
syntax is new to me. Is it a pointer?
2. What is the purpose of
curl http://www.somesite.net/cgi-bin/updateuser.cgi? -d "userid=$userid&password=$password\" -s |"; ?
Thank You :)
local *PIPER;
$http_query = "curl http://www.somesite.net/cgi-bin/updateuser.cgi? -d \"userid=$userid&password=$password\" -s |";
open(PIPER,$http_query) or die "sorry";
while(<PIPER>)
{
$rets = $_;
}
close(PIPER);
return $rets;