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 bkrike 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: meili100
  • Content: Threads
  • Order by date
  1. meili100

    How to tell the last iteration in a foreach loop?

    foreach $key (keys (%hash)){ print "$hash{$key}:"; } The last element will also be followed by a ":" which is not what I want. Is there a way to tell when foreach loops to its last round, so that I can skip printing the last ":"? Thanks!

Part and Inventory Search

Back
Top