<html><head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8"></head><body><div>Yes that is elegant and viable. </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 <rob@intelcompute.com> </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>><br>> Hi<br>><br>> We need to pass value of variables from one stage of request<br>> processing to other. We can use stash , but the problem is<br>> some views like Catalyst::View::JSON tend to work on the<br>> entire stash and they convert the stash to JSON output and we<br>> do not want to expose all the intermediate values/variables.<br>><br>><br>> Hence my question is is there any mechanism to share data<br>> in Catalyst App other than the stash.<br>><br>> Or should i create a simple perl package and use a global<br>> hash variable in it ?<br>><br>> regds<br>> mallah.<br>><br>><br>><br>><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><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>