>>>>> "dne" == dskippy@ccs neu edu <[EMAIL PROTECTED]> writes:
dne> i was wondering if anybody knew a way to match a regex with or
dne> without the /s modifier based on a boolean. there is a variable
dne> called $* that allows you to set it to true so that regexs will
dne> match with the /m modifier but is there a /s equivilant?
don't use $* as it is deprecated and may go away.
check out the internal flag feature (?imsx). it is documented in
perlre. it is meant for the very thing you are asking for.
odd mistake in that doc (5.005_03):
The letters between ? and : act as flags modifiers, see the
(?imsx-imsx) manpage.
what (?imsx-imsx) manpage?
there is a section below which does cover this in more detail.
uri
--
Uri Guttman --------- [EMAIL PROTECTED] ---------- http://www.sysarch.com
SYStems ARCHitecture, Software Engineering, Perl, Internet, UNIX Consulting
The Perl Books Page ----------- http://www.sysarch.com/cgi-bin/perl_books
The Best Search Engine on the Net ---------- http://www.northernlight.com