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

Re: Reflections

Thread Previous | Thread Next
From:
Eugene van der Pijll
Date:
August 9, 2002 10:11
Subject:
Re: Reflections
Message ID:
20020809171105.GA14473@ruunat.phys.uu.nl
En op 9 ogustus 2002 sprak Michael W Thelen:
> Actually, this is kind of an interesting question...  what are the various ways
> that people have used to get a value of 1 into a variable?  These aren't all
> very good, but here's what I can think of:

$^F/2 . I'm a bit surprised that Marko Nippula was the only other
golfer who used $^F in factorial.pl .

The 10 initial values of special variables are:
undef, 0, 2, 60, " ", "\n", "\034", "STDOUT", "STDOUT_TOP" and " \n-".
As all good golfers knew already, of course.

(-ugene

-- 
Golf is a day spent in a round of strenuous idleness. -- \\/illiam \\/ordsworth

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