Maps in Perl
Our first program demonstrates how to work with maps in the target language, Perl. Here’s the full source code.
To run the program, save the code in a file with a .pl
extension and execute it using the Perl interpreter.
Note that maps (or hashes in Perl) appear in the form {k => v, k => v}
when printed with Data::Dumper
.
Now that we can run and build basic Perl scripts, let’s learn more about the language.