'&' in regex

2002-05-18 Thread Rizwan Majeed
I was trying this out : $SomeVar =~ /&/ ;$SomeVar =~ /'&'/ ;$SomeVar =~ /\&/ ;none of these works. Need help Thanks Riz - Original Message - From: "Mithun Bhattacharya" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Saturday, May 18, 2002 4:01 PM Subject: Re: Apache::DB

Re: '&' in regex

2002-05-18 Thread Mithun Bhattacharya
--- Rizwan Majeed <[EMAIL PROTECTED]> wrote: > I was trying this out : $SomeVar =~ /&/ ; > $SomeVar =~ /'&'/ ;$SomeVar > =~ /\&/ ;none of these works. Works for me in perl 5.6.1 [mithun@zorro mithun]$ perl -wT -e 'my $test = "you \& me"; print "voila\n" if $test =~ /\&/;' voila M

Re: '&' in regex

2002-05-18 Thread Perrin Harkins
Rizwan Majeed wrote: > I was trying this out : $SomeVar =~ /&/ ;$SomeVar =~ /'&'/ ;$SomeVar > =~ /\&/ ;none of these works. > > Need help This list is for mod_perl questions. For beginner Perl questions, you should try one of the mailing lists at http://lists.perl.org/ or post you

[OT] Re: '&' in regex

2002-05-18 Thread Per Einar Ellefsen
At 15:15 18.05.2002, Rizwan Majeed wrote: >I was trying this out : $SomeVar =~ /&/ ;$SomeVar =~ /'&'/ ;$SomeVar >=~ /\&/ ;none of these works. This is unrelated to mod_perl. Please ask your question somewhere related directly to Perl, such as the comp.lang.perl.misc newsgroup, perlmo