Overclock.net - Overclocking.net
     
 
Home Gallery Reviews Blogs Register Today's Posts Mark Forums Read Members List


Go Back   Overclock.net - Overclocking.net > Software, Programming and Coding > Coding and Programming

Reply
 
LinkBack Thread Tools
Old 06-28-07   #1 (permalink)
New to Overclock.net
 
amd nvidia

Join Date: Apr 2007
Posts: 76

Rep: 0 shook2000 Unknown
Unique Rep: 0
Trader Rating: 0
Default How to run a perl program in windows?

I am learning perl by the book learn perl in 21 days and there is a sample program to run

Code:
1: #!c:\perl2\bin\perl.exe
2: $inputline = <STDIN>;
3: print( $inputline );
I changed the first line to the location of the interpretor, and saved the program as program1.pl on the desktop. The book only explains how to run it in linux so can someone explain how to run it in windows?
__________________
System: My System
CPU
AMD X2 4800 Brisbane
Motherboard
Gigabyte GA-M55Plus-s3g
Memory
1gb
Graphics Card
EVGA 7600GS
Hard Drive
1x160, 1x120, 1x40 1x20
Sound Card
onboard
Power Supply
Orion 580 Watt
CPU cooling
Big Tyhpoon
OS
Win Vista Ultimate
Monitor
sceptre 20 inch widescreen
shook2000 is offline   Reply With Quote
Old 06-28-07   #2 (permalink)
Bifford
 
BFRD's Avatar
 
intel nvidia

Join Date: Dec 2004
Location: Carrollton, TX
Posts: 4,336

FAQs Submitted: 8
Folding Team Rank: 27
Hardware Reviews: 2
Trader Rating: 11
Default

usually it is perl "path_to_program1.pl" If the path has spaces you will have to use the quotes.
__________________
Helpful Posts (Hopefully )
Overclocker's Calculator
Photo Editing - B&W w/Color Accents

System: Main Rig
CPU
E6700 Conroe
Motherboard
Abit QuadGT
Memory
2GB G.Skill PC2 8000 (HZ)
Graphics Card
EVGA 8800GTX
Hard Drive
150 GB Raptor X / 300GB Storage
Sound Card
Audigy 2 ZS
Power Supply
PCP&C Silencer 750
Case
Sigma Shark
CPU cooling
Stock (for now)
GPU cooling
Stock
OS
Vista Ultimate
Monitor
Dual Samsung 204b
BFRD is offline I fold for Overclock.net Overclocked Account BFRD's Gallery   Reply With Quote
Old 06-28-07   #3 (permalink)
New to Overclock.net
 
amd nvidia

Join Date: Apr 2007
Posts: 76

Rep: 0 shook2000 Unknown
Unique Rep: 0
Trader Rating: 0
Default

So the interpreter's extention should be .pl? I downloaded active perl so if anyone knows can you tell where the interpretor is in the folder that was installed by activeperl?
__________________
System: My System
CPU
AMD X2 4800 Brisbane
Motherboard
Gigabyte GA-M55Plus-s3g
Memory
1gb
Graphics Card
EVGA 7600GS
Hard Drive
1x160, 1x120, 1x40 1x20
Sound Card
onboard
Power Supply
Orion 580 Watt
CPU cooling
Big Tyhpoon
OS
Win Vista Ultimate
Monitor
sceptre 20 inch widescreen
shook2000 is offline   Reply With Quote
Old 06-28-07   #4 (permalink)
IT Nut
 
trueg50's Avatar
 
intel

Join Date: Jun 2007
Location: Waterbury Vermont
Posts: 4,697

Rep: 370 trueg50 is a proven membertrueg50 is a proven membertrueg50 is a proven membertrueg50 is a proven member
Unique Rep: 283
Trader Rating: 14
Default

I don't think you can run it in windows, there a a few dependencies, for example e-mailing stuff, they use a unix utility. just get a cheap computer, and install Ubuntu on it, or use your current computer and dual boot with ubuntu. I did that because I was sick of remoting into a linux server for a college class.

http://video.stumbleupon.com/#p=f8bn85t8kr

that should be the one. It is very helpful, and the process is easy and not very dangerous.

running perl in windows will be a pain in the.. ahh butt, just go with running it on ubuntu, which is very easy.

System: Latitude D630
CPU
C2D T7100 1.8 ghz (undervolted)
Motherboard
ummm... Dell
Memory
2 x 1gb 667mhz
Graphics Card
Intel X3100
Hard Drive
Fujitsu 7200 RPM 120gb
OS
dual boot Vista business + Leopard 10.5.4
Monitor
1440x900
trueg50 is online now Overclocked Account   Reply With Quote
Old 06-28-07   #5 (permalink)
New to Overclock.net
 
amd nvidia

Join Date: Apr 2007
Posts: 76

Rep: 0 shook2000 Unknown
Unique Rep: 0
Trader Rating: 0
Default

I am away and i just have my laptop here and alot of free time, so i dont want to dual boot this but will python require anything to use in windows?
__________________
System: My System
CPU
AMD X2 4800 Brisbane
Motherboard
Gigabyte GA-M55Plus-s3g
Memory
1gb
Graphics Card
EVGA 7600GS
Hard Drive
1x160, 1x120, 1x40 1x20
Sound Card
onboard
Power Supply
Orion 580 Watt
CPU cooling
Big Tyhpoon
OS
Win Vista Ultimate
Monitor
sceptre 20 inch widescreen
shook2000 is offline   Reply With Quote
Old 06-28-07   #6 (permalink)
Programmer
 
intel nvidia

Join Date: Jun 2007
Posts: 726

Rep: 49 Sreenath is acknowledged by some
Unique Rep: 39
Hardware Reviews: 3
Trader Rating: 0
Default

i dont know for sure but seriously, boot with a knoppix live cd. you dont have to install ANYTHING, just boot from the cd, and run your perl scrips in there.

i would install ubuntu but you said you dont want to, therefore the knoppix suggestion
__________________
System: Slackwarez Station
CPU
E6400 @ 3.6 GHz (450X8)
Motherboard
GA P965 S3
Memory
2GB OCZ Gold @ DDR 2 900 5-5-5-15
Graphics Card
7600GT
Hard Drive
320GB Maxtor SATA2, 160 for XP, 160 for Slackware
Sound Card
Diamondtek XtremeSound 7.1
Power Supply
680W Echostar 22A on 12V rail
Case
Rosewill Black small Mid-T
CPU cooling
Big Typhoon with Thunderblade fan
GPU cooling
lapped stock
Monitor
21" CRT by Sun Microsystems
Sreenath is offline   Reply With Quote
Old 06-28-07   #7 (permalink)
New to Overclock.net
 
amd nvidia

Join Date: Apr 2007
Posts: 76

Rep: 0 shook2000 Unknown
Unique Rep: 0
Trader Rating: 0
Default

Yeah i had a knoppix live cd at home but this isnt even my computer and i only have 20 gig of hard disk space so i have to work with what i have. so does python require anything in windows?
__________________
System: My System
CPU
AMD X2 4800 Brisbane
Motherboard
Gigabyte GA-M55Plus-s3g
Memory
1gb
Graphics Card
EVGA 7600GS
Hard Drive
1x160, 1x120, 1x40 1x20
Sound Card
onboard
Power Supply
Orion 580 Watt
CPU cooling
Big Tyhpoon
OS
Win Vista Ultimate
Monitor
sceptre 20 inch widescreen
shook2000 is offline   Reply With Quote
Old 06-28-07   #8 (permalink)
AMD Overclocker
 
KloroFormd's Avatar
 
amd ati

Join Date: Apr 2007
Location: Dallas, TX
Posts: 1,588

Rep: 143 KloroFormd is acknowledged by manyKloroFormd is acknowledged by many
Unique Rep: 109
Trader Rating: 1
Default

You'll have to install Python in Windows.
__________________
Current Settings: 2.625GHz

I did Latty's Linux Challenge and I now still use Linux!

System: FrankenF0cker
CPU
AMD A64 X2 4000+ Brissy @ 2.6GHz
Motherboard
Biostar GeForce 6100 AM2
Memory
2x512MB Kingston & 2x2GB AData
Graphics Card
Gigabyte ATI 4850 @ 735/1050
Hard Drive
250GB WD SATA-II
Sound Card
Onboard
Power Supply
HEC 585-watt
Case
Just4PC Cheapo
CPU cooling
AC64 Pro/AC MX-2 TIM
GPU cooling
Stock Zalman
OS
vLite x64 Ult. | Ubuntu 8.04 x64
Monitor
17" Viewsonic LCD
KloroFormd is offline   Reply With Quote
Old 06-28-07   #9 (permalink)
New to Overclock.net
 
amd nvidia

Join Date: Apr 2007
Posts: 76

Rep: 0 shook2000 Unknown
Unique Rep: 0
Trader Rating: 0
Default

Is there a free compiler that can turn the script to an executable for free? If i use that i wont need to install python on it right?
__________________
System: My System
CPU
AMD X2 4800 Brisbane
Motherboard
Gigabyte GA-M55Plus-s3g
Memory
1gb
Graphics Card
EVGA 7600GS
Hard Drive
1x160, 1x120, 1x40 1x20
Sound Card
onboard
Power Supply
Orion 580 Watt
CPU cooling
Big Tyhpoon
OS
Win Vista Ultimate
Monitor
sceptre 20 inch widescreen
shook2000 is offline   Reply With Quote
Old 06-28-07   #10 (permalink)
Security Sleuth
 
Raptors06's Avatar
 
intel ati

Join Date: Feb 2006
Posts: 471

Rep: 40 Raptors06 is acknowledged by some
Unique Rep: 36
Folding Team Rank: 407
Trader Rating: 6
Default

You don't have to install anything - just download and install the Active Perl like you have. Browse to the directory your program is located, and type in the following in quotes, replacing your program name -> "perl your_name_here" and let it run. Assuming it has no compilation issues, you should have a running Perl program. And you don't have to have Linux to run Perl. Perl is like Java in that it is platform-independent.
__________________
Crucial Ballistix Club

Does Not Compute. Error 666. Please reboot Universe.exe and try again.

Katie Couric, while interviewing a Marine sniper, asked: "What do you feel when you shoot a Terrorist?". The Marine shrugged and said: "A slight recoil."

System: My System
CPU
E6600 @ 3.0 w/1.350 (333x9) L651B
Motherboard
P5B-Deluxe
Memory
2 x 1GB Ballistix DDR2-800 @ 1067 (5-5-5-15)
Graphics Card
Gigabyte 3870 (975/1125)
Hard Drive
320GB 7200.10
Sound Card
Onboard
Power Supply
PC P&C 610
Case
KingWin PoS
CPU cooling
TRUE w/ FM121 *LAPPED*
GPU cooling
Zalman VF-1000
OS
Vista, Ubuntu, BT 3.0
Monitor
19" ViewSonic
Raptors06 is offline I fold for Overclock.net   Reply With Quote
Reply



Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools



All times are GMT -4. The time now is 01:24 PM.


Overclock.net is a Carbon Neutral Site Creative Commons License Internet Security By ControlScan

Terms of Service / Forum Rules | Privacy Policy | Advertising | Become an Official Vendor
Copyright © 2008 Shogun Interactive Development. Most rights reserved.
Page generated in 0.29994 seconds with 8 queries