PDA

View Full Version : Dyyryath: Benchmark script, BeOS and PERL5



Chinasaur
07-07-2002, 05:58 PM
Dyy,

I only have access to PERL 5.005 on BeOS.

I get the following error when running your script under PERL5:

=====================
/boot/home/df1> speed.pl
./speed.pl: use: command not found
: command not found
./speed.pl: line 3: syntax error near unexpected token `system("clear")'
'/speed.pl: line 3: `system("clear");
======================

Is there anything you can rewrite to make your script 5.005 compatible?

TIA even if you can't :)


:cheers:

Dyyryath
07-07-2002, 10:30 PM
I know very little about BEOS, but I'm pretty sure those aren't Perl error messages. I don't think the Perl interpreter is running. Perhaps BEOS is treating it like a shell script of some sort?

This is what would happen if you ran it on a Linux system without the '#!/usr/bin/perl' line pointing to Perl interpreter, or if you left it off all together.

Perhaps BEOS (like Windows) doesn't know what that first line means. Try this:

perl speed.pl

This should call the Perl interpreter manually and feed it the name of the script as a command line argument. Now, the system('clear') line could still give you problems, but you can comment that line out in the script.

Let me know what happens next and we'll get it working for you.