I see you have removed strictures (use strict; use warnings;) from the code NetWallah supplied, probably because they were telling you things you didn't understand and seem not to be bothered finding out about. So, rather than just giving you a solution to your problem, I want to see you do at least enough work to fix those errors. Show me the fixed code and I'll show you how to solve the rest of the problem.
In reply to Re: reading a text file and accepting input
by GrandFather
in thread reading a text file and accepting input
by doozy
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |