You are viewing a plain text version of this content. The canonical link for it is here.
Posted to modperl@perl.apache.org by Rizwan Majeed <ri...@afapp.net> on 2002/05/18 15:15:41 UTC
'&' in regex
I was trying this out : $SomeVar =~ /&/ ; $SomeVar =~ /'&'/ ; $SomeVar
=~ /\&/ ; none of these works.
Need help
Thanks
Riz
----- Original Message -----
From: "Mithun Bhattacharya" <in...@yahoo.com>
To: <mo...@perl.apache.org>
Sent: Saturday, May 18, 2002 4:01 PM
Subject: Re: Apache::DB
>
> --- Ged Haywood <ge...@www2.jubileegroup.co.uk> wrote:
>
> > print STDERR "[$date_time] $subroutine_name:
> > $something_interesting\n";
>
>
> Ofcourse there is Apache::Log :).
>
> __________________________________________________
> Do You Yahoo!?
> LAUNCH - Your Yahoo! Music Experience
> http://launch.yahoo.com
Re: '&' in regex
Posted by Perrin Harkins <pe...@elem.com>.
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
your question on http://perlmonks.org/.
- Perrin
Re: '&' in regex
Posted by Mithun Bhattacharya <in...@yahoo.com>.
--- Rizwan Majeed <ri...@afapp.net> 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
Mithun
__________________________________________________
Do You Yahoo!?
LAUNCH - Your Yahoo! Music Experience
http://launch.yahoo.com
[OT] Re: '&' in regex
Posted by Per Einar Ellefsen <pe...@skynet.be>.
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, perlmonks.org
or another Perl-related list at http://lists.perl.org/ which might be
related to your question.
--
Per Einar Ellefsen
per.einar@skynet.be