Build a grid with Perl, Part 1