develooper Front page | perl.perl6.language | Postings from April 2001

RE: Larry's Apocalypse 1

Thread Previous | Thread Next
From:
Philip Newton
Date:
April 10, 2001 01:23
Subject:
RE: Larry's Apocalypse 1
Message ID:
Pine.LNX.4.04.10104100420480.6480-100000@ficus.frogspace.net
On Mon, 9 Apr 2001, Dan Sugalski wrote:

> While I don't know if Larry will mandate it, I would like this code:
> 
>    open PAGE, "http://www.perl.org";
>    while (<PAGE>) {
>          print $_;
>    }
> 
> to dump the HTML for the main page of www.perl.org to get dumped to stdout.

I once created, on a Unix box, a directory named 'http:' and inside it, a
file named www.datenrevision.de. This enabled me to open
'http://www.datenrevision.de' and read from it (since multiple
consecutive slashes are generally treated as one slash on Unix) -- a
little playful fun.

Would your proposal imply that I would not be able to open this file any
more without resorting to "tricks" such as sysopen or './http://blabla'?

Just wondering.

Cheers,
Philip
-- 
Philip Newton <newton@newton.digitalspace.net>


Thread Previous | 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