Beefy Boxes and Bandwidth Generously Provided by pair Networks
Think about Loose Coupling
 
PerlMonks  

Re: Using Sessions to save Parameters

by ikkon (Monk)
on Aug 01, 2007 at 14:11 UTC ( [id://630060]=note: print w/replies, xml ) Need Help??


in reply to Using Sessions to save Parameters

I have updated my question, it seems that as of right this second I am haveing trouble pushing the loaded parameters to a exsisting hash

Replies are listed 'Best First'.
Re^2: Using Sessions to save Parameters
by Joost (Canon) on Aug 01, 2007 at 18:14 UTC
    I'm assuming you've got problems with this line:
    %newHash .= \%valueHash;
    I'm very surprised that didn't throw a syntax error.

    .= is the string concatenation operator. You can't just use it to combine hashes.

    You'll want something like:

    @newHash{keys %valueHash} = values %valueHash;
    Which inserts the key-value pairs in %valueHash into %newHash, overriding any pairs with the same names.

    Side note: if you're having trouble with some almost totally unrelated problem, it's probably better to post a new, trimmed-down version of the new problem instead of updating an old one.

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://630060]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others goofing around in the Monastery: (5)
As of 2024-04-24 12:48 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found