Where you have:
open(my $LOG,">>LOG_file") or die("Cannot open");
Change it to:
open(my $LOG,">>LOG_file") or die("Cannot open: $!");
This will display more information as to why you couldn't open the file. See open, perlvar and since you're new to perl:
In reply to Re^3: Out of memory error!!!
by marto
in thread Out of memory error!!!
by sathya83aa
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |