Link to home
Start Free TrialLog in
Avatar of sapbucket
sapbucket

asked on

hello world for visual perl, help!

Hello,

 I just installed Visual Perl in the .NET environment and cannot get even the most basic thing to work.

 I want the following hello world code to work:

-----------------------------------------------------
use strict;
use namespace "System";
use PerlNET qw(AUTOCALL);

Console->WriteLine("Hello, World.\n");
-----------------------------------------------------

 which is an automatically loaded file for a newbie like me. It should just *work* without anything going wrong.

 in my case, 'use namespace "System"'; is underlined red and throws an error. This is such a basic thing that I am confused...why wouldn't it work from the get-go?

 furthermore, i know so little about .NET that I am not sure how to diagnose this problem. any help would be greatly appreciated!

Thanks,

sapbucket
Avatar of ranganathan_gp
ranganathan_gp

The code written by u are Exactly correct ,
FYI,u can Verify the installation of visual Perl with .net

http://wdvl.internet.com/Reviews/Scripting/VisualPerl/
http://wdvl.internet.com/Reviews/Scripting/VisualPerl/visualPerl2.html

regards

Ranganathan.p
Avatar of sapbucket

ASKER

it turns out the installation of the perl dev kit (PDK) from activestate did not load plc.exe into c:\perl\bin. I'm not sure why - you would think the .msi installer would have performed the task for me.
the solution is: purchase and install the PDK from activestate BEFORE you install visual perl. Only then will you avoid an avalanche of install errors.

i answered myself, please close this question with zero points, thanks mod.

sapbucket
Follow up:

ActiveState does not support the newer Visual Studio releases. That means your code will not work. At all. Not even hello world.

My advice: don't buy it!
ASKER CERTIFIED SOLUTION
Avatar of modulo
modulo

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial