in reply to Understanding -> function
The sub cdtcall gets a reference to the %bakjobs hash as an argument and stores it in scalar $bakjobs. Note: %bakjobs and $bakjobs are different variables despite their similar looking names.
Well, $bakjobs is a reference to a hash. $bakjobs->{"$2"} returns a value of a key "$2" for that hash. This value is a hash reference again. And $bakjobs->{"$2"}{"dbt"} is an accessor to value of "dbt" key of %{$bakjobs->{"$2"}} hash.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Understanding -> function
by John007 (Acolyte) on Dec 28, 2008 at 19:51 UTC | |
by ysth (Canon) on Dec 28, 2008 at 20:43 UTC |