Right now you're assigning a single string to the array @args. Instead you can assign a list to it, and omit the quoting entirely:
@args = (qw(scutil --set ComputerName), $name); system(@args)
Though I guess that the problem is not with quoting, but something else.
Perhaps I should insert some sort of sleep command to pause between system calls?
And what would you gain from that?
In reply to Re: Strange system call failure in OS X
by moritz
in thread Strange system call failure in OS X
by endor-moon
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |