On Fri, Apr 06, 2001 at 10:01:47AM +0100, Graham Barr wrote:

> unless (defined wantarray) {
>   # Self Test
> }
> 
> This works because whenever a file is use'd, require'd etc. it is
> evaluated in a scalar context. The main file is in a void context.

Although Gisle's recent patch changes this for "do" at least.

-- 
Paul Johnson - [EMAIL PROTECTED]
http://www.pjcj.net

Reply via email to