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]
[choroba]: Dangers of WFH: a mailman rings, brings a parcel for my wife, I need to go outside, take my son with me, sign a paper *and* into the postman's mobile app, get back. Guess what the soup was doing meanwhiles?
[Discipulus]: soup without heat protections as CPUs are doomed to burned..
[1nickt]: The dangers of milk-based soup, you mean?

How do I use this? | Other CB clients
Other Users?
Others exploiting the Monastery: (11)
As of 2017-10-18 11:34 GMT
Find Nodes?
    Voting Booth?
    My fridge is mostly full of:

    Results (244 votes). Check out past polls.