food for thought
Date: 1/15/2013 7:13 pm
Rating: 2 Rate [ | ]
Date: 1/26/2013 8:52 pm
Rate [ | ]
I thought of another positive point to idea in this presentation.
--begin recap or presentation--
given $x is an array reference the array can be accessed using
while this is not handy for a simple scalar it is handy for complicated structures:
it has a nice left to right syntax
also for subs that return an array or results, rather than use wantarray inside the sub, just return an arrayref and use the new syntax:
again a nice left to right syntax.
I like this better than using wantarray because with wantarray you never get what you want from this:
parm => $value,
parm2 => subReturnsList($parm),