end of file

2001-09-06 Thread Marcelo Aimeta
Hi! I'm working my way through sams "Teach yourself perl in 21 days" and I'm stuck. This is the code that I'm having trouble with: #!/perl/bin/ $wordcount = 0; $line = ; while ($line ne "") { chop ($line); @array = split(/ /, $line); $wordcount += @array; $line = ; } print ("Total number

End-of-File

2001-09-06 Thread Marcelo Aimeta
Hi! I'm working my way through sams "Teach yourself perl in 21 days" and I'm stuck. This is the code that I'm having trouble with: #!/perl/bin/ $wordcount = 0; $line = ; while ($line ne "") { chop ($line); @array = split(/ /, $line); $wordcount += @array;