Send the code.
-----Original Message-----
From: Eric Walker [mailto:[EMAIL PROTECTED] 
Sent: Thursday, November 20, 2003 2:52 PM
To: Perl Newbies
Subject: RE: Pointers


Well see the key is I am passing a value to a sub this is a pointer and
I am having trouble getting access to the hash with in the subroutine
$Rules is a pointer given to me by a prewritten Database function.


&sub(\$Rules);

I am actually passing in 2 hashes and need to compare the keys. so I am
using a nested foreach but can't access the values within each foreach.

hope this can clear it up a little.

On Thu, 2003-11-20 at 12:34, Daniel Staal wrote:

    --As off Thursday, November 20, 2003 12:20 PM -0700, Eric Walker is 
    alleged to have said:
    
    > ok why the $$ instead of the %$?
    >
    > sorry confused.
    >
    > On Thu, 2003-11-20 at 12:08, Paul Kraus wrote:
    >>
    >>     $$overdate{key}
    >>
    >>     Perldoc perlref
    
    --As for the rest, it is mine.
    
    $$ would get you the value of a certain value in the hash.  (The 
    scalar value of the hash element.)  %$ would get you the entire
hash.
    
    Most often people want one value of the hash, not the whole hash, 
    though both have their uses.
    
    Daniel T. Staal
    
    ---------------------------------------------------------------
    This email copyright the author.  Unless otherwise noted, you
    are expressly allowed to retransmit, quote, or otherwise use
    the contents for non-commercial purposes.  This copyright will
    expire 5 years after the author's death, or in 30 years,
    whichever is longer, unless such a period is in excess of
    local copyright law.
    ---------------------------------------------------------------
    
    -- 
    To unsubscribe, e-mail: [EMAIL PROTECTED]
    For additional commands, e-mail: [EMAIL PROTECTED]
    
    


-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to