Graham Barr <[EMAIL PROTECTED]> writes: > I have not looked at SelfTest, but I have always done this with > > 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. Nice. I use if ( ! caller ) { # selftest } -- Johan
- Re: Larry's Apocalypse 1 Jarkko Hietaniemi
- Re: Larry's Apocalypse 1 Piers Cawley
- Re: Larry's Apocalypse 1 David Grove
- Re: Larry's Apocalypse 1 Larry Wall
- Re: Larry's Apocalypse 1 Dan Sugalski
- Re: Larry's Apocalypse 1 Edward Peschko
- Re: Larry's Apocalypse 1 Randal L. Schwartz
- Re: Larry's Apocalypse 1 Simon Cozens
- Re: Larry's Apocalypse 1 Piers Cawley
- Re: Larry's Apocalypse 1 Graham Barr
- Re: Larry's Apocalypse 1 Johan Vromans
- Re: Larry's Apocalypse 1 Paul Johnson
- Re: Larry's Apocalypse 1 Andy Dougherty
- Re: Larry's Apocalypse 1 Nathan Torkington
- Re: Larry's Apocalypse 1 Graham Barr
- Re: Larry's Apocalypse 1 Simon Cozens
- Re: Larry's Apocalypse 1 Larry Wall
- Re: Larry's Apocalypse 1 John Siracusa
- Re: Larry's Apocalypse 1 Kirrily Robert
- Re: Larry's Apocalypse 1 John Porter
- Re: Larry's Apocalypse 1 Jonathan Scott Duff