perlquestion
Jalcock501
Morning Brothers of the Monastery<p>I have an interesting question, well at least to me.</p>
I have a script that holds the names of files(with a specific extension) in an array. However I would like to remove the extension from these files, but only in the array. Is there a way of amending all of the array elements to remove the extensions.<p>In this case on 3 character (.fo as an example)</p>
Thanks
Jim
<p>
UPDATE:
Here is the code I have so far:
<code>
#! /usr/bin/perl -w
use strict;
my @files = <*.fo>
for(@files)
{
s/[.]fo//g;
}
print @files;
</code>