Re: [Catalyst] assigning vars to $c->stash

2007-03-12 Thread Octavian Rasnita
Thank you all for your solutions. I think this is the most simple. Octavian - Original Message - From: "Eden Cardim" <[EMAIL PROTECTED]> To: "The elegant MVC web framework" Sent: Monday, March 12, 2007 2:39 PM Subject: Re: [Catalyst] assigning vars to $c-&

Re: [Catalyst] assigning vars to $c->stash

2007-03-12 Thread Robert 'phaylon' Sedlacek
Eden Cardim wrote: $c->stash( $hash ); is a little bit faster... Correct. -- # Robert 'phaylon' Sedlacek # Perl 5/Catalyst Developer in Hamburg, Germany { EMail => ' [EMAIL PROTECTED] ', Web => ' http://474.at ' } ___ List: Catalyst@lists.rawmode.

Re: [Catalyst] assigning vars to $c->stash

2007-03-12 Thread Eden Cardim
On 3/12/07, Robert 'phaylon' Sedlacek <[EMAIL PROTECTED]> wrote: $c->stash( %$hash ); $c->stash( $hash ); is a little bit faster... -- Eden Cardim Instituto Baiano de Biotecnologia Núcleo de Biologia Computacional e Gestão de Informações Biotecnológicas Laboratório de Bioinformática -- "y

Re: [Catalyst] assigning vars to $c->stash

2007-03-12 Thread Robert 'phaylon' Sedlacek
Octavian Rasnita wrote: I have a $hash hash reference and I want to add all its elements to the stash. How can I do this? Do I need to use a loop and assign each element one by one? I have seen that it is not possible to use $c->stash = $hash; Can I use something else than foreach(keys %$ha

Re: [Catalyst] assigning vars to $c->stash

2007-03-12 Thread Matt Lawrence
Carl Franks wrote: On 12/03/07, Octavian Rasnita <[EMAIL PROTECTED]> wrote: I have a $hash hash reference and I want to add all its elements to the stash. How can I do this? Do I need to use a loop and assign each element one by one? I have seen that it is not possible to use $c->stash = $has

Re: [Catalyst] assigning vars to $c->stash

2007-03-12 Thread Carl Franks
On 12/03/07, Octavian Rasnita <[EMAIL PROTECTED]> wrote: I have a $hash hash reference and I want to add all its elements to the stash. How can I do this? Do I need to use a loop and assign each element one by one? I have seen that it is not possible to use $c->stash = $hash; %{ $c->stash } =

Re: [Catalyst] assigning vars to $c->stash

2007-03-12 Thread Jonathan Rockway
On Monday 12 March 2007 06:31, Octavian Rasnita wrote: > Hi, > > I have a $hash hash reference and I want to add all its elements to the > stash. How can I do this? Do I need to use a loop and assign each element > one by one? > > I have seen that it is not possible to use $c->stash = $hash; > > Ca

[Catalyst] assigning vars to $c->stash

2007-03-12 Thread Octavian Rasnita
Hi, I have a $hash hash reference and I want to add all its elements to the stash. How can I do this? Do I need to use a loop and assign each element one by one? I have seen that it is not possible to use $c->stash = $hash; Can I use something else than foreach(keys %$hash) { $c->stash->{$_