- publishing free software manuals
Perl Language Reference Manual
by Larry Wall and others
Paperback (6"x9"), 724 pages
ISBN 9781906966027
RRP £29.95 ($39.95)

Sales of this book support The Perl Foundation! Get a printed copy>>>

Examples

"cat"   =~ /\Acat/;     # Match.
"cat"   =~ /cat\Z/;     # Match.
"cat\n" =~ /cat\Z/;     # Match.
"cat\n" =~ /cat\z/;     # No match.
"cat"   =~ /\bcat\b/;   # Matches.
"cats"  =~ /\bcat\b/;   # No match.
"cat"   =~ /\bcat\B/;   # No match.
"cats"  =~ /\bcat\B/;   # Match.
while ("cat dog" =~ /(\w+)/g) {
    print $1;           # Prints 'catdog'
}
while ("cat dog" =~ /\G(\w+)/g) {
    print $1;           # Prints 'cat'
}
ISBN 9781906966027Perl Language Reference ManualSee the print edition