develooper Front page | perl.perl5.porters | Postings from June 2004

Re: [PATCH] sort plays nethack in a scalar context

From:
Nicholas Clark
Date:
June 30, 2004 09:11
Subject:
Re: [PATCH] sort plays nethack in a scalar context
Message ID:
20040630161141.GP1147@plum.flirble.org
On Wed, Jun 30, 2004 at 09:03:25AM -0700, Ovid wrote:
> --- Rafael Garcia-Suarez <rgarciasuarez@mandrakesoft.com> wrote:
> > Naah, no new modules in the core. But I suppose that sort() called in
> > scalar context could fire up CPAN.pm to fetch it and install it.
> 
> Perhaps, but if we think this through, perhaps the best "undefined" behavior would be to change
> this behavior with every release.  I propose the next release do 
>     
>     system("perldoc -f sort");
> 
> Of course, perhaps we want to first check if perldoc is installed ...

We should be using an absolute path, otherwise we create a wonderful
security hole.

I suggest we setpriority(PRIO_USER, 0, 20); to reward the user for their
knowledge, on systems where setpriority is available.

Nicholas Clark



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