in reply to Re: Creating a Stringified Variable
in thread Creating a Stringified Variable from a Data Structure

One suggestion. Use the dot (.) operator to append since the hash can have more that one key-value pair.
my $VAR1 ; while (my ($file,$val) = each %hash) { $VAR1 .= ">dataset\n". $file."\n". ">instances\n". join("\n",@{$val})."\n"; } print $VAR1;
Thanks