@INC, mais aussi %INC

@INC est l'equivalent de $PATH pour l'interpreteur perl. Mais lorsque je fais un use Module, comment savoir quel fichier est sourcé?

> perl -MScalar::Util -le 'print $INC{"Scalar/Util.pm"}'
/usr/lib/perl/5.8/Scalar/Util.pm

merci encore a Vincent!

Poster un nouveau commentaire

Le contenu de ce champ ne sera pas montré publiquement.
  • You can use BBCode tags in the text.
  • Les lignes et les paragraphes vont à la ligne automatiquement.
  • You can enable syntax highlighting of source code with the following tags: <code>, <blockcode>. Beside the tag style "<foo>" it is also possible to use "[foo]".

Plus d'informations sur les options de formatage