http://www.perlmonks.org?node_id=273434

Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:

Hello Monks, I am trying to copy an @array instead of the file.dbf to the variable $database in order to use it in subroutine test().
Is this possible?
How can this be done?
Thanks
my @names=("Tin Grig","Karen Dnny","Lo Firo","Ben Maig","Luen Meza"); my $database = "test.dbf"; my $database = "@names"; test($database);