Bonjour
J'ai un gros problème de script en effet, il génère énormément d'erreur dans le fichier log.
Voici la partie du script
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
else {
      if ( $sort_pref eq "catalogue" ) {
        $outil = $connDB->selectrow_array("SELECT b.methode FROM catalogues a, domaines b WHERE a.id_dom=b.id_dom AND catalogue='$PrevRupt';");
        if ($outil==0){
          $Title="Catalogue/Master $PrevRupt";
        }
        if ($outil==1){
          $Title="Catalogue $PrevRupt";
        }
        if ($outil==2){
          $Title="Master $PrevRupt";
        }
        if ($outil==3){
          $Title="Site $PrevRupt";
        }
        if ($outil==4){
          $Title="Utility Node $PrevRupt";
        }
      }
      else {
        $Title= "$sort_pref $PrevRupt";
	$affniv = 1;
      }
    }
Le probleme survient quand la variable $sort_pref est different de catalogue, aucun problème dans le cas contraire.
Use of uninitialized value in array element at /data/infsvg/apache/perl/app/supervision.pl line 483.
Use of uninitialized value in array element at /data/infsvg/apache/perl/app/supervision.pl line 485.
Use of uninitialized value in array element at /data/infsvg/apache/perl/app/supervision.pl line 486.
Use of uninitialized value in array element at /data/infsvg/apache/perl/app/supervision.pl line 487.
Use of uninitialized value in array element at /data/infsvg/apache/perl/app/supervision.pl line 488.
Pour information, la ligne 483 correspond à
La question est : Pourquoi, je reçoit ces messages d'erreur alors qu'il ne devrait pas passer dans la boucle.
D'avance merci pour votre aide