http://www.perlmonks.org?node_id=930104


in reply to Use of uninitialized value in substitution (s///)

While you're at it, unless $ACEEnvironment is a regexp, you probably also want to quote it better to prevent unintended matches...

$ACETmpltDir =~ s/\Q$ACEEnvironment\E//g;

It's clearly not the case here, but it's a good habit to get into.

--Dave

  • Comment on Re: Use of uninitialized value in substitution (s///)