in reply to Losing control of large regular expressions
This will look at your environment, and if the environment variable isn't set to the value you want, it sets it, and execs itself. Now your alarm ought to work (assuming your Perl is 5.8.1 or older).unless ($ENV {PERL_SIGNALS} && $ENV {PERL_SIGNALS} eq "unsafe") { $ENV {PERL_SIGNALS} = "unsafe"; exec $0, @ARGV; }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Losing control of large regular expressions
by scottb (Scribe) on Jan 12, 2005 at 18:40 UTC |