Juerd <[EMAIL PROTECTED]> wrote:
> Matt Diephouse skribis 2005-03-18 13:35 (-0500):
> > Too bad sub names can't start with numbers:
> >   0x $hex; # hex $hex
> 
> But they can, if you call them prefix operators instead of subs. See
> also -e and alike operators, which start with a character that isn't
> even \w.

In that case, I propose, if more radical action is not taken, that
C<0x> and C<0o> become the new C<hex> and C<oct> (and a C<0b> for
binary as well).

This establishes a nice parallel with 0xFF and 0o17 that should be
less confusing than C<hex> and C<oct>.

  say map { chr 0x($_) } split /(\w\w)/,
      "4a75737420416e6f74686572205065726c204861636b65722e";

-- 
matt diephouse
http://matt.diephouse.com

Reply via email to