Beefy Boxes and Bandwidth Generously Provided by pair Networks
P is for Practical
 
PerlMonks  

Re^3: How to split a string based on character(s) length

by ikegami (Pope)
on Aug 15, 2014 at 03:55 UTC ( #1097512=note: print w/ replies, xml ) Need Help??


in reply to Re^2: How to split a string based on character(s) length
in thread How to split a string based on the length of a sequence of characters within the string

I'm not sure what you mean by that.

$input =~ /(.{1,10})/g
returns a list of strings just like
unpack("(A10)*", $input)
does. (In list context, of course.)


Comment on Re^3: How to split a string based on character(s) length
Select or Download Code

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others cooling their heels in the Monastery: (6)
As of 2014-09-23 04:01 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    How do you remember the number of days in each month?











    Results (210 votes), past polls