Use chomp in the input variables, in order to remove the "newline" or "enter" character.
for example:
$fileext = <STDIN>; chomp $fileext;
In reply to Re: Simple file editing problems
by fglock
in thread Simple file editing problems
by alpal
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |