Text::Vpp is a Perl extension for a versatile text pre-processor.
SYNOPSIS
use Text::Vpp ;
$fin = Text::Vpp-> new('input_file_name') ;
$fin->setVar('one_variable_name' => 'value_one',
'another_variable_name' => 'value_two') ;
$res = $fin -> substitute ; # or directly $fin -> substitute('file_out')
die "Vpp error ",$fin->getErrors,"n" unless $res ;
$fout = $fin->getText ;
print "Result is : nn",join("n",@$fout) ,"n";
This class enables to preprocess a file a bit like cpp.
First you create a Vpp object passing the name of the file to process, then you call setvar() to set the variables you need.
Finally you call substitute on the Vpp object.
Product's homepage
Requirements:
· Perl