from perldoc -f use
syntax of the function use:
use Module VERSION LIST
use Module VERSION
use Module LIST
use Module
use VERSION
but in this case:
use Test::More tests => 5;
(it sets number of tests to 5)
What is data type of the expresion tests => 5?
Is it LIST or something else?
How can I use this parameter tests after declaration?
Yes, it’s the
LISTmentioned – the=>is just a fancy way of writing this:Which in turn calls
Test::More->import("tests", 5)after loading the module.