--- loncom/types/Stack.pm 2003/04/18 06:10:47 1.2 +++ loncom/types/Stack.pm 2003/04/24 15:12:40 1.4 @@ -1,6 +1,6 @@ # Implement a simple stack in terms of a list. # -# $Id: Stack.pm,v 1.2 2003/04/18 06:10:47 albertel Exp $ +# $Id: Stack.pm,v 1.4 2003/04/24 15:12:40 albertel Exp $ # # Copyright Michigan State University Board of Trustees # @@ -88,6 +88,19 @@ sub pop { return pop(@$self); } +=pod + +=head 1 + + Returns the number of items on the stack. + +=cut + +sub Count { + my $self = shift; + my $elements = scalar(@$self); + return $elements; +} 1; 500 Internal Server Error

Internal Server Error

The server encountered an internal error or misconfiguration and was unable to complete your request.

Please contact the server administrator at root@localhost to inform them of the time this error occurred, and the actions you performed just before this error.

More information about this error may be available in the server error log.