Warning in perl useless use of private variable in void context
I have a script that take a string and puts a ‘.html’ at the end of a string.
If the string already has a ‘.hmtl” i want to strip it, and then add the html later
It works ok but I get a warning and dont understand the warning.
so if i run the script withthe string foo_foo.html, I don’t want the result to be foo_foo.html.html, I put in the if statement