[tex-live] kpsewhich

Thomas Esser te at dbs.uni-hannover.de
Sat Mar 27 15:49:40 CET 2004


How about writing perl in a more portable way? Both of the following
should work on all systems:

  @args = ( 'kpsewhich', '--expand-var', '$SELFAUTODIR/foo');
  system(@args) == 0
    or die "system @args failed: $?";

  system('kpsewhich', '--expand-var', '$SELFAUTODIR/foo') == 0
    or die "some useful message... $?";

Thomas


More information about the tex-live mailing list