in reply to Re: Create an array reference from a string
in thread Create an array reference from a string
It looks like that will work, but it does mean I have to create a hash.my @bar = qw(One Two Three); my $foo = "bar"; my %quux = ("bar", \@bar); print "***" . $foo . "***"; foreach my $baz (@{$quux{$foo}}) { print $baz . "\n\n"; }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: Re: Create an array reference from a string
by dragonchild (Archbishop) on Apr 12, 2004 at 19:44 UTC |