I was sorting through a Perl script written by someone else and I am not too familiar with Perl, so can someone tell me what the first three lines do?
my $ref = do($filename); $ref != 0 or die "unable to read/parse $filename\n"; @ varLines=@ {$ref}; foreach $ord (@varLines) {
This is at the beginning of the program after installing $filename with receiving command line arguments
The file format passed to this script is
[ { "Key1" => "val1", "key2" => " "A", }, { "Key3" => "val2", "key4" => " "B", }, ]
source share