in reply to Create an array reference from a string
Without arguing the merits of symbolic reference (merits they say... what merits?), this will do it.
#!/usr/bin/perl our @bar = qw(One Two Three); my $foo = "bar"; print "***" . $foo . "***\n"; foreach (@$foo) { print $_ . "\n"; }
|
|---|