Execution Problems with UNIX.

Hi Team,
I created one file like tst.pl, it contains

#!/usr/bin/perl
use Spreadsheet::ParseExcel;

During execution it's showing error like use: command not found.
Pleast let me suggest how to use this perl menthods in Unix.

Thanks in Advance,
Reards,
Harris

Can you paste exact error message that you are receiving?

And what is the output of

type perl

?

Try chmod 740 tst,pl and then run the file directly, or call like this perl tst.pl use is not a shell command, it is an intruction to include a module to the Perl preprocessor.

Hi,
Getting this error message:
Can't locate spreadsheet/parseexcel.pm in @INC
Let me suggest the solution.

Thanks in Advance.

Regards,
Harris

It's not rocket science. It's telling you that the module can't be found, because you don't have that module. I doubt you had it in Windows either, until you installed it.

The likely thing to do would be to install it.

If your distribution doesn't have a package for it, use cpan as root. It will ask you lots of questions the first time you run it. Once you're past them, 'install Spreadsheet::ParseExcel