• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /macosx-10.9.5/CPANInternal-140/Template-Toolkit/lib/Template/

Lines Matching refs:stash

35 # between the Perl and XS stash implementations
106 # definitions that will be used to initialise the stash.
133 # Creates a copy of the current stash object to effect localisation
134 # of variables. The new stash is blessed into the same class as the
136 # which contains a reference to the parent stash that created it
141 # variable/values which should be defined in the new stash. The
143 # stash.
178 # Returns a reference to the PARENT stash. When called in the following
180 # $stash = $stash->declone();
181 # the reference count on the current stash will drop to 0 and be "freed"
183 # contains the state of the stash before it was cloned.
195 # Returns the value for an variable stored in the stash. The variable
218 # identifier against the previous result, using the root stash
240 # Updates the value for a variable in the stash. The first parameter
292 # closure which will return the actual stash item when called.
401 # which is the stash object itself (a hash). Thus, a non-compound
402 # variable 'foo' is actually '(stash.)foo', the compound 'foo.bar' is
403 # '(stash.)foo.bar'. The first parameter is a reference to the current
404 # root, initially the stash itself. The second parameter contains the
452 # ugly hack: only allow import vmeth to be called on root stash
696 my $stash = Template::Stash->new(\%vars);
699 $value = $stash->get($variable);
700 $value = $stash->get(\@compound);
703 $stash->set($variable, $value);
704 $stash->set(\@compound, $value);
707 $stash->set($variable, $value, 1);
708 $stash->set(\@compound, $value, 1);
711 $stash->update(\%new_vars)
714 $stash = $stash->clone(\%new_vars);
715 $stash = $stash->declone();
725 as well as simple values. The stash automatically performs the right
729 The stash has L<clone()> and L<declone()> methods which are used by the
730 template processor to make temporary copies of the stash for
740 my $stash = Template::Stash->new();
743 should be used to initialise the stash.
745 my $stash = Template::Stash->new({ var1 => 'value1',
752 $value = $stash->get('var1');
762 $stash->get([ 'foo', 0, 'bar', [ 10 ], 'baz', [ 20 ] ]);
769 $stash->set('var1', 'value1');
774 $stash->set('var2', 'default_value', 1);
780 $stash->set([ 'foo', 0, 'bar', 0 ], 30);
787 $stash->set('foo', { 'bar' => 'baz', 'wiz' => 'waz' });
790 $stash->set('IMPORT', $stash->get('foo'));
796 $stash->update({
813 which represents a localised copy of the parent stash. Variables can be freely
814 updated in the cloned stash and when L<declone()> is called, the original stash
821 cloning the stash. For adding and updating complex variables, the L<set()>
825 A cloned stash maintains a reference to the stash that it was copied
831 restore the state of a stash as described above.
843 $stash->define_vmethod(