in reply to Re^2: Getting only the link in a line
in thread Getting only the link in a line

That's why I said there were better solutions available ;), this was a quick hack to solve a specific case.

One solution would be to remove punctuation at the end of the link in a second pass

print "Good ",qw(night morning afternoon evening)[(localtime)[2]/6]," fellow monks."

Replies are listed 'Best First'.
A reply falls below the community's threshold of quality. You may see it by logging in.