Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

What is the error prone point of the while loop + each function traversing the hash in perl?

2025-08-06 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >

Share

Shulou(Shulou.com)06/01 Report--

This article is about what the while loop + each function traverses the hash error points in perl. The editor thinks it is very practical, so share it with you as a reference and follow the editor to have a look.

I encountered a strange error when using perl before. The program looks like this: while () {my @ line = split ("\ t", $_); my ($chr,$start,$end) = split (/ [\:\ -] /, $line [2]); while (my ($key,$value) = eac...

I encountered a strange error when using perl before. The program looks something like this:

While () {my @ line = split ("\ t", $_); my ($chr,$start,$end) = split (/ [\:\ -] /, $line [2]); while (my ($key,$value) = each% region) {my ($areco / split) = split (/ [\:\ -] /, $key); next if ($a ne $chr); print "1\ n" if ($line [0] eq "BjuB010898"); if ($start > = $b) & ($end)

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Development

  • How to realize the effect of tag Navigation by Ajax

    This article mainly explains "how to achieve the tag navigation effect of Ajax". Interested friends may wish to have a look. The method introduced in this paper is simple, fast and practical. Next let the editor to take you to learn "Ajax how to achieve tag navigation effect" bar! The code is as follows:

    © 2024 shulou.com SLNews company. All rights reserved.

    12
    Report