Another way to do it:
open my $FH, '<', './sub/100087.txt' or die "Cannot open './sub/100087 +.txt' because: $!"; my $count = 1; while ( <$FH> ) { next unless /^[a-z]/; chomp; print; print $count++ % 7 && !eof( $FH ) ? ", " : "\n"; }
In reply to Re: print join n times on a line
by jwkrahn
in thread print join n times on a line
by austin43
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |