in reply to Print N characters per line in Cgi Script with Html Tags
If I understand you correctly, all you need is something like this:
#!/usr/bin/env perl use strict; use warnings; my $in = "ATATATTATATATATTATATTCGCGCGCGCGGCGCGCGCGGCGCGCGCGTTTTTTTTTTT +TTTAGGAGAGAGAGGGAGGAGGAGAGGGGAGT"; my $out = '<pre>' . join ("\n", $in =~ /[ATCG]{1,50}/g) . "</pre>\n"; print $out;
Use HTML pre tags for preformatted output.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Print N characters per line in Cgi Script with Html Tags
by Diesel (Novice) on Jun 13, 2017 at 15:24 UTC | |
by hippo (Archbishop) on Jun 13, 2017 at 16:11 UTC |