Thanks for the response!

Use $Tombstone in place of $dog as the example of a perl variable in the script that throws an error.

It looks like I'd use %ENV on the UNIX shell variable $fruit. Is that true or am I to use the %ENV on the perl variable $tombstone?

Also I like the idea of going all Perl or calling an entire Perl script. The trouble is we are an all UNIX shell shop and If I started throwing Perl scripts around it would blow peoples minds. I don't want to stir that up. I just want to be able to access perl from time to time to use it's vast array of functions instead of using awk or exp or something else. For example UNIX doesn't have an index function that returns the positional value of a string when fed. But Perl does! So just simple "one offs" like that are what I'd want to use this for.


In reply to Re^2: assigning a perl variable in shell by scheidr
in thread assigning a perl variable in shell by scheidr

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.