daily notes[4]
文章目录
- perl notes
- references
perl notes
- Perl has an especial condition statement called as
unless
.
unless ( condition ) {...
}
it just like if (!condition)
.
2. there are few cycle structures as similar as other programmed language such as while,for,foreach.
while ( condition ) {...
}
for ($n = 0; $i <= $max; $n++) {...
}
foreach my $num(@nums) {print "the numeber in $num\n";
}
of course,the until statement exists in Perl language.
until ( condition ) {...
}
references
- https://www.perl.org/learn.html/