in reply to Splitting on escapable delimiter
But I got the error message: "Variable length lookbehind not implemented in regex;". Is this an ActivePerl thing (that's what I'm using), a Perl v5.8.8 thing, or did I do something boneheaded and just didn't see it?use strict; use warnings; { my $var1 = "####@#####@##@###@######@###"; print "START '$var1'\n"; my @foo = split /(?<=[^#]((##)+))[@]/, $var1; foreach (@foo) { print "HERE: '$_'\n"; } }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Splitting on escapable delimiter
by BrowserUk (Patriarch) on Mar 28, 2008 at 15:31 UTC | |
by wade (Pilgrim) on Mar 28, 2008 at 16:11 UTC |