Thread strict will nicht: :( (12 answers)
Opened by Cooly at 2003-09-06 15:26

steinwolf
 2003-09-06 15:51
#84366 #84366
User since
2003-08-04
367 Artikel
BenutzerIn
[default_avatar]
was ist damit?
edit: was soll das script überhaupt machen? Was steht in $cnts?
Code: (dl )
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;}

}
\n\n

<!--EDIT|steinwolf|1062849212-->
"Did you know? You can use your old motor oil to fertilize your lawn." - Blinkster - Professionelles EDV Forum

View full thread strict will nicht: :(