sA
sub __default_postpone { die 'NO EVENT' }
*_postpone = \&__default_postpone;
что бы она была доступна глобально из везде?
Size: a a a
sA
VF
AP
AP
sA
sA
VF
#!/usr/bin/env perl
sub mySub {
print "mySub\n";
}
sub anotherSub {
print "anotherSub\n";
}
mySub();
anotherSub();
*anotherSub = \&mySub;
anotherSub();
VF
mySub
anotherSub
mySub
sA
SZ
VF
my $orig_log_print = \&Net::Telnet::_log_print;
*Net::Telnet::_log_print = sub {
my ($fh, $buf) = @_;
$buf =~ s/([\r\n\f]+)/POSIX::strftime("$1%H:%M:%S : ", gmtime())/eg
if defined $buf
;
$orig_log_print->($fh, $buf);
};
SZ
VF
sA
W
W
a
c
bad things when resources like sockets or database connections are opened at load time by the master process and shared by multiple children.
AK