in reply to Trying to determine if path exists in environmental variable
my $list = "foo:bar:baz"; my $wanted = "bar"; if (grep {$_ eq $wanted) split ":", $list) { print "found!\n"; } [download]