Do you have a question? Post it now! No Registration Necessary. Now with pictures!
- Posted on
- Passing hash to a subroutine
April 7, 2007, 11:46 am
rate this thread
Re: Passing hash to a subroutine
Strictly speacking, you can't. You can pass a list of key-value pairs
and store that in a hash. You can pass a hashref. You can use the \%
prototype and the ref will be taken for you. In this last sense, you
Really? strict.pm triggers *errors* for some contructs that become
syntactically incorrect. It does not issue warnings.
You may have made it smaller. Lots of inessential stuff there.
[snip]>which are good in telling me what I did wrong, but I have no
They mean exactly what they mean either use
256),7,249);s/[^\w,]/ /g;$ \=/^J/?$/:"\r";print,redo}#JAPH,