On Thu, May 15, 2008 at 2:46 PM, GatoLinux <gatolinux at gmail.com> wrote: > $directory = <STDIN>; > Why do it happens? When the user inputs "end!", $directory will contain "end!\n", including the "enter" used by the user to let your program continue after getting the data from STDIN. You can do this after that line: chomp $directory; Marcelo