M
M
mumia2011-11-09 14:44:59
Perl
mumia, 2011-11-09 14:44:59

Perl practice assignments (for scripting beginners)?

Hello!
Decided to learn Perl as a scripting tool. At the moment I am reading the book O'Reilly - Learning Perl (5th Edition), along the way I do the tasks that are at the end of each part, with their help I figured out a little about how and what works in Perl, but for better memorization and practice I would prefer more serious tasks than those in the book.
Could you recommend a resource with tasks (answers / input-output sets for self-testing are desirable)? Do you know of another good book that has a lot of different tasks going in the order of going through the materials in it? Maybe you are familiar with a Perl course from some educational institution with sets of homework?
Thank you very much.
PS is it possible in English

Answer the question

In order to leave comments, you need to log in

3 answer(s)
G
GavriKos, 2011-11-09
@GavriKos

The best task is the one that you personally need. Think about what kind of script you specifically need, and write it while learning the language along the way. And then there will be enthusiasm, and incentive.

E
Evgeny Simonenko, 2014-06-14
@easimonenko

Perl solutions can be submitted here:
informatics.mccme.ru
codeforces.ru

S
Saboteur, 2017-09-08
@saboteur_kiev

The essence of scripting tasks is that you yourself must know what result you want to get.
This allows you not to be distracted by secondary tasks, such as "is it necessary that there be commas in the answer, or in which column to write the sum and in which name", but to create a script that implements the result you need.
Because if you need something more ambitious, then in this case, it's better not to perl.
Perl is ideal for text parsing. Ideally, log files or some kind of reports.
What kind of things do you have on hand?
1) Set up a backup of your important data with convenient logs, in which you will see the time spent on the backup, the space it takes.
2) Do you like any toy that has a website?
Parse it on a perl, try to extract useful data from it, if you periodically parse it.
3) Write a script in perl that parses the toaster, reads the question, the name of the question, the number of answers in it and outputs it to the html file as a table
4) Set up the script to ping the remote server, parse the answer with pearl to save the necessary information to the file, eg timestamp, response (success/no), response time.
5) Set up a web server, set up perl as a cgi script that takes a log file, for example, from point 4, and displays a chart with some perl graphics library for plotting charts (you can google how to create an image from a data array in perl)

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question