<html><head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8"></head><body><div>Yes that is elegant and viable.&nbsp;</div><div>thanks.</div><div><br></div><div><br></div><div><br></div><div id="composer_signature"><div style="font-size:85%;color:#575757" dir="auto">Sent from my Samsung Galaxy smartphone.</div></div><div><br></div><div style="font-size:100%;color:#000000"><!-- originalMessage --><div>-------- Original message --------</div><div>From: Robert Brown &lt;rob@intelcompute.com&gt; </div><div>Date: 5/12/17  03:11  (GMT+05:30) </div><div>To: catalyst@lists.scsys.co.uk </div><div>Subject: Re: [Catalyst] stash alternative for passing data </div><div><br></div></div>You can configure Catalyst::View::JSON to NOT work on the entire stash.<br><br>See 'expose_stash' in the config: <br>https://metacpan.org/pod/Catalyst::View::JSON<br><br><br><br>On 11/05/17 20:29, Rajesh Kumar Mallah wrote:<br>&gt;<br>&gt; Hi<br>&gt;<br>&gt; We need to pass value of variables from one stage of request<br>&gt; processing to other. We can use stash , but the problem is<br>&gt; some views like&nbsp; Catalyst::View::JSON&nbsp;&nbsp; tend to work on the<br>&gt; entire stash and they convert the stash to JSON output and we<br>&gt; do not want to expose all the intermediate values/variables.<br>&gt;<br>&gt;<br>&gt; Hence my question is&nbsp; is there any mechanism to share data<br>&gt; in Catalyst App other than the stash.<br>&gt;<br>&gt; Or should i create a simple perl package and use a global<br>&gt; hash variable in it ?<br>&gt;<br>&gt; regds<br>&gt; mallah.<br>&gt;<br>&gt;<br>&gt;<br>&gt;<br>&gt;<br>&gt;<br>&gt; _______________________________________________<br>&gt; List: Catalyst@lists.scsys.co.uk<br>&gt; Listinfo: http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst<br>&gt; Searchable archive: http://www.mail-archive.com/catalyst@lists.scsys.co.uk/<br>&gt; Dev site: http://dev.catalyst.perl.org/<br><br><br>_______________________________________________<br>List: Catalyst@lists.scsys.co.uk<br>Listinfo: http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst<br>Searchable archive: http://www.mail-archive.com/catalyst@lists.scsys.co.uk/<br>Dev site: http://dev.catalyst.perl.org/<br></body></html>