common mistakes.
-Original Message-
From: Luinrandir [mailto:[EMAIL PROTECTED]
Sent: Sat 9/3/2005 12:01 AM
To: Perl Beginners List
Cc:
Subject: Re: Just need a yes or no answer on passing a hash to a package
Yeah I was reading a
Devers" <[EMAIL PROTECTED]>
To: "Luinrandir" <[EMAIL PROTECTED]>
Cc: "Perl Beginners List"
Sent: Friday, September 02, 2005 8:34 PM
Subject: Re: Just need a yes or no answer on passing a hash to a package
On Fri, 2 Sep 2005, Luinrandir wrote:
> Can I pass
On Sat, 3 Sep 2005, Luinrandir wrote:
> Yeah I was reading about references... A
> i don't get it...
Read upon them until you do.
> I fgured I could just breah the hash into two arrays, pass them and
> reconstruct the hash in the package.. of something like that...
This is probably possibl
ginal Message -
From: "Chris Devers" <[EMAIL PROTECTED]>
To: "Luinrandir" <[EMAIL PROTECTED]>
Cc: "Perl Beginners List"
Sent: Friday, September 02, 2005 8:34 PM
Subject: Re: Just need a yes or no answer on passing a hash to a package
On Fri, 2 Sep 20
On Fri, 2 Sep 2005, Luinrandir wrote:
> Can I pass a hash to a package?
Yes.
(Hint: passing any complex data around is generally best done with the
use of references, so that's the area you need to be studying up on.)
Pseudocode:
my $result = go_do_something_with( \%this_hash );
...
s
First I just want to say that I have been reading books, searching the net
and experimenting for about 3 hours now..
the question is,
Can I pass a hash to a package?
I have been readin FAQ's like there is no tomorrow..
and most of it is over my head
(using double dog secret vars and code that