ObiPanda has asked for the wisdom of the Perl Monks concerning the following question:
I am thankful to everyone who helped answer my last question.
I have a script with a system() call and I cannot seem to include (?i) in it.
I can print the command including (?i) but escaping it successfully, and, when attempting to use system, I have tried various permutations qq [] \( etc... but nothing helps.
Here's some pseudocode, which fails
system qq(command $_->{Sub_URL} \(?i\)Podcast ARGS);But this is fine:
print qq(command $_->{Sub_URL} \(?i\)Podcast ARGS);
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: how to escape round parentheses in a system call
by choroba (Cardinal) on Jun 11, 2023 at 21:26 UTC | |
by ObiPanda (Acolyte) on Jun 11, 2023 at 21:35 UTC | |
by haukex (Archbishop) on Jun 14, 2023 at 10:33 UTC | |
|
Re: how to escape round parentheses in a system call
by ikegami (Patriarch) on Jun 11, 2023 at 22:28 UTC | |
by roho (Bishop) on Jun 12, 2023 at 05:12 UTC | |
by ikegami (Patriarch) on Jun 12, 2023 at 05:20 UTC | |
|
Re: how to escape round parentheses in a system call
by afoken (Chancellor) on Jun 12, 2023 at 09:43 UTC |