User Name Password Register
DaniWeb IT Discussion Community
All
What is DaniWeb IT Discussion Community?
You're currently browsing the Perl section within the Software Development category of DaniWeb, a massive community of 456,273 software developers, web developers, Internet marketers, and tech gurus who are all enthusiastic about making contacts, networking, and learning from each other. In fact, there are 3,379 IT professionals currently interacting right now! Registration is free, only takes a minute and lets you enjoy all of the interactive features of the site.
Please support our Perl advertiser: Programming Forums
Views: 841 | Replies: 3 | Solved
Join Date: Jun 2008
Posts: 79
Reputation: raul15791 is an unknown quantity at this point 
Rep Power: 1
Solved Threads: 7
raul15791 raul15791 is offline Offline
Junior Poster in Training

Comparing items in arrays

  #1  
Jul 9th, 2008
Hi,

I try to compare items in two different arrays. This loop works well in another program of mine. But not in the current program i'm working on. Weird....

The output of the program shows
Nested quantifiers in regex; marked by <-- HERE........
  1. for $3 (@obsolete_class_declare)
  2. {
  3. for $4 (@classB)
  4. {
  5. if ($4 =~ /$3/i) #This line causing problem
  6. {
  7. print "$4\n";
  8. last;
  9. }
  10. }
  11.  
  12. }
AddThis Social Bookmark Button
Reply With Quote  

Only community members can participate in forum threads. You must register or log in to contribute.

DaniWeb Perl Marketplace
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)

 

Thread Tools Display Modes

Similar Threads
Other Threads in the Perl Forum

All times are GMT -4. The time now is 6:32 pm.
Forum system based on vBulletin Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
©2003 - 2008 DaniWeb® LLC