This is some very basic stuff, but I am not able to get what is wrong with it...
test.pl
my $file = "ooout.log";
print $file."\n";
my $file =~ s/\.log//g;
print $file."\n";
output
$ perl test.pl
ooout.log
$
I want to remove the .log
at the end. I seem to be doing everything right according to this article. Where did I mess up?