Some Perl Special Variables Some Global Special Arrays and Hashes 20 of 28 : [PREV] [NEXT]

%INC

  • The hash containing entries for the filename of each file that has been included via do or require.
  require 'plugins.pl';
  print "loaded plugins\n" if $INC{'plugins.pl'};

Alternatively, a way to pretend warnings have been load for pre 5.6 perls

  BEGIN { $INC{'warnings.pm'}++ if $] < 5.006; }

© 2004 Barbie barbie@missbarbell.co.uk Home http://birmingham.pm.org/