Your message dated Sun, 24 Jun 2012 11:13:58 +0100
with message-id <[email protected]>
and subject line Re: Bug#678733: more than one hash?
has caused the Debian Bug report #678733,
regarding more than one hash?
to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact [email protected]
immediately.)


-- 
678733: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=678733
Debian Bug Tracking System
Contact [email protected] with problems
--- Begin Message ---
Package: perl-doc
Version: 5.14.2-12
Severity: wishlist
File: /usr/share/man/man1/perlsub.1.gz

This isn't clear,

   Pass by Reference
       If you want to pass more than one array or hash into a function--or
       return them from it--and have them maintain their integrity, then
       you're going to have to use an explicit pass-by-reference.

Perhaps this is better,

   Pass by Reference
       If you want to pass a hash or more than one array into a function--or
       return them from it--and have them maintain their integrity, then
       you're going to have to use an explicit pass-by-reference.



--- End Message ---
--- Begin Message ---
On Sun, Jun 24, 2012 at 02:55:57PM +0800, [email protected] wrote:
> This isn't clear,
> 
>    Pass by Reference
>        If you want to pass more than one array or hash into a function--or
>        return them from it--and have them maintain their integrity, then
>        you're going to have to use an explicit pass-by-reference.
> 
> Perhaps this is better,
> 
>    Pass by Reference
>        If you want to pass a hash or more than one array into a function--or
>        return them from it--and have them maintain their integrity, then
>        you're going to have to use an explicit pass-by-reference.

No, you can pass a single hash in directly:

#!/usr/bin/perl

sub a {
    my %b = @_;
    print $b{wibble} . "\n";
}

%c = (
    wibble => 'hello'
);

a(%c);

-- 
Dominic Hargreaves | http://www.larted.org.uk/~dom/
PGP key 5178E2A5 from the.earth.li (keyserver,web,email)


--- End Message ---

Reply via email to