On Tue, 18 Nov 2003 21:22:07 +0000, Steve Massey wrote: > I want to match Help > > Help ## match this > Helps ## not match this > > I am using syntax below, but it's not working > > $help = "Help"; > > if ($source =~ /^$help/)
Do you really need to use a regular expression to do this? What about the
'eq' operator?
if ( $source eq 'Help' ) {
# Match
}
--
Tore Aursand <[EMAIL PROTECTED]>
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
