[wplug] web programming
John Harrold
jmh17 at pitt.edu
Tue Oct 28 10:25:13 EST 2003
Sometime in October Joe assaulted the keyboard and produced:
| Yeah, you can do php command line now. The only time I've used it was
| when I needed to grep some webpage for something and print it out
| stdout. It was a lot easier to do in php since you can open a webpage
| like a file. AFAIK open() doesnt do that in perl. I'll be damned if it
| does though...
something like:
#! /usr/bin/perl
use strict;
use warnings;
MAIN:
{
open my $fh => 'GET http://www.perl.com |' or die "could not open url";
while(<$fh>){
print $_;
}
exit 0;
}
--
--------------------------------------------------------------------------
| /"\
john harrold | \ / ASCII ribbon campaign
jmh at member.fsf.org | X against HTML mail
the most useful idiot | / \
--------------------------------------------------------------------------
What difference does it make to the dead, the orphans, and the homeless,
whether the mad destruction is brought under the name of totalitarianism or
the holy name of liberty and democracy?
--Gandhi
--------------------------------------------------------------------------
gpg --keyserver keys.indymedia.org --recv-key F65A739E
--------------------------------------------------------------------------
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
Url : http://penguin.wplug.org/pipermail/wplug/attachments/20031028/493635cc/attachment-0001.bin
More information about the wplug
mailing list