Beefy Boxes and Bandwidth Generously Provided by pair Networks
Clear questions and runnable code
get the best and fastest answer
 
PerlMonks  

Re: Split array into multiple uneven arrays

by choroba (Cardinal)
on Sep 04, 2014 at 18:16 UTC ( [id://1099577]=note: print w/replies, xml ) Need Help??


in reply to Split array into multiple uneven arrays

To create a slice, you have to change the sigil, as you would use the plural form in English:
@data1 = @fields[6 .. 15]; # ^ # | # Here # etc.
لսႽ† ᥲᥒ⚪⟊Ⴙᘓᖇ Ꮅᘓᖇ⎱ Ⴙᥲ𝇋ƙᘓᖇ

Replies are listed 'Best First'.
Re^2: Split array into multiple uneven arrays
by AllPaoTeam (Acolyte) on Sep 04, 2014 at 18:28 UTC
    Thank you!!!! splice does the trick!!
      I know it's probably just a typo, but be careful not to confuse Slices and splice, that's a different (if related) beast.

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others musing on the Monastery: (2)
As of 2024-04-20 04:48 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found