My question is what am I doing wrong in regards to escaping the \n? I keep getting the following error:
#########################################
ERROR MESSAGE
#########################################
Backslash found where operator expected at ports.pl line 291, near "$ports =~ s/\"
(Might be a runaway multi-line // string starting on line 290)
(Missing operator before \?)
#########################################
CODE
#########################################
if ($ports =~ /\.+¦\,+¦;+¦\/+/¦\\n+/) {
$ports =~ s/\.+/ /g;
$ports =~s/\,+/ /g;
$ports =~s/;+/ /g;
$ports =~s/\?+/ /g;
$ports =~s/\/+/ /g;
$ports =~s/\\n+/ /g;
@portarray = split (/ /, $ports);