erwos has asked for the wisdom of the Perl Monks concerning the following question:
I'm trying to run a command via system() that has curly braces in its argument. It looks something like this:
`some_command a={1,2},{3,4}`;
What the system apparently tries to execute is:
some_command a=1,2,3,4
That is to say, no curly braces get included. I don't have the option to use anything but curly braces, and I cannot use whitespace to separate out the curly braces at all. Using a literal string ('') in a proper system() command doesn't fix it, either.
Does anyone have a solution or workaround? I've been wrestling with this one for a bit, but haven't even found anything on Google.
Thanks!
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: System commands and curly braces
by ikegami (Patriarch) on Aug 10, 2010 at 18:49 UTC | |
|
Re: System commands and curly braces
by toolic (Bishop) on Aug 10, 2010 at 17:45 UTC |