open the file,

while (<FILE>) {
my @list = split(/ /, $_);
  ..do something with the list..
}

This way you have to make the appropriate work inside each loop in the while
because @list gets the new line value each time..

Etienne

"José A. Ferrer" wrote:

> Please,
>
> I have a text file separated with one or more whitespaces. I need to
> extract each line to scalar variables everything but whitespaces. How can
> it be done in perl ?
>
> TIA.
>
> --
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]

S/MIME Cryptographic Signature

Reply via email to