Re: pass hash to sub expecting named params?

2005-04-25 Thread Luke Palmer
Carl Franks writes: Will it be valid to pass a hash to a subroutine expecting named params, if the hash keys match the names? sub do_this (+$foo, +$bar) { # whatever } %arg = ( :foo, :bar, ); do_this(*%arg); Yep, and that's exactly how you do it, too. I believe that the *

Re: pass hash to sub expecting named params?

2005-04-25 Thread Carl Franks
That puts my mind at ease! Many thanks, Carl On 4/25/05, Luke Palmer [EMAIL PROTECTED] wrote: Carl Franks writes: Will it be valid to pass a hash to a subroutine expecting named params, if the hash keys match the names? sub do_this (+$foo, +$bar) { # whatever } %arg = (