I'd like to actually get the .depend file before the Perl script, then again after it to compare

No problem! Change "perl -ni -e" to "perl -ni.bak -e", and you'll find a ".depend.bak" file that has its contents before perl got a hold of it. If there's already a .bak file being produced, you can use "perl -ni.before.tha.mangalang -e" or whatever.

So what you're thinking is that each instance of ${something} is actually some value, stored in ${something} being passed in to the Perl script? Is that roughly correct?

That's roughly correct, yes. Perl actually never sees them as variables. The interpolation is done by the shell (or make) before Perl comes into it. From its point of view, they're literal strings.

Finally, could the $${OBJECT} be right?

I don't think so. If that's really what perl sees, it's going to come out as an empty string because within the context of the Perl that's running, there is no $OBJECT variable with a value. I think that it's actually coming out as "\${OBJECT}", and winds up in the .depend file that way. This is one part of this whole thing I'm really not sure about, so take my words with salt, please.


In reply to Re^5: Command line question by kyle
in thread Command line question by igotlongestname

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.