|
|
|||||||||
|
|||||||||
| |||||||||
|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
Stop making mediocre tutorials.The best tutorials are video! Camtasia Studio makes it easy to create engaging, buzz-building screen videos at any size, in any popular format. Download the free trial!
|
|
#1
|
|||
|
|||
|
Need help (eXternal Subroutine)
Hello, I would like to remove one element from an Array in XS (Like splice function). I have tried to search how to do that. I found only av_delete function which doesn't work for me in this case. The function I want to remove is used to undefine one element from an array.
Thank. Last edited by championrpg : April 27th, 2008 at 09:50 AM. Reason: for better word |
|
#2
|
||||
|
||||
|
What is XS?
|
|
#3
|
|||
|
|||
|
XS (eXternal Subroutine) is an Interface for C/C++ to Perl. It is used for writing some functions for high speed execution (or cannot be written in Perl).
|
|
#4
|
||||
|
||||
|
So you have an array in perl or in C? Use splice() to remove elements from a perl array. I am not familiar with av_delete.
|
|
#5
|
|||
|
|||
|
Thank for Reply. I have a Perl Array. But cannot use splice to remove elements because SRC isn't written in Perl. It is written in a file extension .XS. av_delete is one of Perl API. It is used for undefined one element of a Perl Array from internal Interpreter or XS. Finally, I think there have no way to do this for standard Perl API.
Thank KevinADC for All Reply. If you don't understand. Please forgive me. I'm new for English. |
![]() |
| Viewing: Dev Shed Forums > Programming Languages > Perl Programming > Need help (eXternal Subroutine) |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|
|