in reply to Trying to determine if path exists in environmental variable

I'd try a split and a grep:
my $list = "foo:bar:baz"; my $wanted = "bar"; if (grep {$_ eq $wanted) split ":", $list) { print "found!\n"; }
--Dave