Question: in linux and vim editor 1.Create a PERL program that contains a for loop that iterates 1 to 979 by 1. If the number is

in linux and vim editor

1.Create a PERL program that contains a for loop that iterates 1 to 979 by 1. If the number is divisible by 3 and not 5, write, Kit! If the number is divisible by 5 and not 3, write, Kat! If the number is divisible by both numbers, write, Kit Kat Bar! Otherwise, write, Give me a break.

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

3.Describe the difference between quoting strings using single quotation marks and using double quotation marks.

4.Write a regular expression to match a quoted string, such as He said, "Go get me the wrench," but I didnt hear him.

5.Write a regular expression to match an IP address in a log file.

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!