Beefy Boxes and Bandwidth Generously Provided by pair Networks
go ahead... be a heretic
 
PerlMonks  

Re: Catalyst and the stash

by revdiablo (Prior)
on Jul 19, 2005 at 18:53 UTC ( [id://476232]=note: print w/replies, xml ) Need Help??


in reply to Catalyst and the stash

I have not used Catalyst, but its stash sounds much like POE's heap, so my experience with POE might be useful here. I use the heap for things that I will need later. Later might mean the next state, or it might mean 15 states after this one. Obviously, in the face of this type of uncertainty, argument passing isn't going to work. On the other hand, when I want to pass arguments to states, I pass arguments.

I suggest you approach Catalyst the same way. Use the stash for long term storage, and argument passing for, well, argument passing. If some modules use the stash as an argument passing mechanism, that's unfortunate. I wouldn't base my decision whether to use it on that alone, though. Just do things the way you feel comfortable.

Update: as per jest's reply, my analogy is obviously flawed. Kindly ignore my post. :-)

Replies are listed 'Best First'.
Re^2: Catalyst and the stash
by jest (Pilgrim) on Jul 19, 2005 at 20:06 UTC
    I do want to point out that the stash should _not_ be used for long-term storage; if you need this, use a session. The stash is cleared at the end of every request.

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others having a coffee break in the Monastery: (4)
As of 2024-03-29 05:27 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found