in reply to How can I split a string into fixed-length parts, rather than on delimiters?
After this runs, print "@parts" will give you@parts = split /(.{4})/, '41084109.udp';
Obviously, if the filename isn't exactly 8.4, you'll get the wrong answer, but it's an interesting use of split().4108 4109 .udp
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Answer: How can I SPLIT a file name w/out delimiters ie: 41084109
by ikegami (Patriarch) on Nov 08, 2006 at 03:08 UTC |