#perl - Fri 16 Mar 2007 between 12:36 and 12:48



yangoScalar found where operator expected at flagsre.pl line 3, near "s/w/rr/$flags"
infinot unless it's changed recently..
yangoinfi: what's the perldoc for qr//?
jpegTest::Tutorial doesn't seem to exist...
infijpeg: http://search.cpan.org/~mschwern/Test-Simple-0.70/lib/Test/Tutorial.pod
shorteninfi's url is at http://xrl.us/vcpi
infioh, I guess it's part of Test::Simple. my bad.
maukeyango: perlop
jpegokiedoke
gracias
maukeyango: but I don't think you can set /g from a variable
s/(?$flags)r/o/ should work fine for $flags="i", though
yangomauke: worked with $flags="ig"
maukeperlre says "(?imsx-imsx)" - no "g"
yangowell... it doesn't complain... but it probably doesn't work...
jagermanYes, but it doesn't do anything.
rindolfHi jagerman
jagerman/g changes what the code *does*, not just how the regex matches.
(?$flags) affect how your regex (or a part of your regex) matches.
yango: *why* do you want to set flags in a variable like that?
Prof_Vinceyou could use eval otherwise
jagermanHi rindolf
yangobecause I'd like people to tell my script to perform some regexen... with them specifying which flags they want
(within certain limits, mostly i and g )
maukehardcode the possibilities and use "if" to decide
godzirraAnyone familiar with CGI::Sessions and know a good way to share sessions between two domains?
yangomauke: yes, that was the first thought... trying to find out if there was another possibility :) )
rindolfjagerman: what's up?
dharyango: I havent tried it, but can you rap the regex in an eval block?
tr/rap/wrap/
maukedhar: how does catching exceptions help?
yangodhar: I'd rather use a couple of ifs instead :)
hobbsRAPPIN' REGEX o/`
dharmauke: it doesn't
yangoRAPIN' REGEX
Prof_VinceGumbyBRAIN: wesh wesh yo
GumbyBRAINYo, when i go break out some piece of code that does 'use xyz' ?
hobbsGumbyBRAIN: Hesch!
GumbyBRAINyes, but it does not have been gradually formulating themselves from the dutch perlworkshop.
dharmauke: unless the user passes something that's illogical to the regex parse

Page: 1 8 15 22 29 36 43 50 57 64 71 78 85 92 99 106 

IrcArchive