Changeset 12923 for docs/Perl6/Perl5
- Timestamp:
- 09/01/06 10:16:20 (2 years ago)
- Files:
-
- 1 modified
-
docs/Perl6/Perl5/Differences.pod (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
docs/Perl6/Perl5/Differences.pod
r12922 r12923 174 174 Now: loop ($i=0; $i<10; $i++) { ... } 175 175 176 C<loop> can also be used for infinite loops: 177 178 Was: while (1) { ... } 179 Now: loop { ... } 180 176 181 =cut 177 182 … … 179 184 180 185 =head1 Regexes and Rules 186 187 Many many changes. Just read S05. But if you're in a panic and need 188 to get something working now, you just need to know that you can use 189 Perl 5-compatible regexes with the C<:P5> modifier. And that 190 modifiers come before, not after, regexes in Perl 6. Oh, and that 191 C<=~> has changed to C<~~>.... 192 193 Was: $str =~ /^\d{2,5}\s/ 194 Now: $str ~~ m:P5/^\d{2,5}\s/ 181 195 182 196 =cut … … 360 374 Kirrily "Skud" Robert, <skud@cpan.org>, 361 375 Mark Stosberg 376 Trey Harris
