How To Pass Hashes As Subroutine Arguments In Perl

Author: , August 19th, 2011

A small step forwards in understanding how Perl handles hashes as arguments. This biggest difference is that the first way “slurps” in ALL passed values in @_ into the %args hash. The second (cooler) way, pulls in the arguments hash as a single scalar variable, allowing multiple variables to be passed via @_, if you […]

How To Use Tie::IxHash With Anonymous Hash Variables In Perl

Author: , May 18th, 2011

Tie:IxHash CPAN Manual Page

How To Loop Through Objects In JavaScript

Author: , May 15th, 2011

Coming from the Perl world, I wanted to emulate the following code in JavaScript:

What I found is that JavaScript uses “Objects” to contain hash-style data:

Also, one may use variables as key names by using the square-bracket notation, which evaluates variables first:

How To Access Value Directly From A Hash Returned By A Perl Subroutine

Author: , May 5th, 2011