in reply to Keeping interactive net session alive

eval((stat($tty))[9])
What does that accomplish that this doesn't:
(stat($tty))[9]
except not waste CPU time turning a number into a string into executable code, just to run that code and get the number back?

-- Randal L. Schwartz, Perl hacker
Be sure to read my standard disclaimer if this is a reply.

Replies are listed 'Best First'.
Re: •Re: Keeping interactive net session alive
by gnu@perl (Pilgrim) on Oct 30, 2002 at 18:48 UTC
    Thanks for pointing that out. It was a remnant from something else I was doing and then changed it around. I will edit it out now.