Simple perl script for SCO

Posted on 2007-08-02
Last Modified: 2010-03-05
Looking for perl script preferably (or something that would normally be installed with Openserver 6) that I can use to print "Hello World" type of data.  I need to know how to create it (I assume my basic vi text editing skills will do the trick), and what directory to put it.  

I want to be able to type a command from the # prompt and have it respond by executing a perl script that prints the following to the terminal window:

   Hello World!
   My name is SCO
   This is Openserver 6
Question by:silentreproach
    LVL 39

    Accepted Solution

    Replace the first line with the path to your perl, if different.

    print "Hello World!\nMy name is SCO\nThis is Openserver 6\n";

    Author Comment

    I know i already accepted, but can you tell me how to comment lines in perl?  eg:

    comment 1
    print "Hello World\n";
    comment 2
    print "Monkey\n";

    Will submit another question if needed.
    LVL 39

    Expert Comment

    Comments are done with a # sign... anything after the # is considered a comment (with some exceptions, such is inside a quote...)

    #comment 1
    print "Hello World\n";
    #comment 2
    print "Monkey\n";

    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    How your wiki can always stay up-to-date

    Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
    - Increase transparency
    - Onboard new hires faster
    - Access from mobile/offline

    Email validation in proper way is  very important validation required in any web pages. This code is self explainable except that Regular Expression which I used for pattern matching. I originally published as a thread on my website : http://www…
    A year or so back I was asked to have a play with MongoDB; within half an hour I had downloaded (,  installed and started the daemon, and had a console window open. After an hour or two of playing at the command …
    Explain concepts important to validation of email addresses with regular expressions. Applies to most languages/tools that uses regular expressions. Consider email address RFCs: Look at HTML5 form input element (with type=email) regex pattern: T…
    In this tutorial you'll learn about bandwidth monitoring with flows and packet sniffing with our network monitoring solution PRTG Network Monitor ( If you're interested in additional methods for monitoring bandwidt…

    779 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