On Sat, Feb 15, 2003 at 01:03:50PM -0800, brady jacksan wrote:
> Hi
Hi,
> I am writing a script that reads file from command line and places
> each line from the files into an array, and prints out the total lines
> read and then
> each line read.
>
> while (defined ($files = <>)) {
> chomp;
> print "Total lines in the files:@files\."
^
> print "@files\n"
^
>
^
> why do keep getting compilation errors?
Because your syntax is invalid. Braces must be balanced, and each
statement must end in a semicolon.
Also, you don't need to escape periods in quoted strings.
--
Michael
[EMAIL PROTECTED]
http://www.jedimike.net/
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]