Beefy Boxes and Bandwidth Generously Provided by pair Networks
laziness, impatience, and hubris
 
PerlMonks  

Control Statement Exercises

by pedagogues
on Nov 24, 1999 at 00:40 UTC ( #1013=perlexercise: print w/replies, xml ) Need Help??

Control Statement Exercises

  1. Write a program which reads lines until it reads a line consisting of the word "quit" on a line by itself. Then print out all the duplicate lines seen. If none were seen, print "No duplicates seen." (solution)
  2. Write a program which prints all the numbers from 1 to 100, each followed by a ":" and a list of the numbers by which it is evenly divisible. (solution)
Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others contemplating the Monastery: (4)
As of 2022-01-19 15:08 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    In 2022, my preferred method to securely store passwords is:












    Results (55 votes). Check out past polls.

    Notices?