[Date Prev][Date Next][Thread Prev][Thread Next][Minivend by date
][Minivend by thread
]
Re: [if type term] SOLUTION [/if]
****** message to minivend-users from Larry Leszczynski <larryl@furph.com> ******
Hi Rob -
> I havent read the chapter on
> Pattern Matching yet in my Perl book but I do know that the =~ operator
> tests for pattern matching but I dont understand /1/i/ ? what pattern is
> that?
>
> > [if data products::new::[item-code] =~ /1/i ]
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
It's testing to see if the value of products::new::[item-code] contains a
"1" (the thing between the forward slashes). The "i" after the second
slash means to do case-insensitive matching, which in this example doesn't
accomplish much (unless you can tell the difference between an upper case
"1" and a lower case "1" :-).
Larry Leszczynski
larryl@furph.com
--
furph, Inc. WWW/Unix/Windows Solutions 734-513-7763 (voice)
info@furph.com http://www.furph.com 734-513-7759 (FAX)
-
To unsubscribe from the list, DO NOT REPLY to this message. Instead, send
email with 'UNSUBSCRIBE minivend-users' in the body to Majordomo@minivend.com.
Archive of past messages: http://www.minivend.com/minivend/minivend-list