On Thu, 09 May 2002 at 15:59:05 -0400, Russell, Adam wrote:

> >JAPH?
> >print`perldoc -qj`=~/"(j.*)"/

> I know that it is pretty silly but one could accomplish further shaving with
>   alias pd=perldoc .
> Hmm, I wonder does this even count of done in one's .bash_profile at login ?

Since I suggested this one, I suppose I'm the referee :-)

The use of `perldoc...` is OK, I suppose, since not only is perldoc part
of the perl distribution, but it's also a perl script. So, a strict
reading of the "no binaries" rule would allow `perldoc -t ...` . `man`
isn't portable, so that's definitely out.  Perldoc without the '-t' is
sort of OK, since if nroff's not there, it just ignores it.

Using customised initialisation is definitely beyond the pale - you'd
need to count all the characters you used to do it in your total.
[Hmm.. has anyone abused the PERL5LIB or PERL5OPT env variables in a golf
game?]

Even Randal wasn't always consistent about his capitalisation, so we
have some flexibility here. But the use of "Perl" rather than "perl" is
IMHO important. (Which means the FAQ is wrong)

To Jonathan, who suggested using "rand" - assuming a 128 char set, there
are 47890485652059026823698344598447161988085597568237568 possible
25-character strings, but only 4294967296 possible seeds of a 32-bit
number generator. So it's most unlikely that it can be generated that
way.

Ian

Reply via email to