in reply to Splice not working or is it me?
BTW, does anyone else familiar with rope-making and sailing think that splice is exactly the wrong name for this function?#!/usr/bin/perl -w use strict; use warnings; my @array = qw( part1 part2 part3 part4 part5 part6 part7 part8 ); #remove part4 - which is $array[3], not $array[5]! splice @array, 3, 1; print @array;
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: Splice not working or is it me?
by guha (Priest) on Sep 14, 2002 at 17:05 UTC |