Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:
ah, can someone please explain why the hell only "trigger1" triggs in the code below..it's driving me insane..it's the exact same code for gods sake?!!
TIA,
Tom
my $title = q(the 2000); if ($title =~/^the ( *?)\d\d\d\d$/ig) { print "\ntrigger1" #PRINTS } if ($title =~/^the ( *?)\d\d\d\d$/ig) { print "\ntrigger2" #NO PRINT }
TIA,
Tom
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: regexp mystery no xxx
by Zaxo (Archbishop) on Aug 18, 2003 at 21:18 UTC | |
by Anonymous Monk on Aug 18, 2003 at 21:23 UTC | |
Re: regexp mystery no xxx
by davido (Cardinal) on Aug 18, 2003 at 21:33 UTC | |
Re: regexp mystery no xxx
by ides (Deacon) on Aug 18, 2003 at 21:22 UTC |
Back to
Seekers of Perl Wisdom