Changeset 16750 for docs/Perl6/Spec
- Timestamp:
- 06/27/07 13:22:40 (17 months ago)
- Files:
-
- 1 modified
-
docs/Perl6/Spec/Documentation.pod (modified) (6 diffs)
Legend:
- Unmodified
- Added
- Removed
-
docs/Perl6/Spec/Documentation.pod
r16740 r16750 104 104 Value is... Specify with... Or with... Or with... 105 105 =============== ================== ============== ====================== 106 Boolean (true) C �:key� C�:key(1)� C�key => 1�107 Boolean (false) C �:!key� C�:key(0)� C�key => 0�108 String C �:key<str>� C�:key('str')� C�key => 'str'�109 List C �:key<1 2 3>� C�:key[1,2,3]� C�key => [1,2,3]�110 Hash C �:key{a=>1, b=>2}� C�key => {a=>1, b=>2}�111 Code C �:key{ sqrt($_) }�106 Boolean (true) C«:key» C«:key(1)» C«key => 1» 107 Boolean (false) C«:!key» C«:key(0)» C«key => 0» 108 String C«:key<str>» C«:key('str')» C«key => 'str'» 109 List C«:key<1 2 3>» C«:key[1,2,3]» C«key => [1,2,3]» 110 Hash C«:key{a=>1, b=>2}» C«key => {a=>1, b=>2}» 111 Code C«:key{ sqrt($_) }» 112 112 113 113 All option keys and values must, of course, be constants since Perldoc … … 1335 1335 immediately by a set of angle brackets. The brackets contain the text or 1336 1336 data to which the formatting code applies. You can use a set of single 1337 angles (C �<...>�), a set of double angles (C<�...�>), or multiple1338 single-angles (C �<<<...>>>�).1337 angles (C«<...>»), a set of double angles (C<«...»>), or multiple 1338 single-angles (C«<<<...>>>»). 1339 1339 1340 1340 Within angle delimiters, you cannot use sequences of the same angle … … 1345 1345 These are errors... 1346 1346 1347 C< $fooB �<<�barB�>>�>1348 The Perl 5 heredoc syntax was: C< B �<<�END_MARKER >1347 C< $fooB«<<»barB«>>» > 1348 The Perl 5 heredoc syntax was: C< B«<<»END_MARKER > 1349 1349 =end code 1350 1350 … … 1358 1358 1359 1359 =for code :allow<B> 1360 CB< �>$foo < $barB<�>1361 The Perl 5 heredoc syntax was: CB< �> <<END_MARKER B<�>1360 CB<«>$foo < $barB<»> 1361 The Perl 5 heredoc syntax was: CB<«> <<END_MARKER B<»> 1362 1362 1363 1363 or delimiters with more consecutive angles than your text contains: 1364 1364 1365 1365 =for code :allow<B> 1366 CB �<<�$foo < $barB�>>�1367 The Perl 5 heredoc syntax was: CB �<<<� <<END_MARKER B�>>>�1366 CB«<<»$foo < $barB«>>» 1367 The Perl 5 heredoc syntax was: CB«<<<» <<END_MARKER B«>>>» 1368 1368 1369 1369 A formatting code ends at the matching closing angle bracket(s), or at … … 1543 1543 1544 1544 =for code :allow<B> 1545 In Perl 5 POD, the B �V<�Z<>B�>�code was widely used to break up text1545 In Perl 5 POD, the B«V<»Z<>B«>» code was widely used to break up text 1546 1546 that would otherwise be considered mark-up. 1547 1547 … … 1550 1550 1551 1551 =for code :allow<B> 1552 In Perl 5 POD, the B �C<�Z<>B�>�code was widely used to break up text1552 In Perl 5 POD, the B«C<»Z<>B«>» code was widely used to break up text 1553 1553 that would otherwise be considered mark-up. 1554 1554
