I'm not entirely sure why you're only printing split lines.use strict; my $count = 0; open (INPUT, $ARGV[0]) || die "Could not read $ARGV[0]\n"; foreach my $line (<INPUT>) { chomp ($line); $line =~ s/(.{60})/$1\n/g; $count += />/g; print ">$count\n$line\n\n"; } close (INPUT);
In reply to Re: why won't it wrap??
by tadman
in thread why won't it wrap??
by lolly
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |