Si mon fichier gz n'existe pas, pourquoi ne pas le faire?Pourquoi mon tube Perl vers zcat ne meurt-il pas si le fichier n'est pas là?
$ cat test.pl
open(FILE, "zcat dummy.gz |") or die "DIE";
$ ./test.pl
zcat: dummy.gz: No such file or directory
Si je lis un fichier normalement, il fonctionne comme prévu:
$ cat test2.pl
open(FILE, "dummy.gz") or die "DIE";
$ ./test2.pl
DIE at ./test.pl line 2.