Subject: Re: Compiling Perl 4.x
To: Uncle John <happy@dircon.co.uk>
From: Mark Andres <mark@giganet.net>
List: port-mac68k
Date: 01/05/1997 21:35:11
Hi,

First of all, thanks for your help.  Here is the example that I tried. 
When I enter the line

@names = ("Joe", "John", "Jeff", "Jim");

The array assignment does not take place.  The rest of the example has you
enter a name at run time and it compares the name with the names helld in
the array.  I could not get a match, even when I was supposed to (and yes I
am using chop() to remove the line feed).  I added a test line

print "The first name is $names[0].\n";

to see what was being assigned, but it is the null string.

I am new to perl (one of the reasons why I wnated to get NetBSD running at
home is to learn perl) so I am not sure if this is a difference between 4
and 5, but my guess is that there is a problem with the 5.x binary that I
have.

Thanks again,

Mark

At  5:09 PM 1/4/97 +0000, Uncle John wrote:
>Really? I have a book based on Perl 4 (though not the Camel one), and have
>had no problems at all using programs and commands found in there. Which of
>the scripts don't run - that is, what is it about arrays that does not seem
>to be functioning correctly? Or is it more serious than that? :)
>
>I know that a couple of features were _added_ for arrays for v5.x of perl
>(e.g. Anonymous arrays, and arrays within arrays), but....
>
>I guess what I really mean is - do you think the problem is with an
>incompatibility between Perl 4 and 5, or do you think a corrupted install
>is to blame?
>
>On a personal note, I downloaded and compiled the perl 5 source for my
>machine using the supplied installer script, and it went first time despite
>the fact that I'm hopeless at that kind of thing - I hate compiling
>stuff.... So maybe downloading the source to perl and compiling v5 is an
>idea?
>
>Anyway - this probably isn't much help... hope it gets sorted ;)
>
>John.
>
>                     "It's not a Bug(TM) it's a Feature"
>
> ["Bug" is a registered trademark of Microsloth Corp. All wrongs reserved]
>
>    +-+-+ Admin on Monochrome (telnet 138.40.17.10 for more details) +-+-+
>                  Email tugs@mono.org || happy@dircon.co.uk
Mark Andres                  Head, Support Dept.
           GIGANET by Business Network Telecom (BNT)
E-mail:  mark@giganet.net    URL: http://www.giganet.net/staff/mark/
Nihongo: $B%^!<%/(B $B%"%s%I%l%#%9!"!!%5%]!<%HItD9!"!!(BGIGANET (BNT)