# $comment is input from the user via web form # Fixes multi-line comments to actually be multi-line $stripvariable = "\n"; $joinvariable = "<BR>"; @commentlines = split(/$stripvariable/, $comment); $comment = join($joinvariable,@commentlines); # This is supposed to eliminate blank lines but it doesn't work # $stripvariable = "<BR>\n<BR>"; # $joinvariable = "<BR>"; # @commentlines = split(/$stripvariable/, $comment); # $comment = join($joinvariable,@commentlines); # I have no idea why this eliminates those funky rectangle # characters from the file but it does. $stripvariable = "<BR>"; $joinvariable = "\n<BR>"; @commentlines = split(/$stripvariable/, $comment); $comment = join($joinvariable,@commentlines);