[cgiapp] Help with m// needed
Lou Hernsen
lhernsen1015 at wowway.com
Fri Mar 7 00:19:37 EST 2008
Doooo!
I slapped myself in the forehead...
Thanks
I must be sleepy...
I used to be on anyother list more appropreate for this type of question,
but there is this guy "R.S." who is so rude.. and its a beginners list! ..
but you are correct and I do appologize
Lou
----- Original Message -----
From: "Barry Moore" <barry.moore at genetics.utah.edu>
To: "CGI Application" <cgiapp at lists.openlib.org>
Sent: Friday, March 07, 2008 12:19 AM
Subject: Re: [cgiapp] Help with m// needed
> Hi Lou,
>
> You've got your variables around backwards. For that to match you need:
>
> $regexp = 'French';
> $variable = 'French:6:47';
>
> if ($variable =~ /$regexp/) {
> print "This works\n";
> }
>
> BTW, this mailing list is specifically for CGI::Application issues,
> and it's members will generally refer you to something like Perl
> Monks for general perl questions like this one.
>
> Barry
>
>
> On Mar 6, 2008, at 10:06 PM, Lou Hernsen wrote:
>
> > I am trying to match
> > French
> > in the string
> > French:6:47
> > The code is
> >
> > if ($PFile{Allied} =~ m/$Port/)
> >
> > and the actual vars would be
> >
> > if (French =~ m/French:6:47/)
> >
> > and there should be a match!!!!
> > but
> >
> > but it doesn't work.. and I don't see why....
> > I have used m// before the never had this problem...
> >
> > Help? thanks
> > Lou
> > Perl is my HOBBY... just something to keep my mind sharp.
> >
> > ##### CGI::Application community mailing list ################
> > ## ##
> > ## To unsubscribe, or change your message delivery options, ##
> > ## visit: http://lists.openlib.org/mailman/listinfo/cgiapp ##
> > ## ##
> > ## Web archive: http://lists.openlib.org/pipermail/cgiapp/ ##
> > ## Wiki: http://cgiapp.erlbaum.net/ ##
> > ## ##
> > ################################################################
> >
>
>
> ##### CGI::Application community mailing list ################
> ## ##
> ## To unsubscribe, or change your message delivery options, ##
> ## visit: http://lists.openlib.org/mailman/listinfo/cgiapp ##
> ## ##
> ## Web archive: http://lists.openlib.org/pipermail/cgiapp/ ##
> ## Wiki: http://cgiapp.erlbaum.net/ ##
> ## ##
> ################################################################
>
>
>
> --
> No virus found in this incoming message.
> Checked by AVG Free Edition.
> Version: 7.5.516 / Virus Database: 269.21.6/1315 - Release Date: 3/6/08
9:07 AM
>
>
More information about the cgiapp
mailing list