kenm has asked for the wisdom of the Perl Monks concerning the following question:
Hi perl monks, newbie here so please be gentle.... been working with perl for a few years so not a total novice. Slightly above that ;)
I think I've figured out the solution but just wanted to bounce it off the knowledgeable monks.
Problem: I'm using nested macros and the string I'm passing to one macro is then used as an input to another. The challenge I believe I'm facing is that the double quotes are stripped at the first level and therefore at the second level the input is basically truncated at the first space.
e.g. macro1 "This is the input string to macro 2" macro2 then uses this string to call another and sends macro2 This is the input string to macro 2... therefore realistically whats passed is "macro2 This". What I believe is the solution is to either double double quote of qq. e.g. macro1 qq"This is the input string to macro 2" or macro1 "\"This is the input string to macro 2\"" Anyone else overcome similar issues to this? Thanks monks
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Double double quoting - nested macro calls
by AnomalousMonk (Archbishop) on Apr 22, 2011 at 22:10 UTC | |
by kenm (Acolyte) on Apr 22, 2011 at 22:22 UTC | |
by Anonymous Monk on Apr 23, 2011 at 01:21 UTC | |
by SitrucHtims (Novice) on Apr 23, 2011 at 07:03 UTC | |
|
Re: Double double quoting - nested macro calls
by wind (Priest) on Apr 22, 2011 at 22:01 UTC | |
|
Re: Double double quoting - nested macro calls
by John M. Dlugosz (Monsignor) on Apr 23, 2011 at 00:51 UTC |