For some reason you don't have
use strict; use warnings;
in your code (see Use strict warnings and diagnostics or die and Use strict and warnings), you aren't chomping user input and you don't check your file open worked.
Update: Perhaps worth some time working through some of the tutorials under Getting Started with Perl or reading http://learn.perl.org.
In reply to Re: XML::Twig Help
by marto
in thread XML::Twig Help
by shravnk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |