[perl] array of files: remove specific ext
Hello,
I have a problem cause i have an array of files and dirs: Code:
my @files = ( |
you can easily iterate over the array and create a new array that only hosts the files like this:
Code:
foreach $file (@files) { |
You can also use grep perl function to select files with specific extension, like:
Code:
my @files = ( |
All times are GMT -5. The time now is 11:51 PM. |