--Davemy $list = "foo:bar:baz"; my $wanted = "bar"; if (grep {$_ eq $wanted) split ":", $list) { print "found!\n"; }
In reply to Re: Trying to determine if path exists in environmental variable
by dpuu
in thread Trying to determine if path exists in environmental variable
by slojuggler
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |