in reply to filter the files in a folder on the basis of some variable present in them

Hi,

first you should indent your code, this is really a must.

Next, what do you intend with this:

for my $i= 6000000
It does not make any sense to me.

No time now to go through the rest of your code, but, basically you need to apply your regexes to each line of code and set the right variable when the regex is successful.

  • Comment on Re: filter the files in a folder on the basis of some variable present in them
  • Download Code

Replies are listed 'Best First'.
Re^2: filter the files in a folder on the basis of some variable present in them
by reciter (Novice) on Jun 10, 2015 at 09:59 UTC

    I was actually trying open to all the files present in folder. they only difference is last character i.e. each contains 1,2,3 (increasing order)at end of file name