Perl:Checking for a Prefix

From Progzoo
Jump to navigation Jump to search

We use a regular expression match with the ^ metacharacter, which matches the start of the string.

The code selects those countries that begin with "D".

[Font] [Default] [Show] [Resize] [History] [Profile]