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

In reply to Double double quoting - nested macro calls by kenm

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.