system system( aCmd [, args ]* ) -> true or false
Executes aCmd in a subshell, returning true if the command was found and ran successfully, false otherwise. A detailed error code is available in $?. The arguments are processed in the same way as for Kernel::exec on page 415.
system("echo *")
system("echo", "*")
OU
exec exec( command [, args ])
Replaces the current process by running the given external command. If exec is given a single argument, that argument is taken as a line that is subject to shell expansion before being executed. If multiple arguments are given, the second and subsequent arguments are passed as parameters to command with no shell expansion. If the first argument is a two-element array, the first element is the command to be executed, and the second argument is used as the argv[0] value, which may show up in process listings. In MSDOS environments, the command is executed in a subshell; otherwise, one of the exec(2) system calls is used, so the running command may inherit some of the environment of the original program (including open file descriptors).
exec "echo *" # echoes list of files in current directory
# never get here
exec "echo", "*" # echoes an asterisk
# never get here
J'ai corrigé mon lien plus haut
__________________________
Aidez les autres membres en publiant sur le forum le code que nous vous avons aidé à créer ! Où sont les membres de MP ?