Beefy Boxes and Bandwidth Generously Provided by pair Networks
"be consistent"
 
PerlMonks  

Re: Using Sessions to save Parameters

by ikkon (Monk)
on Aug 01, 2007 at 14:11 UTC ( #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


Comment on Re: Using Sessions to save Parameters
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
Node Status?
node history
Node Type: note [id://630060]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others examining the Monastery: (9)
As of 2014-09-02 12:59 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    My favorite cookbook is:










    Results (22 votes), past polls