Re: Help! Strings -> Numbers

[email protected] (Jonathan Scott Duff) Thu, 21 Nov 2002 22:28:17 -0600
Newsgroups perl.perl6.documentation
Message-ID <[email protected]>
On Wed, Nov 20, 2002 at 05:51:17PM -0500, Tanton Gibbs wrote:
> It's going to be hard to beat sprintf( "%x", $i ) for clarity or
> conciseness.

	my $s = "%x" % $i;	# python wins for conciseness  :-)

-Scott
-- 
Jonathan Scott Duff
[email protected]