in reply to Re^3: How to add hyperlink for every table data using perl?
in thread How to add hyperlink for every table data using perl?

what is the purpose of (.) you added in front of every line ?
  • Comment on Re^4: How to add hyperlink for every table data using perl?

Replies are listed 'Best First'.
Re^5: How to add hyperlink for every table data using perl?
by haukex (Archbishop) on Mar 09, 2017 at 07:19 UTC
    what is the purpose of (.) you added in front of every line ?

    That's the string concatenation operator, see perlop. '<td><a href="' . $href_to_what{$word} . '">' . $word . '</a></td>' concatenates those five strings together into a single string. In this case it's the same as writing "<td><a href=\"$href_to_what{$word}\">$word</a></td>".

Re^5: How to add hyperlink for every table data using perl?
by huck (Prior) on Mar 09, 2017 at 07:21 UTC

    text string concatenation