IWETHEY v. 0.3.0 | TODO
1,095 registered users | 0 active users | 2 LpH | Statistics
Login | Create New User

Welcome to IWETHEY!

New Naw.
Array refererences - now they are nasty.

my @arr;
my %hash_of_array_refs;
$hash_of_array_refs{ref_name_1} = \\@arr;

# now to push a value on to the stack

push(@{$hash_of_array_refs{ref_name_1}}, 'value');
New Ick.

[link|http://www.ubuntulinux.org|Ubuntu Linux]
[link|http://www.kuro5hin.org|There is no K5 Cabal]
Use P2P for legitimate purposes!
New Compare to Ruby
\n@arr = [];\n@hash_of_array_references = {};\n@hash_of_array_references['foo'] = @arr;\n\n# Now to push a value on the stack\n@hash_of_array_references['foo'].push('bar');\n

Peter has a point. When you start getting into nested references, Perl's syntax gets unnecessarily ugly.

I have come to believe that idealism without discipline is a quick road to disaster, while discipline without idealism is pointless. -- Aaron Ward (my brother)
New Which is pretty much the same as Python
References in Perl are teh sukc. I want to just put a damn array in a hash. I don't want to have to worry about whether it's a reference or not. And yes, sometimes that makes certain things easier when you make a distinction based on the context, but dammit, most of the time I really don't need that. :-P

-scott anderson

"Welcome to Rivendell, Mr. Anderson..."
     So what is wrong with your favorite language? - (JayMehaffey) - (22)
         The ones I get to code in? Or the ones I'd actully want to? -NT - (Arkadiy) - (5)
             You pick -NT - (tuberculosis) - (4)
                 Well then, I'd nominate Smalltalk - (Arkadiy) - (3)
                     Side note on Unit Testing - (JimWeirich) - (2)
                         Ditto, but s/Ruby/Python - (admin)
                         I write more in Smalltalk - (tuberculosis)
         I think that context is a horrible idea in Perl - (ben_tilly)
         I suspect many of my opinions are well known - (tuberculosis)
         Way too early for my candidate - (ChrisR)
         Positional, limited variable names and booleans - (imric) - (2)
             Agreed - (SpiceWare)
             OK, explain the cycle to the ignorant masses here (new thread) - (tuberculosis)
         Python... - (admin) - (3)
             Closures are being removed? -NT - (FuManChu) - (2)
                 Lambdas, actually. - (admin) - (1)
                     Yes; that bites. - (FuManChu)
         I can empathise about PHP. - (static)
         Nested hash notation in Perl. - (pwhysall) - (4)
             Naw. - (broomberg) - (3)
                 Ick. -NT - (pwhysall)
                 Compare to Ruby - (ben_tilly) - (1)
                     Which is pretty much the same as Python - (admin)

No! Try not! Do or do not, there is no try.
71 ms