Beefy Boxes and Bandwidth Generously Provided by pair Networks
The stupid question is the question not asked
 
PerlMonks  

Re^7: how to sum over rows based on column headings in perl

by Anonymous Monk
on Jul 31, 2015 at 20:09 UTC ( [id://1137047]=note: print w/replies, xml ) Need Help??


in reply to Re^6: how to sum over rows based on column headings in perl
in thread how to sum over rows based on column headings in perl

Replace

$counts{$name}{$_} += ($masks{$_} | $letters) =~ /M/ for @unique;

with

for my $label (@unique) { print "$masks{$label} | $letters\n"; $counts{$name}{$label} += ($masks{$label} | $letters) =~ /M/; }

This will allow you to see what you are or'ing

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others romping around the Monastery: (2)
As of 2024-04-20 04:11 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found