>  MemUsed ($msg)
>      Used in void context reports the number of bytes used since the
>      previous call to MemUsed with the message passed
> 
>      Used in scalar context returns the current sbrk value
> 
>      Used in list context returns the values saved on every call

Ugh, no, seems very inconsistent to me.  And I don't like the implicit 
print in void context, that's too much kitchensinkish.  Having the user 
write the print or warn explicitely isn't too much asked.

How about

  MemUsed $msg
      Used in scalar (or void) context returns the current sbrk value. 
Also stores that value (along with the message) on a stack.
 
      Used in list context returns the sbrk and message values saved on 
every previous scalar call as a list of list refs.

  MemCheckpoint $msg
      Used in scalar (or void) context returns the number of bytes 
since the previous invocation. Also stores that value (along with the 
message) on a stack.

      Used in list context returns the incremental values and messages 
saved on every call as a list of list refs.

Roland
--
[EMAIL PROTECTED]

Reply via email to