Lars Povlsen has asked for the wisdom of the Perl Monks concerning the following question:
Grrrretings!
In a script of mine, I've used
to split input lines consisting of word lists likesplit(/[\s,]+/, $x)
aaa bbb cc aa, bb, ccUnfortunately, this now breaks running on RH8.0 (perl 5.8.0), producing a "Split loop" error.
I have tracked the error to be provoked with any regexp containing character classes ([]) (and using it with split).
I am somewhat baffled, but if I am doing something wrong, please let me know...
PS: I have a workaround, but I am more interested in why the split is in err...!
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: Split loop error with perl 5.8
by grinder (Bishop) on Oct 17, 2002 at 13:23 UTC | |
by Anonymous Monk on Sep 25, 2003 at 14:27 UTC | |
Re: Split loop error with perl 5.8
by giulienk (Curate) on Oct 17, 2002 at 13:34 UTC | |
Re: Split loop error with perl 5.8
by argathin (Acolyte) on Oct 17, 2002 at 14:55 UTC | |
Re: Split loop error with perl 5.8
by brianarn (Chaplain) on Oct 18, 2002 at 00:02 UTC | |
Re: Split loop error with perl 5.8
by Dog and Pony (Priest) on Oct 17, 2002 at 19:07 UTC | |
Re: Split loop error with perl 5.8
by mojotoad (Monsignor) on Oct 11, 2004 at 21:14 UTC | |
Re: Split loop error with perl 5.8
by damianhammontree (Initiate) on Oct 11, 2004 at 20:46 UTC | |
Re: Split loop error with perl 5.8
by ysth (Canon) on Oct 11, 2004 at 22:53 UTC |
Back to
Seekers of Perl Wisdom