[Date Prev][Date Next][Thread Prev][Thread Next] [Search] [Date Index] [Thread Index]

RE: [FWP] sifting



Jeff Pinyan writes:
> >my $regex = qr/$re/;
> 
> Eh, you have a point I guess.

My rationale was: either it's already compiled, or it's not.  If it
is, there's no real hit.  If it isn't, let's compile it.  It doesn't
matter whether it's a reference to a compiled Regexp or some other
type of reference, you're saying
  blahblah =~ $regex
later on, so it's going to be stringified and compiled as a regexp
then anyway.

Nat

==== Want to unsubscribe from Fun With Perl?  Well, if you insist...
==== Send email to <fwp-request@technofile.org> with message _body_
====   unsubscribe