Re: Hamming minigolf post mortem

[email protected] ("Keith C. Ivey")
Newsgroups perl.golf
Message-ID <3EA1731E.10845.60FB3212@localhost>
Juho Snellman <[email protected]> wrote:

> When ".." is used in the argument list for "for", it's optimized
> to not generate a list and then loop over the items. Instead one
> item is generated, the body run, then the second item generate,
> etc. This apparently only works when both arguments for ".." are
> valid numbers *or* both of them are string literals.

But why does 'print for 0 x6..~$~' work when 'print for
0 x6..$~' doesn't?  I wouldn't have expected the first one
to work with or without 'for', since ~$~ doesn't contain any
[A-Za-z0-9].
-- 
Keith C. Ivey <[email protected]>
Washington, DC
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.