LPM: RE: join

repett0 at sac.uky.edu repett0 at sac.uky.edu
Sun Apr 2 20:37:24 CDT 2000


I think Im seeing the problem.  Perl dosen't do arrays of numbers?? At
least that is my assumption.  I am trying to do this

#!/usr/local/bin/perl

srand( time() ^ ($$ + ($$ << 15)) );

for($i=0; $i<10; $i++)
  $foo[$i] = int(rand(10));

cassius 75: test.pl
Scalar found where operator expected at test.pl line 6, at end of line
        (Missing operator before ?)
syntax error at test.pl line 6, near ")
    $foo"
Execution of test.pl aborted due to compilation errors.
cassius 76:

Do you see what Im doing.  I want to make an array of random number, then
take this and pass it in with other information to a c++ program.  I know
I could have done this all in c++ but I have instructions to do it this
way...

Thanks
Ron




More information about the Lexington-pm mailing list