Help for this page

Select Code to Download


  1. or download this
    my $ta = Template::Alloy->new;
    my $expr = $self->parse_expr(\" 1 + 3 * 2 ");
    my $out  = $self->play_expr($expr);
    
  2. or download this
        use Template::Alloy;
        my $t = Template::Alloy->new(
    ...
       eval { $t->play_expr($t->parse_expr(\ $test->[0])); die "Didn't mat
    +ch\n" if pos($test->[0]) != length($test->[0]) };
       my $alloy_error = $@ ? do { my $e = $@; chomp($e); "Success ($e)" }
    + : 'No alloy error';
    
  3. or download this
    #!/usr/bin/perl
    
    ...
            else { die $test->[0] . " : $error" }
        }
    }
    
  4. or download this
            
            [ q{$lang | caps('lower')}, [ 'LOWER', 'ENGLISH' ] ],
    ...
            [ q{$array[-3]},             'second' ],
    
            [ q{+3},      3 ],