in reply to use of uninitialized value in substitution iterator

try:
s/\$([A-Z0-9_]+)/$ENV{$1}||''/eg;
or whatever you like to do if the environment var is not there.
Boris

Replies are listed 'Best First'.
Re^2: use of uninitialized value in substitution iterator
by furrypop (Novice) on Nov 11, 2004 at 15:10 UTC
    OK, so it was a "null return" from the environment hash, not something to do with $_? I guess that makes more sense.

    Thanks.