Beefy Boxes and Bandwidth Generously Provided by pair Networks
laziness, impatience, and hubris
 
PerlMonks  

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
    +8
    
    }
    
  2. or download this
    for my $file (qw/Activator-PFAM.txt AntiOxidant-PFAM.txt Toxin-PFAM.tx
    +t/){
         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?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://991024]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others surveying the Monastery: (9)
As of 2014-07-11 04:57 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    When choosing user names for websites, I prefer to use:








    Results (218 votes), past polls