in reply to Strange system call failure in OS X
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?
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^2: Strange system call failure in OS X
by endor-moon (Initiate) on Feb 15, 2013 at 21:13 UTC | |
by Anonymous Monk on Feb 15, 2013 at 21:25 UTC | |
by Anonymous Monk on Feb 15, 2013 at 21:39 UTC | |
Re^2: Strange system call failure in OS X
by endor-moon (Initiate) on Feb 15, 2013 at 20:46 UTC |
In Section
Seekers of Perl Wisdom