develooper Front page | perl.golf | Postings from August 2002

Re: Reflections

Thread Previous | Thread Next
From:
Jasper McCrea
Date:
August 9, 2002 08:50
Subject:
Re: Reflections
Message ID:
3D53E493.25F150DF@guideguide.com
Michael W Thelen wrote:
> 
> On Fri, Aug 09, 2002 at 08:53:56AM +0100, Stephen Turner wrote:
> > By the way, isn't it incredibly annoying that there isn't a single Perl
> > variable which defaults to 1? (My UID is 1000, which would have worked well,
> > but I doubted it met the "work everywhere" constraint. :-)
> 
> That is the single most frustrating thing that I constantly run up against when
> golfing (but it forces creativity!).  Another possibility may be to take the
> first digit of $^T... an approach that may be valid for all places (if the
> system clock is correct), but not for all times. In particular, it should fail
> beginning April 17, 2033.

$n=1

has the advantages of being shorter and valid for those tournaments run
in the 2040s (barring syntax changes!) :)

Jasper
-- 
Rob:    Man, I couldn't do this much damage with an axe, a day off work, 
        and a mission statement.
Bucky : Yeah, I had my 'A' game goin'.

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