никто не знает как можно научить работать alarm в CGI-скриптах?
приведенный ниже тест почему-то всегда достигает до die "end" хотя если его пустить в консоли он всегда выпадает на die "test" $ perl -v This is perl, v5.10.0 built for i486-linux-gnu-thread-multi Copyright 1987-2007, Larry Wall Perl may be copied only under the terms of either the Artistic License or the GNU General Public License, which may be found in the Perl 5 source kit. Complete documentation for Perl, including FAQ lists, should be found on this system using "man perl" or "perldoc perl". If you have access to the Internet, point your browser at http://www.perl.org/, the Perl Home Page. скрипт: #!/usr/bin/perl use warnings; use strict; use utf8; use open qw(:std :utf8); use CGI::Carp qw(fatalsToBrowser); alarm 1; $SIG{ALRM}=sub { die "test" }; sleep 2; die "end";
signature.asc
Description: Digital signature
-- Moscow.pm mailing list [email protected] | http://moscow.pm.org
