App-Cheats
view release on metacpan or search on metacpan
# Redirect to terminal even when STDOUT and/STDERR are sent somewhere else.
perl -E 'open my $fh, ">", "/dev/tty" or die $!; close *STDOUT; say $fh "111"; say "HERE"; say $fh "123";'
111
123
pod e say
# Perl Signal Handling
# Another interesting signal is signal number 0.
# This doesnât actually affect the target process,
# but instead checks that itâs alive and hasnât
# changed its UIDs. That is, it checks whether
# itâs legal to send a signal, without actually
# sending one.
unless (kill 0 => $kid_pid) {
warn "something wicked happened to $kid_pid";
}
#############################################################
## Perl Symbol Table
( run in 1.123 second using v1.01-cache-2.11-cpan-df04353d9ac )