in reply to Re^3: Tests were run but no plan was declared and done_testing() was not seen. (Syntax::Construct)
in thread Tests were run but no plan was declared and done_testing() was not seen.
The three constructs shown in the Synopsis are the ones needed in the example code there. It's the programmer's responsibility to track them and list them. So yes, the human factor is the weakest part of the system.
Under 5.14, keys $ref already work without any switch. Specifying use Syntax::Construct qw{ auto-deref }; wouldn't change anything for you running on 5.14 (or higher), but it would give meaningful error messages to you or anyone else trying to run it on 5.12 and below. For keys $ref, the default message isn't so bad:
Type of arg 1 to keys must be hash (not scalar dereference)
but for example for $x //= 1, I'm getting
Search pattern not terminated
in 5.8.3.
It's in fact a triple-win situation:
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^5: Tests were run but no plan was declared and done_testing() was not seen. (Syntax::Construct)
by toolic (Bishop) on Jul 13, 2015 at 17:35 UTC | |
by choroba (Cardinal) on Jul 13, 2015 at 19:31 UTC | |
by Anonymous Monk on Jul 14, 2015 at 00:44 UTC |