|< 1 2 >| | 13 Einträge, 2 Seiten |
our $coolhash{$file} = "$counts|$forsrc";
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 26 27 28 29 30 31 32 33
print "Content-type: text/html\n\n"; use strict; use warnings; my $in = $ENV{'QUERY_STRING'}; chomp $in; our ($File, $Src) = split(/\&/,$in); open(FILE, "<countdown.log") || die "HOHO! niemals wirst du die Datei öffnen ;-)\n"; our @downs = <FILE>; chomp @downs; close(FILE); foreach (@downs) { my ($counts, $file, $forsrc) = split(/\|/,$_); our $coolhash{$file} = "$counts|$forsrc"; } foreach (keys %coolhash){ my ($cnts,$srct) = split(/\|/, $coolhash{$_}); if (($_ eq $File) && ($srct == $Src)) { print "$cnts"; exit;} }
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
26
use strict;
use warnings;
chomp(my $in = $ENV{'QUERY_STRING'});
my ($File, $Src) = split(/\&/,$in);
open(FILE, "<countdown.log") || die $!;
chomp(my @downs = <FILE>);
close(FILE);
my %coolhash = {};
foreach (@downs)
{
my ($counts, $file, $forsrc) = split(/\|/,$_);
$coolhash{$file} = "$counts|$forsrc";
}
foreach (keys %coolhash)
{
my ($cnts,$srct) = split(/\|/, $coolhash{$_});
if (($coolhash{$_} eq $File) && ($srct == $Src)) { print "$cnts"; exit;}
}
our $coolhash{$file} = "$counts|$forsrc";
Quote[quote=Cooly,06.09.2003, 13:26]das ganze script hängt nur mit use strict - und zwar da wo der hash deklariert wird ()Code (perl): (dl )our $coolhash{$file} = "$counts|$forsrc";
|< 1 2 >| | 13 Einträge, 2 Seiten |