The UNIX and Linux Forums  
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.

Go Back   The UNIX and Linux Forums > Top Forums > Shell Programming and Scripting
.
google unix.com




View Single Post in the UNIX and Linux Forums - Click on the Thread or Permalink to View Entire Thread -->
  #1 (permalink)  
Old 06-04-2008
chriss_58 chriss_58 is offline
Registered User
  
 

Join Date: May 2008
Posts: 41
Remove an element from an array in PERL

Hello guys,

I have the following question.

Consider the following code in PERL

Code:
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.

Last edited by Yogesh Sawant; 06-04-2008 at 06:58 AM.. Reason: added code tags