Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Search results for query: *

  • Users: vane
  • Content: Threads
  • Order by date
  1. vane

    How to find out if a value exists in array?

    I find myself doing something like this quite often: foreach(@array) { if ($_ == $value) { $found=1; last; } } if ($found) { # $value found in @array... } Is there a shorter/more elegant way to do this in perl?

Part and Inventory Search

Back
Top