in reply to How to take only maximum directory name by using its digits using perl?

Re-read the file and print out things that have the right rev?
seek LOGFILE, 0, 0; while (<LOGFILE>) { if (/rev_(\d+)/) { print if $1 == $max_id } }
  • Comment on Re: How to take only maximum directory name by using its digits using perl?
  • Download Code

Replies are listed 'Best First'.
Re^2: How to take only maximum directory name by using its digits using perl?
by finddata (Sexton) on Mar 29, 2017 at 05:50 UTC
    By the above i couldnt see any changes with my output.The same it prints

      I'm guessing that you've replaced part of your code with the code I posted. You're meant to add my code after yours.

      It's very difficult to give useful answers when you keep making us guess what you're really doing.