in reply to capture optional text
my %hosts = map /(\S+)\s+#*(.*)/, <DATA>;
print Dumper \%hosts;
XYZ1ADEDQ2 ##DMS Host
I like the idea of the zero or more match, (.*), inside the capture to make it match even if the comment isn't there. Thanks.
I read it that the #'s are optional, so it's not really "malformed",
although no test case for this was provided :)
The ISS (or other satellites)
Results (314 votes). Check out past polls.