Problem in this "while".

Marcelo marcelo.magallon en gmail.com
Jue Mayo 15 14:14:34 PDT 2008


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


Más información sobre la lista de distribución Costarica-pm