Li Ngok Lam wrote: > KENNETH JANUSZ wrote: > > > > Platform: DELL 8200 with XP Prof. SP1 and Oracle 9.2 with the test DB. > > > > I'm new to PERL and need some guidance on getting to run on my PC. The PERL > > files were installed when I implemented Oracle 9.2. I didn't add any other > > code. > > > > My PERL files are located at: > > > > C:\oracle\ora92\Apache\perl\5.00503\bin\MSWin32-x86\ > > a2p.exe > > perl5.00503.exe > > perl95.exe > > perl.dll > > perl.exe > > perlglob.exe > > > > The helloworld.pl file is located at: > > C:\IDSHome1\j2ee\home\default-web-app\examples\perl\ > > > > I copied the helloworld.pl file to the same directory as the perl.exe files. > > Then at the C:\ command line I entered: > > C:\oracle\ora92\Apache\perl\5.00503\bin\MSWin32-x86\perl helloworld.pl > > It ran and just listed the contents of the helloworld.pl file. PERL ran but > > the .pl program didn't. > > > > Any idea how to get this to work? > > > > First, your Perl is not a complete version of Perl. You just have the > compiler of Perl.
You can't install 'just the compiler'. The compiler and interpreter are inseperably joined at the hip. > You almostly missed some very important modules such as strict, warnings, > CGI..etc. I doubt that strict.pm or warnings.pm would be missing, and there's no indication of that from what Kenneth says. Besides, CGI is of very little importance outside the web hosting world. > And second, your Perl is out of dated..... for Win32 OS, Perl is up to 5.8.0 > now. > So go to > http://www.activestate.com/Products/Download/Register.plex?id=ActivePerl > to download the newest, complete version of Perl. Several installations of V4.1 are working fine. Also, reinstalling a later version of Perl in a different place (or even the same place) may well upset Oracle. > If you use all default settings of Perl, your Perl is installed at C:\Perl. > Also, some > parameters (PATH) is stored to Windows too (After reboot). So to run your > script, > just start like : Do you mean the default for the ActiveState version? Anyway there's no reason in general for the installation path to cause problems. > perl C:\somewhere\perlscripts\helloworld.pl > > or you can use the direct mode ( I name it ) : > > perl ( Press Enter ) > print "HelloWorld\n"; > ( Press F6 then Enter, or Ctrl-Z Enter) > your codes will run. Checking whether Perl is in the path is a Good Idea. If you're at the C:\ prompt (rather than C:\oracle\ora92\... ) then just type 'perl -v'. If you get 'Bad command or file name' then start by adding the perl.exe directory to your path in autoexec.bat, reboot, and try again. As soon as you get something sensible about the version of perl, you can write a perl program file in your current directory (wherever you may be) and try running it with perl helloworld.pl or whatever. Unless you put a path on the program filename Perl expects to find the program in the current directory. You certainly shouldn't be writing program files to the Perl /bin directory. I can't think of any reason at all why your command should list the contents of the program file. It should have said something like 'Can't open perl script "helloworld.pl": No such file or directory' since there was no such file in your current location. Anyway, try these things and let us know how you get on. Cheers, Rob -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]