<p>If I import a library to use a method, would it be worth it? Does importing take up a lot of memory?</p>

Importing such a module is not likely to cost that much memory that you should refrain from it, though in this case probably a simple hash would be just as good. Something like
```
```
my %number_for = (
    jan => 1,
    feb => 2,
#etc...
);
#...
do_something_with($number_for{$month})
```
```