programming-examples/perl/Statement/If start with - no repeat.pl

5 lines
70 B
Perl
Raw Normal View History

2019-11-15 12:59:38 +01:00
NUMBER: while (<>) {
next NUMBER if /^-/;
print;
}