Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl Monk, Perl Meditation

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

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?

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

How do I use this? | Other CB clients
Other Users?
Others chanting in the Monastery: (6)
As of 2016-10-26 02:33 GMT
Find Nodes?
    Voting Booth?
    How many different varieties (color, size, etc) of socks do you have in your sock drawer?

    Results (330 votes). Check out past polls.