VISIT STORE RECOMMEND US LINK TO US CONTACT US INDUSTRY NEWS Visit our Home Page Image hosted by Photobucket.com

Go Back   CGIScript.net -- Forums > Programming Discussion > General Perl Discussion
User Name
Password


Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 02-04-2007, 02:31 PM
Pedrissimo Pedrissimo is offline
Junior Member
 
Join Date: Feb 2007
Posts: 1
Default Find position in array

Hello,

I have two arrays and would like to find if 1 element of an array exists in the other array? If the element from @array#1 exists in @array#2, I would like to take the location it was found at array #2 and find the element 5 elements upstream of the found element say @array#2[$i+5]? I would prefer to not loop through both arrays to accomplish this as the arrays are very large.

Thanks
Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump



All times are GMT. The time now is 04:13 AM.


Powered by: vBulletin Version 3.0.7
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.