| yango | Scalar found where operator expected at flagsre.pl line 3, near "s/w/rr/$flags" |
| infi | not unless it's changed recently.. |
| yango | infi: what's the perldoc for qr//? |
| jpeg | Test::Tutorial doesn't seem to exist... |
| infi | jpeg: http://search.cpan.org/~mschwern/Test-Simple-0.70/lib/Test/Tutorial.pod |
| shorten | infi's url is at http://xrl.us/vcpi |
| infi | oh, I guess it's part of Test::Simple. my bad. |
| mauke | yango: perlop |
| jpeg | okiedoke gracias |
| mauke | yango: but I don't think you can set /g from a variable s/(?$flags)r/o/ should work fine for $flags="i", though |
| yango | mauke: worked with $flags="ig" |
| mauke | perlre says "(?imsx-imsx)" - no "g" |
| yango | well... it doesn't complain... but it probably doesn't work... |
| jagerman | Yes, but it doesn't do anything. |
| rindolf | Hi 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_Vince | you could use eval otherwise |
| jagerman | Hi rindolf |
| yango | because 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 ) |
| mauke | hardcode the possibilities and use "if" to decide |
| godzirra | Anyone familiar with CGI::Sessions and know a good way to share sessions between two domains? |
| yango | mauke: yes, that was the first thought... trying to find out if there was another possibility :) ) |
| rindolf | jagerman: what's up? |
| dhar | yango: I havent tried it, but can you rap the regex in an eval block? tr/rap/wrap/ |
| mauke | dhar: how does catching exceptions help? |
| yango | dhar: I'd rather use a couple of ifs instead :) |
| hobbs | RAPPIN' REGEX o/` |
| dhar | mauke: it doesn't |
| yango | RAPIN' REGEX |
| Prof_Vince | GumbyBRAIN: wesh wesh yo |
| GumbyBRAIN | Yo, when i go break out some piece of code that does 'use xyz' ? |
| hobbs | GumbyBRAIN: Hesch! |
| GumbyBRAIN | yes, but it does not have been gradually formulating themselves from the dutch perlworkshop. |
| dhar | mauke: unless the user passes something that's illogical to the regex parse |