Re: [Templates] stash oddity

[prev] [thread] [next] [Date index for 2004/08/05]

From: Darren Chamberlain
Subject: Re: [Templates] stash oddity
Date: 12:47 on 05 Aug 2004
--8w3uRX/HFJGApMzv
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

* Dylan Hardison <dylanwh at gmail.com> [2004/08/05 01:25]:
> On Wed, 04 Aug 2004 13:40:46 -0600, Bruce Langlois
> <bruce@xxxxxxxxxxxx.xxx> wrote:
> > running tt2 2.09, ran into an oddity with stash:
> [snip]
> > input id will always be false.  any reason why the delete shouldn't wor=
k?
>=20
> I don't believe delete is a vmethod. At least, Template::Manual::VMethods
> doesn't document it in 2.10.

Yeah, that's true:

  $ perl -MTemplate::Stash -MData::Dumper -wle 'print Dumper($Template::Sta=
sh::HASH_OPS)'
  $VAR1 =3D {
            'each' =3D> sub { "DUMMY" },
            'defined' =3D> sub { "DUMMY" },
            'item' =3D> sub { "DUMMY" },
            'values' =3D> sub { "DUMMY" },
            'import' =3D> sub { "DUMMY" },
            'size' =3D> sub { "DUMMY" },
            'hash' =3D> sub { "DUMMY" },
            'keys' =3D> sub { "DUMMY" },
            'sort' =3D> sub { "DUMMY" },
            'nsort' =3D> sub { "DUMMY" },
            'exists' =3D> sub { "DUMMY" },
            'list' =3D> sub { "DUMMY" }
          };

No delete vmethod.

(darren)

--=20
Once you eliminate the impossible, whatever remains, no matter how
improbable, must be the truth.
    -- Sherlock Holmes

--8w3uRX/HFJGApMzv
Content-Type: application/pgp-signature
Content-Disposition: inline

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.5 (GNU/Linux)

iD8DBQFBEixPzsinjrVhZaoRAhbYAJ9OVOuPZN9Y10J+qdts5TBsoUciTgCfYRsl
S+sPV3Le7kJ7v0nG8sVSg8g=
=zW8x
-----END PGP SIGNATURE-----

--8w3uRX/HFJGApMzv--

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

[Templates] stash oddity
Bruce Langlois 19:40 on 04 Aug 2004

Re: [Templates] stash oddity
Dylan Hardison 05:25 on 05 Aug 2004

Re: [Templates] stash oddity
Darren Chamberlain 12:47 on 05 Aug 2004

Generated at 08:56 on 15 Mar 2005 by mariachi v0.52