L
Louis
I would like to declare a constant in a module (.pm), so other perl
scripts can use the module and the constant it contains.
I tried
use constant BASEDIR => 'path_name';
in the module.
But when I use this module, perl complains that BASEDIR is a bareword.
How do you make this work?
Really appreciate your comment.
scripts can use the module and the constant it contains.
I tried
use constant BASEDIR => 'path_name';
in the module.
But when I use this module, perl complains that BASEDIR is a bareword.
How do you make this work?
Really appreciate your comment.