Morning Brothers of the Monastery
I have an interesting question, well at least to me.
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.
In this case on 3 character (.fo as an example)
Here is the code I have so far:
#! /usr/bin/perl -w
my @files = <*.fo>