Beefy Boxes and Bandwidth Generously Provided by pair Networks
Welcome to the Monastery

Re: Best practice or cargo cult?

by tphyahoo (Vicar)
on Jun 21, 2006 at 11:55 UTC ( #556636=note: print w/replies, xml ) Need Help??

in reply to Best practice or cargo cult?

How hard would it be to write a pragma to do this? Or does one already exist? I'm thinking something like...
use warnings; use strict; use PBP::xsm; =~ /xsm is on/; =~ /(?-x)(?-s)m is on, x and s if off/; #or whatever the appropriate s +yntax for switching off regex options... ??
Could be a nifty way of anticipating the Coming of Perl 6. Whenever that'll be...

Replies are listed 'Best First'.
Re^2: Best practice or cargo cult?
by TheDamian (Priest) on Jun 21, 2006 at 12:49 UTC
      s/ (?<= Regexp:: ) Autof (?= lags) /DefaultF/gxms ? 1 : 0;
        That would be a yes (1). I just found this on the PBP errata page:

        [242] 1st paragraph; Regexp::Autoflags does not exist in CPAN. Regexp::Autoflags should be: Regexp::DefaultFlags

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://556636]
[Corion]: karlgoethebier: Heh - naah, I think they are just very fresh out of university. At least they seem to have hired one person as key accountant who has done enterprise consulting etc. before :)
[Corion]: erix: It wouldn't be nice of me to publically shame and name ;)
[Corion]: I'm interested in how their product actually works. It uses websockets between two non-browser components, so there are some weird technology decisions, or rather, I assume the product started out as something completely different :)
[erix]: fair enough

How do I use this? | Other CB clients
Other Users?
Others imbibing at the Monastery: (7)
As of 2018-04-19 12:32 GMT
Find Nodes?
    Voting Booth?