in reply to Difficulties with split
or capture what you're splitting on, and filter out empty elements:split /(?<=..)/, $in; # johngg is right...bad answer
or do like almut says above and use unpack :-)grep { length($_) > 0 } split /(..)/, $in;
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Difficulties with split
by johngg (Canon) on Apr 28, 2009 at 13:51 UTC | |
|
Re^2: Difficulties with split
by transiency (Sexton) on Apr 27, 2009 at 23:22 UTC |