Perl
  Home arrow Perl arrow Page 3 - Perl: Installing It
Dev Shed Forums 
Administration  
Apache  
BrainDump  
DHTML  
Flash  
Java  
JavaScript  
Multimedia  
MySQL  
Oracle  
Perl  
PHP  
Practices  
Python  
Reviews  
Security  
Style-Sheets  
Web Services  
XML  
Zend  
Zope  
Forums Sitemap 
IBM® developerWorks 
Dedicated Servers 
E-Commerce Hosting 
Linux Web Hosting 
Managed Hosting 
Small Business Hosting 
Download TestComplete 
VPS Hosting 
Weekly Newsletter

 
Developer Updates  
Free Website Content 
IBM Rational Software Development Conference
 RSS  Articles
 RSS  Forums
 RSS  All Feeds
Write For Us Get Paid 
Request Media Kit
Contact Us 
Site Map 
Privacy Policy 
Support 
 USERNAME
 
 PASSWORD
 
 
  >>> SIGN UP!  
  Lost Password? 
PERL

Perl: Installing It
By: James Payne
  • Search For More Articles!
  • Disclaimer
  • Author Terms
  • Rating: 5 stars5 stars5 stars5 stars5 stars / 3
    2007-10-09

    Table of Contents:
  • Perl: Installing It
  • Installing Perl
  • But How Do I Know it Installed Properly?
  • Unix and Linux and Mac Oh My!

  • Rate this Article: Poor Best 
      ADD THIS ARTICLE TO:
      Del.ici.ous Digg
      Blink Simpy
      Google Spurl
      Y! MyWeb Furl
    Email Me Similar Content When Posted
    Add Developer Shed Article Feed To Your Site
    Email Article To Friend
    Print Version Of Article
    PDF Version Of Article
     
     
     
    ADVERTISEMENT

    Route your faxes to your email inbox. Private, secure fax numbers available from CallWave. Choose your fax number.

    Perl: Installing It - But How Do I Know it Installed Properly?
    (Page 3 of 4 )

    That's a good question. Let's test it out.

    Go to your C: Drive and create a folder called PerlPrograms. Then open up a notepad file and enter the following code:


    #!/usr/bin/perl

    print "James Payne is my Lord and Master!n";

    Don't worry about what the code means right now; we'll cover that in a later tutorial. For now, just save the file with the filename test.pl. Copy it over to the PerlPrograms folder we just created.

    The next step is to open the Windows Command Prompt. Go to Start>Run, type cmd and click the OK button.




    At the prompt, type in the following to change to the current directory to the directory where your script file is located:


    cd   c:PerlPrograms  

    Since the directory is now changed, we can simply type in the name of the file to have it run. In our case:


    test.pl

    If we set up Perl properly, you should see the text: "James Payne is my Lord and Master!"

    You can also bypass all of that and simply type: perl -v at the command prompt and the current version of Perl will appear on the screen.

    More Perl Articles
    More By James Payne


       · Hi James,Nice article. Perl is a great language, so it's nice to see people...
       · Welcome to the first in a series on working with Perl. This article covers how to...
       · Hi, Thanks for commenting. Yeah, it looks like I did leave out some...
     

       

    PERL ARTICLES

    - Perl: A Continuing Look at Hashes and Multid...
    - Perl: Another Round with Hashes
    - Perl Hashes
    - Perl Lists: A Final Look at List::Util
    - Perl Lists: Utilizing List::Util
    - Perl Lists: The Split() Function
    - SQL and CGI with Perl and DBI
    - Perl Lists: More Functions and Operators
    - SELECT Queries and Perl
    - Perl Lists: More on Manipulation
    - Creating a Database with Perl and DBI
    - Perl: Sailing the List(less) Seas
    - Perl and DBI
    - Perl: Concatenating Text and More
    - Perl Text: Quoting Without Quote Marks

     
    Accelerating Trading Partner Performance
     
    Competing on Analytics
     
    Cost Effective Scaling with Virtualization and Coyote Point Systems
     
    Five Checkpoints to Implementing IP Telephony
     
    Hosted Email Security: Staying Ahead of New Threats
     




    © 2003-2008 by Developer Shed. All rights reserved. DS Cluster 3 hosted by Hostway