|Lesson 5||Pattern-matching modifiers|
|Objective|| Write a program that uses the |
m//operator and appropriate modifiers to print out all of the tags in a HTML file.
m//operator allows the use of several modifiers.
|g||match globally; that is, find all occurrences|
||do case-insensitive pattern matching|
||treat the string as multiple lines|
||only compile the pattern once|
||treat the string as a single line|
||use pretty-printing extensions|
m//operator. Here is a simple Perl script that will take a file with a list of unorganized names and print out all the names that begin with the letter g.
m//operator to print a set of elements within a given file.