RE: [Templates] Accessing hash elements in a tied hash-object

[prev] [thread] [next] [Date index for 2005/04/19]

From: Jason Gottshall
Subject: RE: [Templates] Accessing hash elements in a tied hash-object
Date: 20:09 on 19 Apr 2005
[Just realized that I didn't cc this to the list when I responded to
Trond's post last week...]

Trond Michelsen wrote:
> Is it possible to access hash elements of an object which is also a
> tied hash?

Have you tried calling FETCH() and/or STORE() directly? (I discovered
this approach after many unsuccessful attempts at directly accessing DBI
handle attributes.)

	[% myval =3D imageObj.FETCH('imagepath') %]
	[% CALL imageObj.STORE('imagepath', myval) %]

Jason

_______________________________________________
templates mailing list
templates@xxxxxxxxxxxxxxxx.xxx
http://lists.template-toolkit.org/mailman/listinfo/templates

RE: [Templates] Accessing hash elements in a tied hash-object
Jason Gottshall 20:09 on 19 Apr 2005

Generated at 09:31 on 27 Apr 2005 by mariachi v0.52