Beefy Boxes and Bandwidth Generously Provided by pair Networks
Clear questions and runnable code
get the best and fastest answer

Re^5: Help with pushing into a hash

by Kenosis (Priest)
on Aug 31, 2012 at 15:16 UTC ( #991024=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download

  1. or download this
    my %activ  = map { s/\.\d+//g; /(.+)\s+\|\s+(.+)/; $1 => $2 } read_fil
    +e $activin; # Line 20
    my %antiox = map { s/\.\d+//g; /(.+)\s+\|\s+(.+)/; $1 => $2 } read_fil
    +e $antioxin; # Line 21
        push @toxinline, "$1 | $2 | $toxin{$1}\n" if $toxin{$1};  # Line 2
  2. or download this
    for my $file (qw/Activator-PFAM.txt AntiOxidant-PFAM.txt Toxin-PFAM.tx
         for(read_file $file){
             say "No Match in File: $file; Line: $_" if !/(.+)\s+\|\s+(.+)
  3. or download this
    No Match in File: test2.txt; Line: 
  4. or download this
    my %data = map {s/\.\d+//g; /(.+)\s+\|\s+(.+)/ and $1 => $2 } grep /\S
    +/, read_file $test2;

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://991024]
[LanX]: Corion: and that's the clue how Germany can dominate Handball tournaments, just continuing the domestic league and forbidding the best players of the world to attend :)
LanX (which would be a good scheme for England and football too)
[LanX]: If "Canada will play the Czech Republic for bronze on Saturday", that means Germany will play Syria in disguise...

How do I use this? | Other CB clients
Other Users?
Others exploiting the Monastery: (11)
As of 2018-02-23 16:42 GMT
Find Nodes?
    Voting Booth?
    When it is dark outside I am happiest to see ...

    Results (303 votes). Check out past polls.