sub MakePtag{ my $fixme = shift; # take in our parameters return join "\r\n", # join with newlines map { "
$_
" } # wrap each line in tags grep { /\S/ } # must have at least one non-whitespace character split "\r\n", $fixme; # break apart on the newlines } ####
sub MakePtag { join "\r\n", map {"$_
"} grep {/\S/} split "\r\n", $_[0] } # :)
####
sub MakePtag{
chomp(my $fixme = shift;) # take in our parameters
$fixme=~s|(\r\n)||g; # replace all \r\n with <\p>
$fixme = "
$fixme
"; # Add beginning and ending tags
return $fixme;
}