SitePoint Sponsor

User Tag List

Results 1 to 4 of 4

Thread: Perl

Hybrid View

  1. #1
    SitePoint Wizard rctneil's Avatar
    Join Date
    Jun 2005
    Posts
    1,891
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Question Perl

    Hey,

    I ahve downloaded and installed Strawberry PERL on my Windows 7 machine and have written the following perl script below and saved it to my desktop as test.pl

    Code Perl:
    print "Neil";

    How do I run this perl script?

  2. #2
    Non-Member
    Join Date
    Oct 2009
    Posts
    1,852
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    there must be a file somewhere, called perl.exe
    you have to put your test.pl into same directory, start console, switch to this directory and type
    perl test.pl

  3. #3
    SitePoint Wizard
    Join Date
    Mar 2001
    Posts
    3,537
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Try this:

    1) Open a command window(look in your Program Files folder or search your system's Help).


    2) Type the part in bold at the prompt:

    ....> perl -v

    That should print out some information about the version. If that works then:

    2)

    ...> cd \path\to\your_programs_folder

    (cd = change directory)

    3)
    C:\path\to\your_programs_folder> perl test.pl

  4. #4
    SitePoint Wizard rctneil's Avatar
    Join Date
    Jun 2005
    Posts
    1,891
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Excellent, Thanks


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •