in reply to Basic String Substitution

$filename = "/wek/hep/bin/defaults$ENV{APPL_ENV}.import";
or
$filename =~ s/\./$ENV{APPL_ENV}./;
also see "Quote-and-Quote-like-Operators" part in perlop

Replies are listed 'Best First'.
Re^2: Help? Please! Quick!
by captcrash (Initiate) on Jul 23, 2004 at 16:19 UTC
    ccn, You are a blessing! Checked the code, works great, Thanks! you just made my weekend less stressful!

      Just out of interest, which piece of the documentation would have needed to be changed for you to be able to work that out for yourself?

      --
      <http://www.dave.org.uk>

      "The first rule of Perl club is you do not talk about Perl club."
      -- Chip Salzenberg

        Probably something under basic string substitution... I was trying the substr but couldn't get it to work properly. I am very new to perl and only have to maintain a couple of very simple scripts and didn't want to spend alot of time on learning the lang.