Changeset 9960 for docs/Perl6/FAQ
- Timestamp:
- 04/15/06 17:35:43 (3 years ago)
- Files:
-
- 1 modified
-
docs/Perl6/FAQ/Capture.pod (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
docs/Perl6/FAQ/Capture.pod
r9959 r9960 260 260 @y = 42; # works - @y.elems is now 1 261 261 262 Note that C<$x = 42> fails because the C<:=> in C<$x := [1, 2, 3]> changes the 263 underlying container of $x from a Scalar into an Array. Compare this with the 264 assignment case: 265 266 $x = [1,2,3]; 267 $x = 42; # works just fine 268 269 and also binding into an integer: 270 271 $x := 41; 272 $x = 42; # fails - Int doesn't handle scalar assignment either 273
