Beefy Boxes and Bandwidth Generously Provided by pair Networks
Think about Loose Coupling
 
PerlMonks  

Re: Print inside SIGNALS

by tybalt89 (Monsignor)
on Jul 16, 2018 at 14:04 UTC ( [id://1218577]=note: print w/replies, xml ) Need Help??


in reply to Print inside SIGNALS

perl -e 'alarm 3;$SIG{ALRM}=sub{print "Timeout reached\n"}; sleep 10'

works for me on my ArchLinux system.

Note you didn't have a newline on your print, maybe you just missed the output because it wasn't on a separate line?

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://1218577]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others goofing around in the Monastery: (8)
As of 2024-04-18 08:12 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found