in reply to Find a string within a string
Thanx, Val$line='123: ABC/1.0/VAL 111:222:333:444'; $cont='ABC/1.0/VAL 111:222:333:444'; if ($line=~/$cont/) { print "We have a match\n"; } else { print "No match\n"; }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: Correction to 1st -Find a string within a string
by rasta (Hermit) on Nov 13, 2002 at 12:11 UTC | |
|
Re: Corection to 1st message entitled -Find a string within a string
by rdfield (Priest) on Nov 13, 2002 at 13:00 UTC |