Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl Monk, Perl Meditation

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'     => '',
  4. or download this
    my $config_file= 'sendreport.conf';
    my $config= {
        Files => {},
    $tt->process($config_file, $config) or die $tt->error();

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: perlmeditation [id://974233]
Approved by ww
[erix]: record separator
[Cosmic37]: Permissions are interesting earthlings. Did nature determine who gives permission and who asks permission. Who was the first to get permission? Are you not related to them as one big earthling family?
[karlgoethebier]: Cojones! We need cojones!
[karlgoethebier]: Ouch! Permissions! We need permissions!
[BarApp]: I can not use modules. I gain temporary access and still can not use modules.
[Cosmic37]: ta erix - this szabo geezer is pretty cool methinks and he writes about undef but I cannot see instructions for redefining the record separator after having undefined it

How do I use this? | Other CB clients
Other Users?
Others musing on the Monastery: (8)
As of 2017-06-29 16:39 GMT
Find Nodes?
    Voting Booth?
    How many monitors do you use while coding?

    Results (672 votes). Check out past polls.