in reply to BEGIN, strict, and variable assignment
Is there a way to avoid having to declare %tests and then assign to %tests on another line?In a word 'no', or at least, not using lexicals. You could just use a package var however
Or perhapsour %tests = ( ... ); ## or the more compatible, less line lean use vars '%tests'; %tests = ( ... );
use Test::More tests => do { ... };
_________
broquaint
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: BEGIN, strict, and variable assignment (?)
by tye (Sage) on Mar 03, 2004 at 17:49 UTC | |
by broquaint (Abbot) on Mar 03, 2004 at 18:01 UTC |