Re: Larry's Apocalypse 1

2001-04-09 Thread jc vazquez

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

Now I would like to get some of the metadata for that page like expiration
date, length, content type, etc. How?

Moreover, the http server would return a "404" in case the remote document
is not found (probably not under the example above, but...) I would like
ability to trap such type of remote exceptions.

jc




Re: Larry's Apocalypse 1

2001-04-13 Thread jc vazquez

> On Thu, 12 Apr 2001, Dave Storrs wrote:
> ...
> > We could then just add a -7 flag.
>
> Or, just use:
>
> #!/usr/bin/perl6
>

To solve this versioning issue, is there a way Perl 6 compiler can just
figure out what's being fed?  I mean, without saying anything using options
or pragmas. There must be a way by analyzing the syntax or the context to
find out if it's p5 or p6. Let the computer do the work.
...I'm just throwing in ideas.

-jc-





Re: Sane "+" string concat proposal

2001-04-24 Thread jc vazquez

From: "Austin Hastings" <[EMAIL PROTECTED]>
> Perl 5Perl 6
> - 
> $name = "This" . "that";  $name = "This" "+" "that";


$name = "+" "+" "+" "+"; # uh???