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;
use utf8;
use Carp;
my $FicLog="C:/LOG/20100910__log.txt" ;
$Research_Libelle_Tache = "Démarrage de la tâche /SAB/(AX_SAUVEGARDE_Delais_4ans)";
my @TableauLigne;
open (FIC1, "<$FicLog") || die "Ouverture impossible du fichier $FicLog: $!";
binmode FIC1, ":encoding(utf8)";
while ($Ligne = <FIC1> )
{
if (grep { $Ligne =~ m/$_/g } ($Research_Libelle_Tache))
{
@TableauLigne=split(/\|/,$Ligne);
print "toto = $TableauLigne[19]\n";
}
}
close (FIC1); |