X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=pod%2Fperlcheat.pod;h=7f2c83066f66d8bb38c3c662c5de099ec88e3fc7;hb=6fa4d285bff5644bebb95aff09143322042282cc;hp=8173aa788c1e14434c0625bb8ffd43c71c3c502f;hpb=b3631f69ca17c134df671ddcddb78a6862b927cd;p=p5sagit%2Fp5-mst-13.2.git diff --git a/pod/perlcheat.pod b/pod/perlcheat.pod index 8173aa7..7f2c830 100644 --- a/pod/perlcheat.pod +++ b/pod/perlcheat.pod @@ -35,11 +35,11 @@ already be overwhelming. << >> while ( ) { }, until ( ) { } named uops if ( ) { } elsif ( ) { } else { } < > <= >= lt gt le ge unless ( ) { } elsif ( ) { } else { } - == != <=> eq ne cmp for equals foreach (ALWAYS) + == != <=> eq ne cmp ~~ for equals foreach (ALWAYS) & | ^ REGEX METACHARS REGEX MODIFIERS && ^ string begin /i case insens. - || $ str. end (before \n) /m line based ^$ + || // $ str. end (before \n) /m line based ^$ .. ... + one or more /s . includes \n ?: * zero or more /x ign. wh.space = += -= *= etc. ? zero or one /g global @@ -47,9 +47,9 @@ already be overwhelming. list ops () capture not (?:) no capture REGEX CHARCLASSES and [] character class . == [^\n] - or xor | alternation \s == [\x20\f\t\r\n] - \b word boundary \w == [A-Za-z0-9_] - \z string end \d == [0-9] + or xor | alternation \s == whitespace + \b word boundary \w == word characters + \z string end \d == digits DO \S, \W and \D negate use strict; DON'T use warnings; "$foo" LINKS @@ -84,7 +84,7 @@ Perl 6 version to show that Perl will stay Perl. =head1 AUTHOR -Juerd Waalboer , with the help of many Perl Monks. +Juerd Waalboer <#####@juerd.nl>, with the help of many Perl Monks. =head1 SEE ALSO