Modern Perl by chromatic

Modern Perl by chromatic

Author:chromatic
Language: eng
Format: mobi, epub, pdf
Tags: Reference
ISBN: 9780977920150
Publisher: Onyx Neon Press
Published: 2010-10-31T00:00:00+00:00


The negated form of the binding operator (!~) evaluates to a false value if the match succeeds.

The qr// Operator and Regex Combinations

Regexes are first-class entities in modern Perl when created with the qr// operator:

my $hat = qr/hat/;

say 'Found a hat!' if $name =~ /$hat/;

The like() function from Test::More works much like is(), except that its second argument is a regular expression object produced by qr//.

You may interpolate and combine them into larger and more complex patterns:



Download



Copyright Disclaimer:
This site does not store any files on its server. We only index and link to content provided by other sites. Please contact the content providers to delete copyright contents if any and email us, we'll remove relevant links or contents immediately.