* Dylan Hardison <dylanwh at gmail.com> [2004/08/05 01:25]:
> On Wed, 04 Aug 2004 13:40:46 -0600, Bruce Langlois
> <[EMAIL PROTECTED]> 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 work?
> 
> 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::Stash::HASH_OPS)'
  $VAR1 = {
            'each' => sub { "DUMMY" },
            'defined' => sub { "DUMMY" },
            'item' => sub { "DUMMY" },
            'values' => sub { "DUMMY" },
            'import' => sub { "DUMMY" },
            'size' => sub { "DUMMY" },
            'hash' => sub { "DUMMY" },
            'keys' => sub { "DUMMY" },
            'sort' => sub { "DUMMY" },
            'nsort' => sub { "DUMMY" },
            'exists' => sub { "DUMMY" },
            'list' => sub { "DUMMY" }
          };

No delete vmethod.

(darren)

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

Attachment: pgpffMDUw6tae.pgp
Description: PGP signature

Reply via email to