Changeset 12637 for docs/Perl6/Perl5
- Timestamp:
- 08/24/06 02:37:04 (2 years ago)
- Files:
-
- 1 modified
-
docs/Perl6/Perl5/Differences.pod (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
docs/Perl6/Perl5/Differences.pod
r12634 r12637 147 147 Now: loop ($i=0; $i<10; $i++) { ... } 148 148 149 =head2 Global Variables have a twigil .149 =head2 Global Variables have a twigil 150 150 151 151 Yes, a twigil. It's the second character in the variable name. For globals, … … 156 156 157 157 For details, see L<S02/"Names and Variables">. 158 159 =head2 eval {} is now try {} 160 161 Using C<eval> on a block is now replaced with C<try>. 162 163 Was: eval { 164 # ... 165 }; 166 if ($@) { 167 warn "oops: $@"; 168 } 169 Now: try { 170 # ... 171 CATCH { warn "oops: $!" } 172 } 173 174 CATCH provides more flexiblity in handling errors. 175 See L<S04/"Exception_handlers"> for details. 158 176 159 177 =head1 SEE ALSO
