Did i made any mistakes with my code.
This isn't an SSCCE. You have neither declared nor defined $output_dir and therefore $location is undefined so LOGFILE cannot be opened and your while (<LOGFILE>) condition will never be true.
Let me know to check it?
Item 1 of the Basic debugging checklist is to use the stricture pragmas. This would have highlighted the problem to you.
In reply to Re^3: How to take only maximum directory name by using its digits using perl?
by hippo
in thread How to take only maximum directory name by using its digits using perl?
by finddata
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |