Exercises

  1. What are the strengths of Perl?

  2. What is the difference between an array and a hash?

  3. What does the following Perl script do?

    #!/usr/bin/perl
    use strict;
    
    my $Answer;
    while(@ARGV)
    {
     $Answer+=shift(@ARGV);
    }
    print "Answer: $Answer\n"

Get Learning MySQL now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.