[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index][Thread Index][Top&Search][Original]
Re: IT DOESN'T WORK Re: [PATCH English.pm] Removing the regexnastiness (finally)
At 14.48 -0500 2000.01.21, Michael G Schwern wrote:
>I lied, it doesn't work... or rather it works intermitently. And I
>don't know why. For some reason I can get it working in the debugger
>but not when run normally. And to top it all off I've gotten it to
>segfault under 5.005_03.
>
>I have this sinking feeling that Perl -must- see $& at compile or
>parse time for it to be usefully populated, which means I'd have to
>fall back to my original idea of "use English qw(:NOREGEX);" which is
>obviously not nearly as desireable.
>
>I will play with it on the train home.
How about requiring calling the evil ones explicitly? Have a custom
import() sub that requires a separate file that would contain those
aliases. That should do it, right?
And if someone tries to use $MATCH after use English, it could still be
tied, and it could return undef and warn that $MATCH must be explicitly
exported.
Just a thought or two,
--
Chris Nandor mailto:pudge@pobox.com http://pudge.net/
%PGPKey = ('B76E72AD', [1024, '0824090B CE73CA10 1FF77F13 8180B6B6'])
- Follow-Ups from:
-
Michael G Schwern <schwern@pobox.com>
- References to:
-
Hugo <hv@crypt.compulink.co.uk>
Chris Nandor <pudge@pobox.com>
Michael G Schwern <schwern@pobox.com>
[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index][Thread Index][Top&Search][Original]