in reply to Re: Environment Variables in YAML
in thread Environment Variables in YAML

...which works in the case of the sample provided in the original post; in the case of "YAML files" (emphasis added), as was also stated in the original post, it will not. The OP was providing a self contained example (kudos to the OP).

--MidLifeXis

Replies are listed 'Best First'.
Re^3: Environment Variables in YAML
by NetWallah (Canon) on Nov 17, 2015 at 16:42 UTC
    Ah - I missed that subtle reference to YAML "Files". Thanks for pointing that out.

    But if you are creating a YAML file, why would you embed environment variables like that ? Sounds like a case for using a template style tool.

    I'm leaving it to the OP to post a snippet closer to his actual circumstances.

            “The sources of quotes found on the internet are not always reliable.” — Abraham Lincoln.3; cf.

      Thanks for your reply. Just curious as to what is this template style tool you mentioned. Can you provide some pointers regarding this
        Here is a general article on Template philosophy, and why it is a good idea. It includes recommendations on modules:

        Choosing a Templating System

        For your case, where usage seems fairly simple, I'd suggest starting with:
        Text::Template .

                “The sources of quotes found on the internet are not always reliable.” — Abraham Lincoln.3; cf.