home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.lang.perl
- Path: sparky!uunet!unipalm!ian
- From: ian@unipalm.co.uk (Ian Phillipps)
- Subject: Length of $' seems broken.
- Message-ID: <1992Sep15.234725.23365@unipalm.co.uk>
- Organization: Unipalm Ltd., 216 Cambridge Science Park, Cambridge CB4 4WA, UK
- Date: Tue, 15 Sep 1992 23:47:25 GMT
- Lines: 22
-
- $_='hello, Larry'; /a/; print length $';
-
- Gives the answer 446468 on a Sunos 4.1.1 with Perl 4.019.
- An overestimate? :-)
-
- I first encountered problems when an ms-dos Perl 4.019 entered Nirvana
- as a result of a sequence like
- $e =~ /blah/;
- $e = $& . $';
-
- (yeah, I could probably do it with an s/.../ command, except I need
- multiline matching, and writing (.|\n)* is against my religion)
-
- I still haven't put my finger on exactly what causes the crash, but
- since the last one blew away my MSDOS.SYS file, and all of them need the
- BRS, I'm a little reticent at fiddling..
-
- Ian
- --
- Ian Phillipps, Unipalm Ltd, 216 Science Park, Phone +44 223 420002
- Milton Road, Cambridge, CB4 4WA, England. Phax +44 223 426868
- print unpack( u,q,9:G5S="!A;F]T:&5R('!E<FP@:&%C:V5R"@``,.'');
-