Beefy Boxes and Bandwidth Generously Provided by pair Networks
The stupid question is the question not asked
 
PerlMonks  

Re: How can I split a string into fixed-length parts, rather than on delimiters?

by almut (Canon)
on Nov 08, 2006 at 19:42 UTC ( [id://582958]=note: print w/replies, xml ) Need Help??


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;

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://582958]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others contemplating the Monastery: (4)
As of 2024-04-19 16:53 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found