in reply to How can I split a string into fixed-length parts, rather than on delimiters?
Simply use m//g:
my $fname = '41084109.udp'; @filename_parts = $fname =~ /(.{1,4})/g; [download]