- or download this
while (<DATA>) {
print "\t" if (/^start/ .. /^end/);
...
Indented line
end
Back to left margin
- or download this
First line.
start
Indented line
end
Back to left margin
- or download this
while (<DATA>) {
print "\t" if (/start/ .. /end/);
...
First line.
Indent lines between the start and the end markers
Back to left margin
- or download this
First line.
Indent lines between the start and the end markers
Back to left margin
- or download this
while (<DATA>) {
print "\t" if (/start/ ... /end/);
...
So this is indented,
and this is the end of the indented block.
Back to left margin
- or download this
First line.
Indent lines between the start and the end markers
So this is indented,
and this is the end of the indented block.
Back to left margin
- or download this
while (<DATA>) {
print "\t" if (2 .. 4);
...
end
Back to left margin
- or download this
First line.
start
Indented line
end
Back to left margin
- or download this
print join ' ', (1..5);
- or download this
1 2 3 4 5
- or download this
my @array = qw(1 2 3 4 5 6 7 8 9);
print "@array[0..3]";
- or download this
1 2 3 4
- or download this
my @array = qw(1 2 3 4 5 6 7 8 9);
print "$array[0..3]";
- or download this
use strict;
use warnings;
my @array = qw(1 2 3 4 5 6 7 8 9);
print "$array[0..3]";
- or download this
Use of uninitialized value in range (or flip) at noname.pl line 4.