Pure Programmer
Blue Matrix


Cluster Map

Project: Blackboard (Revisited)

In the good old days before computers, teachers might punish a student by asking them to write on the blackboard 100 times the error of their ways. Bart is seen doing this in the opening of the Simpsons. If Bart only knew how to program, he would make short work of this task. Write a program that prints a brief message multiple times. The first command line argument should indicate the number of times to print the message. The second command line argument should specify the message to print.

Output
$ perl Blackboard2.pl 10 Chalk_is_not_food! Chalk_is_not_food! Chalk_is_not_food! Chalk_is_not_food! Chalk_is_not_food! Chalk_is_not_food! Chalk_is_not_food! Chalk_is_not_food! Chalk_is_not_food! Chalk_is_not_food! Chalk_is_not_food!

Solution