Leser: 1
|< 1 2 >| | 13 Einträge, 2 Seiten |
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
#!C:\perl\bin\perl.exe
##!/usr/bin/perl -T
use CGI::Carp qw(fatalsToBrowser);
use strict;
use CGI qw(param url);
use HTML::Template;
my $template = HTML::Template->new(filename => './template.tmpl');
print "Content-type: text/html\n\n";
my $datei = "info.dat";
open(FILE, "< $datei");
my $test = (<FILE>);
close FILE;
$template->param(
test => $test,);
print $template->output();
1
2
3
4
5
open(FILE, "< $datei1") or die("$!");
my @main = <FILE>;
close(FILE) or die("$!");
my $main = "@main";
1
2
3
4
5
open(FILE, "< $datei1") or die("$!");
my @main = <FILE>;
close(FILE) or die("$!");
my $main = "@main";
my $template = HTML::Template->new(filename => './template.tmpl');
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25
#!C:\perl\bin\perl.exe ##!/usr/bin/perl -T use CGI::Carp qw(fatalsToBrowser); use strict; use CGI qw(param url); use HTML::Template; my $template = HTML::Template->new(filename => './template.tmpl'); print "Content-type: text/html\n\n"; my $datei = "info.dat"; my $test; open(FILE, "< $datei"); { local $/; $test = <FILE>; } close FILE; $template->param( test => $test,); print $template->output();
|< 1 2 >| | 13 Einträge, 2 Seiten |