J'ai exécuté ce script, mais il ne sortira pas du shell actuel (c'est-à-dire bash). alors il n'exécutera pas la commande après celle-ci.
#!/usr/bin/perl
$ENV{MYVAR}="test";
exec "bash","-f";
print "End.n";
Réponses:
1 pour la réponse № 1$ perldoc -f exec
exec LIST
exec PROGRAM LIST
The "exec" function executes a system command and never
returns; use "system" instead of "exec" if you want it to
return.