[ use while/until and if/unless to draw attention to positive/negative conditions ]
lecture code viewer
downloads
![](img/code.png)
Code
Subroutines and Special Variables
Subroutines and Special Variables
Martin Krzywinski
$\ = "\n";
@nums = (1..3);
for (@nums) {
$_++;
}
print @nums;
for (@nums) {
$_ = $_ ** 2 .".". $_ ** 2;
}
print @nums;
for (@nums) {
$_ = int;
}
print @nums;
|
6 |
Subroutines and Special Variables |
1.0.1.8.6
1.0.1.8.6.c1 |
loop-01
|
Martin Krzywinski
|
code
1.0.1.8.6.c2 |
loop-02
|
Martin Krzywinski
|
code
1.0.1.8.6.c3 |
loop-03
|
Martin Krzywinski
|
code
1.0.1.8.6.c4 |
loop-04
|
Martin Krzywinski
|
code
1.0.1.8.6.c5 |
sub-01
|
Martin Krzywinski
|
code
1.0.1.8.6.c6 |
sub-02
|
Martin Krzywinski
|
code
1.0.1.8.6.a1 |
Subroutines and Special Variables
|
Martin Krzywinski
|
pdf
1.0.1.8.6.p1 |
Subroutines and Special Variables
|
Martin Krzywinski
|
ppt
1.0.1.8.6.s1 |
Subroutines and Special Variables
|
Martin Krzywinski
|
slides
|