| f00li5h | eval: %foo = (what => a, nice => hash); @bar = qw/ list of things /; push @bar, %foo; [ @bar ] |
| buubot | f00li5h: ['list','of','things','what','a','nice','hash'] |
| felipe_br | I didn't know what it meant... I though he was just avoiding a syntax error |
| f00li5h | felipe_br: see the buubot just now? all listified, no more hash -_- eval: %foo = (what => a, nice => hash); @bar = qw/ list of things /; push @bar, \%foo; [ @bar ] |
| buubot | f00li5h: ['list','of','things',{what => 'a',nice => 'hash'}] |
| f00li5h | this time i put a reference to the hash in to the array look, still in as new condition |
| felipe_br | ok ok I got it! |
| f00li5h | neat |
| felipe_br | \% so the hash is kept |
| f00li5h | so, show me your hash-printing machine with that in mind felipe_br: \ is the reference-to operator gives you a reference |
| felipe_br | ok now how do I de-reference? |
| f00li5h | to de-reference it, you do $foo = \%hash; %a_hash = %$foo; with the sigil of the thing it's a reference to |
| felipe_br | ok hmm let me try it |
| f00li5h | felipe_br: (sigils are the things before the names of the vars) felipe_br: in other news, _Learning Perl_ is a fantastic book |
| felipe_br | f00li5h, ok ok f00li5h, I know I have to read more... sorry... fact is I'm not willing to dive into perl right now, I just need help I'm like a guy asking money for food |
| f00li5h | felipe_br: perldoc perlreftut |
| felipe_br | please don't tell me to go to work |
| killermach | f00li5h: yep.. I had that one.. lent it out and it was so good it didn't come back :) |
| felipe_br | just hand me the money, it's what I need right now... |
| f00li5h | killermach: i know who has my copy of it |
| felipe_br | well I can exchange my python knowledge... :-) |
| f00li5h | killermach: and i know his home address, and own a hatchet |
| killermach | f00li5h: and now I have Perl Cookbook, which is a bit abstract if you are not founded in the basics |
| felipe_br | f00li5h, it worked GREAT! thank you so much. that f*ing backslash |
| f00li5h | killermach: that's on my list-o-books-to-buy felipe_br: any time. |
| killermach | f00li5h: I don't know his address .. it's been on loan nearly 9 years.. I should just by another :) |
| f00li5h | killermach: i think it's safe to assume it's gone |
| felipe_br | another one... about the debugger |