Robin Houston wrote:
> local *mydir;
> @mydir = qw(file1.txt file2.txt);
> %mydir = (anotherdir => [qw(file3.txt file4.txt)]);
>
> my $dirstruct = {mydir => *mydir};
[...]
> my $mydir = *{gensym};
> @$mydir = qw(file1.txt file2.txt);
> %$mydir = (anotherdir => [qw(file3.txt file4.tx
In the "Directory to Data Structure" thread, there's been some
talk of a value which is a list *and* a hash, so you can have
a structure like
$dirstruct{'mydir'}->['file1.txt', 'file2.txt']
$dirstruct{'mydir'}->{'anotherdir'}->['file3.txt', 'file4.txt']
and there was talk of tie().
But really