A
Amittai Aviram
Does Perl have an equivalent to the PHP function file()? file() reads a
file into an array. More importantly for me, you can pass a URL to file(),
and it will read into the array the HTML output of that file as served
through HTTP:
$output = file(''http://www.mysite.com/test.pl'')
This will read the HTML output of the test.pl executable and put each line
of it into a successive element of the $output array. (In PHP, $ designates
any variable, including an array -- it does not use @ or % to distinguish
variable types.)
It would be very helpful to me if I could find a Perl equivalent to PHP's
file(url). Thanks!
Amittai Aviram
file into an array. More importantly for me, you can pass a URL to file(),
and it will read into the array the HTML output of that file as served
through HTTP:
$output = file(''http://www.mysite.com/test.pl'')
This will read the HTML output of the test.pl executable and put each line
of it into a successive element of the $output array. (In PHP, $ designates
any variable, including an array -- it does not use @ or % to distinguish
variable types.)
It would be very helpful to me if I could find a Perl equivalent to PHP's
file(url). Thanks!
Amittai Aviram