Go Back   SitePoint Forums > Forum Index > Program Your Site > Perl, Python and Other Languages
Newsletter FAQ Members List Calendar Mark Forums Read

New to SitePoint Forums? Register here for free!

SitePoint Sponsor
 
Reply
 
Thread Tools Display Modes
Old Nov 3, 2009, 11:36   #1
rctneil
SitePoint Wizard
 
rctneil's Avatar
 
Join Date: Jun 2005
Posts: 1,612
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

Perl Code:
print "Neil";

How do I run this perl script?
rctneil is offline   Reply With Quote
Old Nov 3, 2009, 15:57   #2
Shrapnel_N5
SitePoint Evangelist
 
Shrapnel_N5's Avatar
 
Join Date: Oct 2009
Posts: 468
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
Shrapnel_N5 is online now   Reply With Quote
Old Nov 4, 2009, 01:31   #3
7stud
SitePoint Wizard
 
Join Date: Mar 2001
Posts: 3,455
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
7stud is offline   Reply With Quote
Old Nov 4, 2009, 05:58   #4
rctneil
SitePoint Wizard
 
rctneil's Avatar
 
Join Date: Jun 2005
Posts: 1,612
Excellent, Thanks
rctneil is offline   Reply With Quote
Reply

Bookmarks

« Previous Thread | Next Thread »

Thread Tools
Display Modes

 
Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Sponsored Links
 
Forum Jump


All times are GMT -7. The time now is 03:54.


Powered by vBulletin® Version 3.7.1
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Copyright 1998-2009, SitePoint Pty Ltd. All Rights Reserved