Re: [techtalk] Perl question

2000-06-22 Thread Kristina Pfaff-Harris
On Thu, 22 Jun 2000, Stewart Larsen wrote: > I think the slashes should be in the form "s/exp1/exp2/" > > if ($string1 =~ /\*\s*\$string2|\$string2/) No, that's just if you're substituting! This line basically says "if the contents of $string1 contain '$string2'" and then, presumably, y

Re: [techtalk] Perl question

2000-06-21 Thread joey tsai
> 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 ___ t

Re: [techtalk] Perl question

2000-06-21 Thread Stewart Larsen
I think the slashes should be in the form "s/exp1/exp2/" - Original Message - From: "Lynn Kuhlman" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Thursday, June 22, 2000 12:16 AM Subject: [techtalk] Perl question > I can't get my program to print anything to a file. It was complain