Beefy Boxes and Bandwidth Generously Provided by pair Networks
go ahead... be a heretic
 
PerlMonks  

Re: Concatenating Array elements

by Laurent_R (Canon)
on Aug 19, 2014 at 21:13 UTC ( [id://1098049]=note: print w/replies, xml ) Need Help??


in reply to Concatenating Array elements

The splice function is one good way to go, you could also rebuild your array using array slices:
$ perl -e 'my @a = (0..15); @a = (@a[0..7], $a[8].$a[9], @a[10..15]); +print "@a \n";' 0 1 2 3 4 5 6 7 89 10 11 12 13 14 15

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others cooling their heels in the Monastery: (4)
As of 2024-04-20 00:55 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found