Beefy Boxes and Bandwidth Generously Provided by pair Networks
"be consistent"

Re^5: Hash Question

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

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

The for is also important.
لսႽ ᥲᥒ⚪⟊Ⴙᘓᖇ Ꮅᘓᖇ⎱ Ⴙᥲ𝇋ƙᘓᖇ

Replies are listed 'Best First'.
Re^6: Hash Question
by perlnoobster (Sexton) on Jan 09, 2013 at 11:48 UTC
    Ok that's cool, but I've placed it under the foreach and it's still showing errors:
    foreach (<$ah>) for my $value (@text[11, 12, 14, 15, 19]) { my $nullval = ' '; my @text = split(/\t/); 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]),"\t$nullva +l\t$nullval\t$nullval\t$nullval\t$nullval\t$nullval\t$nullval\t$nullv +al\t$nullval\t$nullval\t1\t1\n"; }
      OK, that's even cooler. You have to fix the syntax error in your part first, though. (Hint: missing left curly brace).
      لսႽ ᥲᥒ⚪⟊Ⴙᘓᖇ Ꮅᘓᖇ⎱ Ⴙᥲ𝇋ƙᘓᖇ
        hey choroba, I've tried adding curly brackets but i still cannot figure out what the issue is, please help? Thank you

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1012448]
and God said, "Let Newton be!"...

How do I use this? | Other CB clients
Other Users?
Others having an uproarious good time at the Monastery: (6)
As of 2017-05-30 03:42 GMT
Find Nodes?
    Voting Booth?