#perl - Mon 19 Mar 2007 between 19:04 and 19:09



dharwow i cant believe that hash assignment from list context actually works
that is freakin ridiculous
buu"This will not obliterate the hash, it will assign a single key/value pair of undef/undef. If you want to remove all keys from the hash, but still keep %hash as an "active" variable, use:
%hash = (); "
hobbsdhar: er, of course it does. That's the only way to "assign a hash".
dharhobbs: umm no
hobbsdhar: umm yes.
dharhobbs: you must be referring to something else
buudhar: You can ONLY assign a LIST to a HASH.
hobbsdhar: yes, the "something else" is called Perl.
buu(As an aggregate data structure)
dharI'm talking about omitting the =>
no need to break out your e-peens
buudhar: What do you think the '=>' does
?
hobbsdhar: then perhaps you should say that instead of something completely unrelated, misleading, and wrong.
poo-why do you use perl versus other languages?
actiondhar shakes head
dharshakes head
hollobuu, okay :) then i will keep in mind that this is ugly.. but i dont expect that i will become a guru to this socket programming tonight.. have to make some fuckups before i know what can go wrong
hobbsdhar: seeing as how when you use the =>, guess what, you're ASSIGNING FROM A LIST.
cythpoo-, work
dharpick on someone else
buuWhy?
poo-work?
cythyes what i use at work
actiondhar goes back to something more productive than defending himself
dhargoes back to something more productive than defending himself
hobbspoo-: "they pay me to" is a reason :)
cythI use perl personally for just scripting when I need it done... not what I mainly use though
Trengoa great reason :)
NOTevilpoo-: cpan is another good reason. (but work/pay is a good reason for myself as well.)
cfeddecyth: what do you mainly use?
cythcfedde, depends on what I'm doing
buu$hashref
= %hash;
foreach my $key (sort ascend_alpha keys %{$hashref}){
cythwebdev stuff, mostly php, desktop apps: C# or Java
rindolfSuccess! my fresh Perl Test::Run has ran its own tests.
Trengoi can use whatever i like, perl's quicker to develop and runs faster than most alternatives
rindolfNow I can go to sleep.
cythmoding apache C

Page: 3 10 17 24 31 38 45 52 59 66 73 80 87 94 101 108 115 

IrcArchive