- or download this
sub MakePtag{
my $fixme = shift; # take in our parameters
...
grep { /\S/ } # must have at least one non-whitespace
+ character
split "\r\n", $fixme; # break apart on the newlines
}
- or download this
sub MakePtag { join "\r\n", map {"<p>$_</p>"} grep {/\S/} split "\r\n"
+, $_[0] } # :)
- or download this
sub MakePtag{
chomp(my $fixme = shift;) # take in our parameters
...
$fixme = "<p>$fixme</p>"; # Add beginning and ending tags
return $fixme;
}