Beefy Boxes and Bandwidth Generously Provided by pair Networks
Syntactic Confectionery Delight
 
PerlMonks  

Re: Building a hash from file and getting wrong result.

by choroba (Archbishop)
on May 15, 2017 at 20:16 UTC ( #1190343=note: print w/replies, xml ) Need Help??


in reply to Building a hash from file and getting wrong result.

I'd guess keys is missing here:
foreach my $recid ( reverse sort keys %SeqOrders ) # ~~~~

So, you're mixing keys and values together and sorting them.

($q=q:Sq=~/;[c](.)(.)/;chr(-||-|5+lengthSq)`"S|oS2"`map{chr |+ord }map{substrSq`S_+|`|}3E|-|`7**2-3:)=~y+S|`+$1,++print+eval$q,q,a,

Replies are listed 'Best First'.
Re^2: Building a hash from file and getting wrong result.
by flexvault (Monsignor) on May 15, 2017 at 20:22 UTC

    Dear choroba,

    Thank you! I knew is was too basic to be a real Perl problem.

    Best Regards...Ed

    "Well done is better than well said." - Benjamin Franklin

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others musing on the Monastery: (5)
As of 2022-05-23 12:18 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Do you prefer to work remotely?



    Results (82 votes). Check out past polls.

    Notices?