in reply to
Signals in Strawberry Perl: Name or number?
use POSIX 'SIGALRM';
die SIGALRM ;
Unfortunately, that gives me an error:
> perl -e "use POSIX 'SIGALRM'; die SIGALRM;'
Your vendor has not defined POSIX macro SIGALRM, used at -e line 1
On another note, though, I'm curious about that. Does die SIGALRM actually raise a SIGALRM to the calling process, similar to POSIX::raise? If so, is it a POSIX thing, or can I use die SIGSTOP and so forth without useing POSIX?
Does die SIGALRM actually raise a SIGALRM to the calling process
No. die is a terse way of printing. It never sends a signal.
I'm guessing SIGALRM is a constant whose value is the signal number associated with SIGALRM.
Use subroutines for code reuse
Master regular expressions
Write my GUIs with Perl
Abandon CGI in favor of some modern web framework
Put my code in modules
Create CPAN distributions
test and document my code as I write it
Write OOP with or without animal help
Finally switch to a modern Perl style
Create a killer application with Perl
Detoxify from Perl and PerlMonks
Choose another language because Perl is dead
Learn to program for mobile devices
Complete my secret world domination project
None, because the road to hell is paved with good intentions
Results (249 votes),