Gestionnaire de fichiers - Editer - /usr/share/doc/perl-Capture-Tiny-0.24/examples/rt-58208.pl
Arrière
use Capture::Tiny qw[ capture ]; my ( $out, $err ) = eval { capture { print STDERR "hello\n"; print STDOUT "there\n"; die("foo\n" ) } }; print STDERR "STDERR:\nout=$out\nerr=$err\n\$@=$@"; print STDOUT "STDOUT:\nout=$out\nerr=$err\n\$@=$@"; open FILE, '>ttt.log' or die( "error opening logfile\n" ); print FILE "FILE:\nout=$out\nerr=$err\n\$@=$@\n"; close FILE;
| ver. 1.4 |
Github
|
.
| PHP 8.0.30 | Génération de la page: 0.44 |
proxy
|
phpinfo
|
Réglages