home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!sun-barr!olivea!spool.mu.edu!nigel.msen.com!sdd.hp.com!ux1.cso.uiuc.edu!news.cso.uiuc.edu!ux2.cso.uiuc.edu!ejk
- From: ejk@ux2.cso.uiuc.edu (Ed Kubaitis - CCSO)
- Newsgroups: comp.lang.perl
- Subject: Re: perl dumps core on long regular expressions.
- Message-ID: <BuF4AJ.5nJ@news.cso.uiuc.edu>
- Date: 11 Sep 92 14:30:17 GMT
- References: <VICTOR.92Sep11094204@terse4.watson.ibm.com>
- Sender: usenet@news.cso.uiuc.edu (Net Noise owner)
- Organization: University of Illinois - Urbana
- Lines: 28
-
- victor@watson.ibm.com (Victor Miller) writes:
- |I've tried the following script on perl 4.010 on an RS/6000, sun
- |sparcstation and IBM RT/PC. If you call this script bug, then
- |bug n
- |
- |where n is any number 30 or bigger dumps core, but an smaller value
- |terminates normally. The local administrators haven't upgraded to
- |4.035 yet, so I can't test it on that.
- |
- |#!/usr/bin/perl
- |$n = shift;
- |$n = 25 if $n eq "";
- |for $i (0..$n) {
- | push(@files,sprintf("%3d",$i));
- |}
- |
- |$re = '^(' . join("|", @files) . ')+$' ;
- |
- |@a = ('a','AAA','AAAS');
- |foreach (@a) {
- | $len{$_} = length if /$re/io;
- |}
-
- Had the same problem at 4.010. It was fixed at 4.019.
-
- ----------------------------------
- Ed Kubaitis (ejk@ux2.cso.uiuc.edu)
- Computing & Communications Services Office - University of Illinois, Urbana
-