perlquestion
Anonymous Monk
<p>I have a filename <code>foo.bar.txt</code> and I want to remove the file extension so that only foo.bar remains. Note, the file extension might not always be <code>.txt</code>.</p>
<p>I've tried <code>s/\..*/</code> but that removes everything after the first period and I'm left with only <code>foo</code> for my filename.</p>
<p>Thank you. Any help you could provide would be greatly appreciated.</p>
10