I have this function
array_diff(\@DNs, \@prev_DNs);
which must take array references as arguments.
The problem is that I get prev_DNs as an object from
my $prev_DNs = YAML::Syck::LoadFile('temp-previous_DNs.yaml');
print Dumper $prev_DNs;
which outputs
$VAR1 = [
'abcdef'
];
I have tried with
array_diff(\@DNs, \$prev_DNs);
but that didn't work.
Any suggests on how to pass $prev_DNs an an array reference?