hello world for visual perl, help!

Posted on 2005-04-19
Last Modified: 2013-11-14

 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!


Question by:sapbucket
    LVL 1

    Expert Comment

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


    LVL 3

    Author Comment

    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.
    LVL 3

    Author Comment

    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.

    LVL 3

    Author Comment

    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!

    Accepted Solution

    PAQed with points refunded (500)

    Community Support Moderator

    Featured Post

    Threat Intelligence Starter Resources

    Integrating threat intelligence can be challenging, and not all companies are ready. These resources can help you build awareness and prepare for defense.

    Join & Write a Comment

    Suggested Solutions

    One of the most frequently asked questions on EE in the "Windows Installer" zone is how to eliminate self-triggered installation of some product.  The problem occurs when, suddenly, whenever a certain application is launched, or even when a folder i…
    Displaying an arrayList in a listView using the default adapter is rarely the best solution. To get full control of your display data, and to be able to refresh it after editing, requires the use of a custom adapter.
    Viewers will learn how to properly install Eclipse with the necessary JDK, and will take a look at an introductory Java program. Download Eclipse installation zip file: Extract files from zip file: Download and install JDK 8: Open Eclipse and …
    In this fourth video of the Xpdf series, we discuss and demonstrate the PDFinfo utility, which retrieves the contents of a PDF's Info Dictionary, as well as some other information, including the page count. We show how to isolate the page count in a…

    745 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    16 Experts available now in Live!

    Get 1:1 Help Now