stddev() is not a built-in function, it is a function provided by the module. From looking at the docs that module does not export any functions by default so you will need to import them before using them:
# you can remove this line
use Statistics::Basic::StdDev;
# add this line
use Statistics::Basic qw(:all);