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

there seems to be some syntax error with the code you provided.I used the below code it worked,but now the problem is there is "."(dot) at the end of somelinks .I need to remove that.How do I do that?

($resolution_link) = $match =~ /(https?:\/\/(\S+))/;

Replies are listed 'Best First'.
Re^3: Getting only the link in a line
by Utilitarian (Vicar) on Nov 03, 2010 at 22:42 UTC
    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."
    A reply falls below the community's threshold of quality. You may see it by logging in.