How can I remove or replace string
for example
$string= 222111.pdf
i want string be(remove or replace .pdf with .txt)
222111.txt
??
| SitePoint Sponsor |

How can I remove or replace string
for example
$string= 222111.pdf
i want string be(remove or replace .pdf with .txt)
222111.txt
??





$string =~ s/pdf$/txt/;
this is pretty basic

I tried this and no thing changed
Bookmarks