develooper Front page | perl.beginners | Postings from February 2002

Use of Spllic command

Thread Next
Kevin Butters
February 12, 2002 14:46
Use of Spllic command
Message ID:
A real beginner here.

I have an array with 5 elements, 0-4. I want to insert
values into the array at position 2. Do I use the
splice command?

splice(@array, 1, "value");
print "@array\n";
0 1 2 3 4 5

Do You Yahoo!?
Send FREE Valentine eCards with Yahoo! Greetings!

Thread Next Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at | Group listing | About