Perl Maven
  • Perl Tutorial
  • Pro
  • Login
  • Register
  • Books
  • Type keyword:
  • Archive
  • About
  • Atom feed
Beginner Perl Maven video tutorial
Beginner Perl Maven video course - video
  1. Introduction
    1. Welcome and Installation - video
    2. Editors and IDEs for Perl developers - video
    3. Your first script: Hello world - video
    4. Safety net (use strict; use warnings;) - video
    5. Debugging Perl scripts - video
    6. Comments - video
    7. Documentation of Perl - video
    8. POD - Plain Old Documentation - video
    9. Perl on the command line (screencast) - video
    10. Exercise: Hello World - video
    11. Solution: Hello World part 1 - video
    12. Solution: Hello World part 2 (what is the difference between comment and POD?) - video
  2. Scalars
    1. Scalar values and variables - video
    2. Common Errors and Warnings - video
    3. Variable interpolation - User Input and Output - chomp - video
    4. Numerical Operators - video
    5. String operators - video
    6. The 'if' statement - video
    7. Comparison Operators - video
    8. String to number conversion - video
    9. Compare Values - video
    10. undef - video
    11. Logical Operators in Perl - video
    12. True False - video
    13. Short Circuit - video
    14. String functions: index - video
    15. Substr - video
    16. strings in double quotes - video
    17. strings in single quotes - video
    18. Scope of Variables - video
    19. rand() and int() - video
    20. Here documents - video
    21. Exercise: rectangular - video
    22. Solution: area of rectangular - video
    23. Solution: area prompt and warn - video
    24. Solution: concatenation - video
    25. Exercise: number guessing game - video
    26. Solution: number guessing game - video
  3. Files
    1. die, warn, exit - video
    2. Open file - video
    3. Open file all - video
    4. Open file with error handling - video
    5. Open or die - video
    6. No such file - video
    7. read one line - video
    8. while loop - video
    9. Read file line by line - video
    10. Write to file - video
    11. Sum numbers in a file - video
    12. Debug sum numbers - video
    13. Analyze Apache log file - video
    14. Old style open - video
    15. Exercise: add more statistics - video
    16. Solution: add more statistics - video
    17. Exercise: write report to file - video
    18. Solution: write report to file - video
  4. Lists and Arrays
    1. Lists in Perl - video
    2. List assignment - video
    3. foreach loop over list - video
    4. Creating an array - video
    5. Array assignment - video
    6. Exercise: more statistics - video
    7. Array indexes - video
    8. Array indexes (screencast) - video
    9. Looks like number - video
    10. Command line parameters - video
    11. Command line parameters (screencast) - video
    12. Process command line using Getopt::Long - video
    13. Process command line using Getopt::Long (screencast) - video
    14. Process CSV file - video
    15. Process CSV file short version - video
    16. One-liner sum of column in CSV - video
    17. Process CSV file using Text::CSV_XS - video
    18. Join - video
    19. Exercise: improve the color selector - video
    20. Solution: improve the color selector - video
    21. Solution: improve the color selector - check input - video
    22. Solution: improve the color selector - force - video
    23. Solution: improve the color selector - colors.txt - video
    24. Solution: improve the color selector - filename - video
    25. Exercise: improve number guessing game - video
    26. Solution: number guessing game - multiple guesses - video
    27. Solution: number guessing game - exit - video
    28. Solution: number guessing game - s show - video
    29. Solution: number guessing game - n next game - video
    30. Solution: number guessing game - d debug toggle - video
    31. Solution: number guessing game - m move toggle - video
  5. Advanced Arrays
    1. The year of 19100 - video
    2. array in context - video
    3. Conext sensitivity - video
    4. Filehandle in SCALAR and LIST context - video
    5. slurp - video
    6. pop and push - video
    7. Loop controls: next last - video
    8. shift and unshift - video
    9. shift - video
    10. reverse - video
    11. sort - video
    12. The Ternary operator - video
    13. Count digits - video
    14. Exercise: display unique rows of a file - video
    15. Exercise: sort mixed string - video
    16. Solution: display unique rows of a file - video
  6. Functions and Subroutines
    1. Functions and Subroutines - video
    2. Defining subroutines - video
    3. Exercise: number guessing in sub - video
  7. Hashes
    1. A hash and its uses - video
    2. Creating a hash - video
    3. Creating a hash from an array - video
    4. hash in SCALAR context - video
    5. Fetching data from a hash - video
    6. exists, delete in hash - video
    7. Counting words in a file - video
    8. Dumping a hash - video
    9. Exercise: parse HTTP values - video
    10. Solution: parse HTTP values - video
    11. Exercise: improve color selector - video
    12. Solution: improve color selector - video
    13. Exercise: sort scores - video
    14. Solution: sort scores - video
    15. Exercise: improve Apache log analyzer - video
    16. Solution: improve Apache log-analyzer - video
    17. Exercise: parse variable width fields - video
    18. Solution: parse variable width fields - video
  8. Regular Expressions - part 1
    1. Regexes - video
    2. Were can I use Regexes - video
    3. Simple use of Regexes - video
    4. Finding a string in a file - video
    5. Single character match - video
    6. Match any character - video
    7. Character classes - video
    8. Negated character class - video
    9. Optional Characters - video
    10. Any number of any characters - video
    11. Quantifiers - video
    12. Quantifiers on Character classes - video
    13. Exercise: Regexes 1 - video
    14. Solution: regexes 1 - video
    15. Solution: regexes 2 - video
    16. Solution: regexes 3 - video
  9. Regular Expressions - part 2
    1. Regex Alternatives - video
    2. Regex Capturing - video
    3. Regex Anchors - video
    4. More about Character classes - video
    5. Special character classes - video
    6. Exercise: Match numbers with regex - video
    7. Solution: Match numbers with regex - video
    8. Exercise: hexa, octal, binary - video
    9. Solution: hexa, octal, binary - video
    10. Exercise: Roman numbers - video
  10. Regular Expressions - part 3
    1. m-for-matching - video
    2. Case insensitive regexes - video
    3. multiple lines in regexes - video
    4. Single-line regexes using /s - video
    5. /x modifier for verbose regexes - video
    6. substitution - video
    7. Global substitution with regexes - video
    8. Greedy regex quantifiers - video
    9. Minimal Regex Matching - video
    10. trim - video
    11. Fixing Assembly with Perl - video
    12. split with regex - video
    13. Fixing dates using Regexes - video
    14. Exercise: split HTTP GET request - video
    15. Solution: split HTTP using Regex - video
    16. Exercise: split path - filename/dirname - video
    17. Solution: split path - filename/dirname - video
    18. Exercise: sort SNMP numbers - video
    19. Solution: sort SNMP numbers - video
    20. Exercise: parse hours log file and create time report - video
    21. Exercise: parse INI file - video
    22. Exercise: parse perl file - video
  11. Shell to Perl
    1. shell-x - video
    2. external-programs - video
    3. Unix and DOS commands - video
    4. File globbing - video
    5. rename files - video
    6. directory handle - video
    7. File::HomeDir - video
    8. More UNIX commands - video
    9. File::Spec - video
    10. File::Find - video
  12. CPAN
    1. Using procedural Perl modules - video
    2. Using object oriented modules - video
    3. Changing @INC - video
    4. Changing @INC relative path - video
    5. What is CPAN? - video
    6. Some interesting CPAN modules - video
    7. Installing modules from the OS vendor - video
    8. Installing Perl modules using cpan - video
    9. search.cpan.org - video
    10. CPAN Testers and CPAN Ratings - video
  13. Applications
    1. Create Linux user account - video
    2. Diskspace usage: df in Perl - video
    3. Reporting diskspace usage on a mail server - video
    4. disk usage: du in Perl - video
    5. Sending email with attachments - video
    6. Reading Excel file using Perl - video
    7. Read fixed width records - using unpack - video
    8. Processing config file - video

Solution: sort SNMP numbers - video

  • regexes
  • m

Prev Next

Original exercise

Download: mp4 ogv webm

Prev Next


Gabor Szabo
Written by
Gabor Szabo

Published on 2015-08-02

Comments

In the comments, please wrap your code snippets within <pre> </pre> tags and use spaces for indentation.
comments powered by Disqus
If you have any comments or questions, feel free to post them on the source of this page in GitHub. Source on GitHub.

Author: Gabor Szabo

Gabor who runs the Perl Maven site helps companies set up test automation, CI/CD Continuous Integration and Continuous Deployment and other DevOps related systems.

Gabor can help refactor your old Perl code-base.

He runs the Perl Weekly newsletter.

Contact Gabor if you'd like to hire his service.

Buy his eBooks or if you just would like to support him, do it via Patreon.