Beefy Boxes and Bandwidth Generously Provided by pair Networks
Syntactic Confectionery Delight
 
PerlMonks  

Configuration Files and Template::Toolkit2

by Skeeve (Vicar)
on Jun 04, 2012 at 05:37 UTC ( #974233=perlmeditation: print w/ replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    [%-
    Mail.from=    'my.sender@ddress';
    ...
             ];
    %]
    here the body comes
    
  2. or download this
        my $vars= {
            Mail   => {},
    ...
        $tt->process( $template, $vars, \$output) or die $tt->error();
        # Here I now have:
        # $vars->{'Mail'}->{'subject'} etc.
    
  3. or download this
    [%-
    # (String) Name of the main report file
    ...
        'Ijon Tichy'     => 'Ijon.Tichy@my.do.main',
    };
    %]
    
  4. or download this
    my $config_file= 'sendreport.conf';
    my $config= {
    ...
        Files => {},
    };
    $tt->process($config_file, $config) or die $tt->error();
    

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: perlmeditation [id://974233]
Approved by ww
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others browsing the Monastery: (13)
As of 2015-07-28 22:43 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (260 votes), past polls