Module checkpoint

Perl fundamentals knowledge check

Answer every question from your current understanding. After submission, compare your reasoning with the explanation and revisit any weak concept.

5 QuestionsOne Answer eachImmediate ScoreDetailed Explanations
Read→Reason→Select→Review
Question 1 of 5Why is one value of the hash `%count` written `$count{PASS}`?
Question 2 of 5What does `use strict` catch in a Perl script?
Question 3 of 5Why is `open my $fh, '<', $log || die "no log"` wrong?
Question 4 of 5What does `perl -pi.bak -e 's/\bclk_i\b/clk/g' rtl/*.v` do?
Question 5 of 5Why are `$1` and `$2` read only inside `if ($line =~ /.../)`?

Review every selection before submitting. You can retry after reading the explanations.