Hi Monks,
I have a problem in <STDIN>. When I use it inside a foreach loop, it doesn't terminate in command prompt for the first iteration.
Thanks
foreach (grep(/^.*\.xml$/, readdir(DIR))) { open (FIN, "<$_") or die ("$_ is not opened\n"); undef $/; print "Pls enter Section level value for $_ : "; chop ($seclev = <STDIN>) }
In reply to Problem with <STDIN> by sivaramanm
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |