#!/usr/bin/perl use strict; use warnings; my @dbf=qw( rates ); foreach my $dbf (@dbf){ use $dbf; }
Changing the above to require $dbf.pm works. But how do I make it work with use? thanks.
In reply to store module names in an array by Farhad
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |