#perl - Thu 8 Mar 2007 between 02:01 and 02:08



f00li5heval: %foo = (what => a, nice => hash); @bar = qw/ list of things /; push @bar, %foo; [ @bar ]
buubotf00li5h: ['list','of','things','what','a','nice','hash']
felipe_brI didn't know what it meant... I though he was just avoiding a syntax error
f00li5hfelipe_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 ]
buubotf00li5h: ['list','of','things',{what => 'a',nice => 'hash'}]
f00li5hthis time i put a reference to the hash in to the array
look, still in as new condition
felipe_brok ok I got it!
f00li5hneat
felipe_br\% so the hash is kept
f00li5hso, show me your hash-printing machine with that in mind
felipe_br: \ is the reference-to operator
gives you a reference
felipe_brok now how do I de-reference?
f00li5hto de-reference it, you do $foo = \%hash; %a_hash = %$foo;
with the sigil of the thing it's a reference to
felipe_brok
hmm
let me try it
f00li5hfelipe_br: (sigils are the things before the names of the vars)
felipe_br: in other news, _Learning Perl_ is a fantastic book
felipe_brf00li5h, 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
f00li5hfelipe_br: perldoc perlreftut
felipe_brplease don't tell me to go to work
killermachf00li5h: yep.. I had that one.. lent it out and it was so good it didn't come back :)
felipe_brjust hand me the money, it's what I need right now...
f00li5hkillermach: i know who has my copy of it
felipe_brwell I can exchange my python knowledge... :-)
f00li5hkillermach: and i know his home address, and own a hatchet
killermachf00li5h: and now I have Perl Cookbook, which is a bit abstract if you are not founded in the basics
felipe_brf00li5h, it worked GREAT! thank you so much. that f*ing backslash
f00li5hkillermach: that's on my list-o-books-to-buy
felipe_br: any time.
killermachf00li5h: I don't know his address .. it's been on loan nearly 9 years.. I should just by another :)
f00li5hkillermach: i think it's safe to assume it's gone
felipe_branother one... about the debugger

Page: 2 9 16 23 30 37 44 51 58 65 72 79 86 

IrcArchive