--- loncom/enrollment/localenroll.pm 2006/02/07 16:36:10 1.13 +++ loncom/enrollment/localenroll.pm 2006/02/10 02:38:46 1.14 @@ -1,6 +1,6 @@ # functions to glue school database system into Lon-CAPA for # automated enrollment -# $Id: localenroll.pm,v 1.13 2006/02/07 16:36:10 albertel Exp $ +# $Id: localenroll.pm,v 1.14 2006/02/10 02:38:46 raeburn Exp $ # # Copyright Michigan State University Board of Trustees # @@ -416,4 +416,23 @@ sub manager_photo_update { return ($update,$comment); } +############################### +# sub AUTOLOAD +# +# Incoming data: none +# Returns '' +# +# Prevents errors when undefined subroutines are called in this package +# Will allow new routines added in the future to be called from lond etc. +# without the need for customized versions of local*.pm packages to be +# modified to include the new subroutines immediately. +# +# See "Programming Perl" 3rd ed. pp 296-298. +############################### + +sub AUTOLOAD { + our $AUTOLOAD; + return ''; +} + 1;