develooper Front page | perl.fwp | Postings from March 2002

Re: TPR1 post-mortem

Thread Previous | Thread Next
From:
Stephen Turner
Date:
March 11, 2002 06:04
Subject:
Re: TPR1 post-mortem
Message ID:
Pine.LNX.3.96.1020311140016.25823A-100000@gentoo
On Fri, 8 Mar 2002, Stephen Turner wrote:
>
> $x*1.11%10                (~Jukka-50, Rick-51, Ton-52)

I've just discovered that this construction doesn't work inside an eval! The
reason is that 08 and 09 become invalid octal numbers in that context.

If anyone was wondering why I was doing such an odd thing, I was trying to
see how much I could shorten this sort of idea:
print$_=pop,$/;s/./$&>9)+$&).($&-9*($&+/g;/\(.*\)/&&exec$

-- 
Stephen Turner, Cambridge, UK    http://homepage.ntlworld.com/adelie/stephen/
"This is Henman's 8th Wimbledon, and he's only lost 7 matches." BBC, 2/Jul/01


Thread Previous | Thread Next


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About