Skip to content

Instantly share code, notes, and snippets.

@JJ
Created December 15, 2014 12:52
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save JJ/336f42272b4172626231 to your computer and use it in GitHub Desktop.
Save JJ/336f42272b4172626231 to your computer and use it in GitHub Desktop.
Write standard input or files as paragraphs in an HTML correct page
#!/usr/bin/env perl
use CGI qw(:standard);
use strict;
use warnings;
use v5.14; # Para say
my @parrafos = <>;
say start_html("Salida de párrafos");
for my $p (@parrafos) {
say p( $p );
}
say end_html;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment