Link to home
Start Free TrialLog in
Avatar of boofulls
boofulls

asked on

if value in value

if $x is "test that" and $y is "test"
how do i say
if ($y is in $x)
in this case $y _is_ in $x
thanks
Avatar of thoellri
thoellri

if ($x =~ /$y/)

???
Avatar of ozo
if( index($x,$y) >= $[ )
ozo, what is the advantage in your method?
ASKER CERTIFIED SOLUTION
Avatar of ozo
ozo
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial