[Date Prev][Date Next][Thread Prev][Thread Next] [Search] [Date Index] [Thread Index]

Re: [MacPerl] Word Count Programme..



On Sat, 23 May 1998, Amitava Basu wrote:

> Hi!
> 
> I have a small programme for counting words.  I am unable to
> find where I have gone wrong.  Can anyone please help me find
> the fault?
> 
> #!/usr/bin/perl -w
<snip>
> $LineLength = Length($TheLine);
^ ^ ^ ^ ^ ^ ^
<snip>
> until ($CharPos == $LineLen) {
                  ^ ^ ^ ^ ^ ^ ^
> Thanks in advance
> Amitava Basu

Always check your var names ;)

Kriss

...''''....''''....''''....''''....''''....''''....''''....''''....''''...
 Kristoffer Andsten  There are two major products to come out of Berkeley:
kriss@hitchhiker.net   LSD and UNIX. This is not a coincidence. - Unknown 
'''....''''....''''....''''....''''....''''....''''....''''....''''....'''


***** Want to unsubscribe from this list?
***** Send mail with body "unsubscribe" to mac-perl-request@iis.ee.ethz.ch