Beefy Boxes and Bandwidth Generously Provided by pair Networks
Your skill will accomplish
what the force of many cannot
 
PerlMonks  

Re^7: Hash Question

by choroba (Canon)
on Jan 09, 2013 at 11:59 UTC ( #1012462=note: print w/ replies, xml ) Need Help??


in reply to Re^6: Hash Question
in thread Hash Question

OK, that's even cooler. You have to fix the syntax error in your part first, though. (Hint: missing left curly brace).

لսႽ ᥲᥒ⚪⟊Ⴙᘓᖇ Ꮅᘓᖇ⎱ Ⴙᥲ𝇋ƙᘓᖇ


Comment on Re^7: Hash Question
Re^8: Hash Question
by perlnoobster (Sexton) on Jan 09, 2013 at 12:52 UTC
    hey choroba, I've tried adding curly brackets but i still cannot figure out what the issue is, please help? Thank you

      hey choroba, I've tried adding curly brackets but i still cannot figure out what the issue is, please help? Thank you

      Have you read perlintro?

      for ( ... ) { # start something

          for ( ... ) { ... }

      } # end something

        Hello Anonmous monk, I'm making progress:
        foreach (<$ah>) { my @text = split(/\t/); for my $value (@text[11, 14, 17]) { if ($bHash{ $text[3] } eq $value) { $bHash{ $text[0] } = $value; last; } print OUT2 join( "\t", @text[1,2,3,4,11,5,6,8,7,11,12]),"\t1\t1\n" +; } } close $ah;
        it works however the results seem to be duplicated? Thank you

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others browsing the Monastery: (9)
As of 2015-07-04 15:25 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (60 votes), past polls