in reply to Re: Prepent string a to string b if b does not start with a
in thread Prepent string a to string b if b does not start with a

unless(grep(/^rte/, $ENV)) { $ENV = "rte" . $ENV; }

This works, sorry to have distrubed anyone, and thanx

Replies are listed 'Best First'.
Re^3: Prepent string a to string b if b does not start with a
by choroba (Cardinal) on Mar 14, 2012 at 11:48 UTC
    Using grep for one-member list is strange. You can just use if ($ENV !~ /^rte/)

      Thank You, that is better