in reply to Re: New golf game (for the extremely bored)
in thread New golf game (for the extremely bored)

Can someone explain that "a..gr" thing to me please?

I'm baffled.
--

($_='
  jjjjjjuuuuuuuuusssssssssttttttttt annnnnnoootttttthhhhheeeeeerrrrrr
  pppeeeerrrrrrrrrrrrllllllllllllll haaaaccccccckkkkkkkeeeeeeeerrrrrr')
               =~y/[a-z]//s;print;
  • Comment on Re: Re: New golf game (for the extremely bored)

Replies are listed 'Best First'.
Re: New golf game (for the extremely bored)
by ejf (Hermit) on Feb 09, 2002 at 13:16 UTC
    >Can someone explain that "a..gr" thing to me please?

    Same as 1..200, really ;)

    Basically you just use letters instead of numbers.

    a..z yields the 26 characters of the alphabet,
    a..az yields those and another 26 prefixed with a
    a..bz yields those and another 26 prefixed with b
    and so on. Same system, more "numbers" ...

    Incidentally a..gr yields 7*26 + 18 "numbers".

    update : as crazyinsomniac pointed out, the range-operator is discussed in more detail in perlman:perlop.