re: [open-perl-ide-user] can't get open perl to work.
Brought to you by:
jguentherodt
From: Jon K. <met...@cr...> - 2004-05-19 06:58:59
|
> From: "Geovanny Rodriguez" <geo...@ho...> > To: ope...@li... > Date: Tue, 18 May 2004 14:04:18 +0000 > Subject: [open-perl-ide-user] can't get open perl to work. > > <html><div style='background-color:'><DIV class=RTE> > <P><BR><BR>Ok I tryed compiling the sample file that came with open perl ide. This worked fine.</P> > <P>Then I added the follwing pice of code and tryed comiling it. It gave me an erroUse of uninitialized value in concatenation (.) or string at ..\open_perl/perl5db.pl line 603 and more. the code that I used is</P> > <P>#!/usr/bin/perl -w</P> > <P><BR>@SomeList = (8, ' eight ', 9, ' nine');<BR>@TenList = (10, ' ten ');<BR>push (@SomeList, @TenList);<BR>unshift(@SomeList, "The Big Seven");<BR>print @SomeList;<BR></P> > <P>procedure I used to compile the code was.</P> > <P>1) when to file open selected file.</P> > <P>2) whent to project compile.</P> > <P> </P> > <P>Now if I run the same code using the comand promt with perl 5.8.. it works just fine. any sugestions?</P></DIV></div><br clear=all><hr>The new <a href="http://g.msn.com/8HMBEN/2737??PS=47575">MSN 8:</a> smart spam protection and 2 months FREE* </html> versions I'm using: Windows 98se (yah, still... *_* ) perl 5.8.0 built for MSWin32-x86-multi-thread Open Perl IDE 1.0.11.409a A couple notes that may help. I'm somewhat n00bish myself, however, so your mileage may vary: 1) You were adding code to the "HelloWorld.pl" file and not the "perl5db.pl" file, right? I didn't look too thoroughly, but perl5db.pl ought to be part of the openperlide debugger, and is not necessarily example code. Also, "perl -w perl5db.pl" doesn't compile for me when I try to run it from the command line, whether modified or unmodified. I get the idea that it wasn't exactly meant to be run on it's own, without being called from some other library, especially with warnings turned on. 2) if you've got warnings turned on, you need to declare your variables with "my" before using them. Replacing @SomeList = (8, ' eight ', 9, ' nine'); @TenList = (10, ' ten '); with my @SomeList = (8, ' eight ', 9, ' nine'); my @TenList = (10, ' ten '); should do it. Also, could you turn of HTML formatting in your emails? As you can see, it's a little hard to read. Hope this helps. -- Jon --------------------------------- jo...@wi... http://www.windless.org/ |