Beefy Boxes and Bandwidth Generously Provided by pair Networks
Syntactic Confectionery Delight

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.)

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1097512]
[marto]: good morning all
[Corion]: Hi marto!
[Corion]: I just found out that in $current_top_prior ity_project , the part I am in is not even in the top three worries. That's somewhat bad, not because I'm happy with being a top worry but because that means that I don't even know how bad the rest ...
[Corion]: ... of the situation is :-)

How do I use this? | Other CB clients
Other Users?
Others having an uproarious good time at the Monastery: (5)
As of 2017-07-26 08:05 GMT
Find Nodes?
    Voting Booth?
    I came, I saw, I ...

    Results (385 votes). Check out past polls.