Farhad has asked for the wisdom of the Perl Monks concerning the following question:
#!/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.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: store module names in an array
by kyle (Abbot) on Oct 27, 2009 at 03:34 UTC | |
|
Re: store module names in an array
by FloydATC (Deacon) on Oct 27, 2009 at 05:55 UTC | |
by Farhad (Initiate) on Oct 27, 2009 at 17:49 UTC | |
|
Re: store module names in an array
by bichonfrise74 (Vicar) on Oct 27, 2009 at 03:02 UTC |