in reply to Losing control of large regular expressions
I believe that you have to set the environment variable before invoking Perl, not within Perl. My reading of perl.c suggests that Perl sets the appropriate internal flag before parsing the script.