[techtalk] Perl question

joey tsai joeytsai at cc.gatech.edu
Thu Jun 22 01:00:30 EST 2000


> Is this correct?
> 
>  if  ($string1 =~ /\*\s*\$string2|\$string2/)   
                          ^^        ^^
Looks like you're escaping the variable, you're searching for a literal
dollar sign rather than the value of $string2.

	// jt






More information about the Techtalk mailing list