[Date Prev][Date Next][Thread Prev][Thread Next] [Search] [Date Index] [Thread Index]

Re: [FWP] Kill 'em all and let God sort it out



>>>>> "PS" == Peter Scott <Peter@PSDT.com> writes:

  PS> Having utterly failed to crack Schwern's conundrum, the only thing
  PS> to do is pose one of my own, this one evaluating to an IMHO more
  PS> familiar quotation:

  PS> fork ? exit : POSIX::setsid && (grep { $_ eq ref } @ARGV)[-1]

my first guess is children should be seen and not heard. but i can't
figure out the mapping to the code.

the setsid call makes the child have no terminal so it can't be heard
from.

$_ eq ref will only be true for $_ = ''. where that fits is unknown to
me.

uri

-- 
Uri Guttman  ---------  uri@sysarch.com  ----------  http://www.sysarch.com
SYStems ARCHitecture, Software Engineering, Perl, Internet, UNIX Consulting
The Perl Books Page  -----------  http://www.sysarch.com/cgi-bin/perl_books
The Best Search Engine on the Net  ----------  http://www.northernlight.com

==== Want to unsubscribe from Fun With Perl?  Well, if you insist...
==== Send email to <fwp-request@technofile.org> with message _body_
====   unsubscribe