What does the slice operator do in perl?
-
Articles: https://www.lightnetics.com/post/11061 & https://www.lightnetics.com/post/11062, explained what can be done at the beginning and end of an array.
splice
Works in the middle of an array, it takes four arguments, two are optional.
1 - array name
2 - position to start
3 - the third is the length - optional
4 - is the replacement - optional
© Lightnetics 2024