X-Git-Url: https://perl5.git.perl.org/perl5.git/blobdiff_plain/8fd8d6f4c19523f1ce788a39bce2791a00534fad..eb863851dc760d12b53aa443481ac97240430aa7:/pod/perlcheat.pod diff --git a/pod/perlcheat.pod b/pod/perlcheat.pod index a13491c..7f2c830 100644 --- a/pod/perlcheat.pod +++ b/pod/perlcheat.pod @@ -5,7 +5,7 @@ perlcheat - Perl 5 Cheat Sheet =head1 DESCRIPTION This 'cheat sheet' is a handy reference, meant for beginning Perl -programmers. Not everything is mentioned, but 194 features may +programmers. Not everything is mentioned, but 195 features may already be overwhelming. =head2 The sheet @@ -35,28 +35,28 @@ 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 - , => {3,7} repeat in range - list ops () capture REGEX CHARCLASSES - not (?:) no capture . == [^\n] - and [] character class \s == [\x20\f\t\r\n] - or xor | alternation \w == [A-Za-z0-9_] - \b word boundary \d == [0-9] - \z string end \S, \W and \D negate - DO - use strict; DON'T LINKS - use warnings; "$foo" perl.com - my $var; $$variable_name perlmonks.org + , => {3,7} repeat in range /o cmpl pat. once + list ops () capture + not (?:) no capture REGEX CHARCLASSES + and [] character class . == [^\n] + 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 + my $var; $$variable_name perl.com open() or die $!; `$userinput` use.perl.org use Modules; /$userinput/ perl.apache.org - parrotcode.org + FUNCTION RETURN LISTS stat localtime caller SPECIAL VARIABLES 0 dev 0 second 0 package $_ default variable @@ -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