readUTF8File
expandAts
);
use JSON;
use File::Basename;
my $FILE_SEP = $IS_WINDOWS ? '\\' : '/';
my $DATAFILE = '.pods2site';
my $JSON = JSON->new()->utf8()->pretty()->canonical();
AFILE");
open (my $fh, '> :raw :bytes', $df) or die("Failed to open '$df': $!\n");
print $fh $JSON->encode($allData);
close($fh);
}
sub readData
{
my $dir = shift;
my $section = shift
o read from '$df': $!\n") unless ($szRead && $szRead == $szExpected);
close($fh);
$data = $JSON->decode($buf);
$data = $data->{$section} if $section;
}
return $data;
}
sub createSp