Thread wtmp Log-Washer Script: Klitzekleine Hilfe plz? :)
(11 answers)
Opened by FlorianL at 2007-06-11 16:26
besser:
Code (perl): (dl
)
1 2 3 4 5 6 7 8 9 10 11 12 13 my @range; if( $cmonth > 2 ){ @range = ($cmonth-2 .. $cmonth); } else{ my $start = 10 + $cmonth; my $mid = $start == 11 ? 12 : 1; @range = ($start,$mid,$cmonth); } if( grep{ $_ == $monthnr }@range ){ print "..."; } OTRS-Erweiterungen (http://feature-addons.de/)
Frankfurt Perlmongers (http://frankfurt.pm/) -- Unterlagen OTRS-Workshop 2012: http://otrs.perl-services.de/workshop.html Perl-Entwicklung: http://perl-services.de/ |