You are on page 1of 3

1.

Use of my keyword in PERL:

The ‘my’ keyword declares the variable to be local, within the block in which it is declared.

2.Write a Perl program to convert today’s average temperature (Sivakasi) from Celsius to

Fahrenheit.

OUTPUT:
3. Write a Perl program that calculates the batting average of Virat Kohli in the last

India vs South Africa

In cricket, a player's batting average is the total number of runs they have scored divided by
the number of times they have been out, usually given to two decimal places.

4. Write a Perl program that displays the current date and time shown on your computer in

24-hour format.

Here though I have tried to display 24 hours format, I am not able to get the desired output in online
compiler.
5. Code a Perl program to prints your birth date.

You might also like