tobold.org

correct • elegant • free

△ comp.lang.perl △

◅ How to open both for append and read?

Variable Substitution ▻

SIG{'INT'}

In article <y9xbuab9dcj.fsf@sviar.ifi.uio.no>,
Vegard Hanssen  <vegardha@sviar.ifi.uio.no> wrote:
>I have come over something i'm not sure is a bug, but it is very
>irritating. If you use a eval expression inside a SIG{'INT'} handler
>which returns false, perl will not return to the starting halted place
>or it will drop out of the handler.

You can't do all that in a signal handler!  See perlipc(1) for
information on using signals reliably.

Tim.
--
Tim Goodwin   | "A language needs both intestines and guts." -- Larry Wall

Original headers:

From: tim@pipex.net (Tim Goodwin)
Newsgroups: comp.lang.perl.misc
Subject: Re: SIG{'INT'}
Date: 28 Jan 1997 10:16:52 GMT
Organization: UUNET PIPEX
Message-ID: <5ckjmk$klf@join.news.pipex.net>
References: <y9xbuab9dcj.fsf@sviar.ifi.uio.no>

△ comp.lang.perl △

◅ How to open both for append and read?

Variable Substitution ▻