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

Re: TPR1 post-mortem

Thread Previous | Thread Next
From:
Rick Klement
Date:
March 8, 2002 10:43
Subject:
Re: TPR1 post-mortem
Message ID:
3C890661.F238C2A9@pacbell.net
Adam Spiers wrote:
> 
> Stephen Turner (sret1@ntlworld.com) wrote:
> > I've looked quickly at all the entries up to 55 strokes, and identified the
> > following methods for difficult bits of the problem. Apologies for errors
> > and omissions!
> 
> A nice summary :-)
> 
> > Methods for looping:
> [...]
> > `$^X $0`                  (Stephen-54)
> 
> I considered this recursive approach too but never got anything
> decent.  The rules were maybe slightly vague on this intricacy, but
> couldn't you have shaved two off with this?
> 
>   `./$0`
> 
> It would have passed the test program, and run fine from the
> command-line via `perl secret.pl', but not via `./secret.pl' :-)
> Don't know whether the judges would have accepted it.

Not allowed, by the rule:

"When tested, you can assume your script to have file permissions of 0644."

-- 
Rick Klement

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