Leser: 1
|< 1 2 >| | 18 Einträge, 2 Seiten |
1
2
3
4
5
6
7
8
9
10
11
12
13
14
my $file = $cgi->upload(file);
my $fname = time;
open (DAT,">test/$fname") or die 'Error processing file: ',$!;
binmode $file;
binmode(DAT);
my $data_file;
while(read $file,$data_file,1024) {
print DAT $data_file;
}
close(DAT);
my $file = $cgi->upload(file);
my $file = $cgi->upload('file');
1
2
3
4
5
6
7
8
9
10
11
12
sub open_template
{
my $path=shift;
open(DATA, "< $path");
my @data=<DATA>;
close(DATA);
my $data="@data";
return $data;
}
|< 1 2 >| | 18 Einträge, 2 Seiten |