Help for this page

Select Code to Download


  1. or download this
    open NEW_TEMPLATE, "> $indx" or die "Cannot open ($indx) for writing: 
    +$!";
    
    ...
    
    # print the template to file
    $template->output(print_to => *NEW_TEMPLATE);
    
  2. or download this
    open DB, "< $db" or die "Cannot open ($db) for reading: $!";
    while (my $line = <DB>) {
    ...
        }
    }
    close DB;