Simply use m//g:
my $fname = '41084109.udp'; @filename_parts = $fname =~ /(.{1,4})/g;
In reply to Re: How can I split a string into fixed-length parts, rather than on delimiters?
by almut
in thread How can I split a string into fixed-length parts, rather than on delimiters?
by ruyler
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |