Beefy Boxes and Bandwidth Generously Provided by pair Networks
Don't ask to ask, just ask
 
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
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
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 having an uproarious good time at the Monastery: (15)
As of 2015-07-30 14:48 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (271 votes), past polls