Remove an element from an array in PERL

Hello guys,

I have the following question.

Consider the following code in PERL

for($xeAnumber=0; $xeAnumber<@xeAnumber; $xeAnumber++)
           {
              if(@xeAnumber[$xeAnumber]==@final_file[2])
              {
                 @final_file[0]=@xeTimeStamp[$xeAnumber];
                 
              }

What i want to do is that when the if statement is met how can i remove from the array @xeAnumber the element @xeAnumber[$xeAnumber]????

Thank you.

you can remove an element of an array using splice function

Also note that when referring to an element in an array, the syntax is $array[$n] not @array[$n]

... and Perl is a name, not an acronym.

just use

delete $arr[$index]