eval { $result = qx(scutil --set LocalHostName $name) };
Read the "Safe Pipe Opens" section of perlipc for a secure replacement for `...`.
The shell problem is also present in the single argument versions of system and exec, so make sure to use the multi-argument versions, which don't have this problem.
Alexander
In reply to Re^2: Strange system call failure in OS X
by afoken
in thread Strange system call failure in OS X
by endor-moon
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |