Matt Diephouse skribis 2005-03-18 13:35 (-0500): > > +"0x$_" # hex > > +"0o$_" # oct > > +"0b$_" # bin (does not exist in Perl 5) > 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. Juerd -- http://convolution.nl/maak_juerd_blij.html http://convolution.nl/make_juerd_happy.html http://convolution.nl/gajigu_juerd_n.html