|
|
|
good chemistry is complicated, and a little bit messy -LW |
|
| PerlMonks |
Re: Re: Re: passing subroutine arguments directly into a hashby blakem (Monsignor) |
| on Oct 20, 2001 at 12:01 UTC ( [id://120237]=note: print w/replies, xml ) | Need Help?? |
This is an archived low-energy page for bots and other anonmyous visitors. Please sign up if you are a human and want to interact.
(well, technically its a list.... but thats for another day)
Another "a-ha!" moment is just one more step away. The '=>' operator is really just a glorified comma. It will quote simple barewords on the LHS, but thats the only difference. Consider the following: So, the somewhat unfamiliar: is really just a very familiar four element list: dressed up with some syntactic sugar. (note the need to quote 'barewords' when using commas) With this in mind, take another look at your hash assignment and named argument passing..... -Blake
In Section
Seekers of Perl Wisdom
|
|
||||||||||||||||||||||||