in reply to Use of system() considered harmful
Then you use:system will always try to execute /bin/foo with argument bar. But what if my executable is /bin/foo bar?my $binary = "/bin/foo bar"; system($binary);
That forces "list" interpretation rather than single-element list, and all is good.system { $binary } $binary, @other_args_if_any;
|
|---|