On Fri, Aug 14, 2009 at 12:34 PM, David Green<david.gr...@telus.net> wrote:
> Of course, this being P6, we can have some kind of "io" macro that parses
> the single item after it:
>    my $file1 = io file://some/dir/some%20file;                     # the
> quick way

I don't think that's a good idea. In general, parsing an URI isn't
that easy, in particular determining the end is undefined AFAIK. In
your example the semicolon should probably be considered part of the
URI, even though that's obviously not what you intended.

Using a strings or a quoting construct may be a bit more cumbersome,
but at least it isn't ambiguous.


Reply via email to