|
![]() |
Overclock.net - Overclocking.net > Software, Programming and Coding > Coding and Programming | |
How to run a perl program in windows?
|
||
![]() |
|
|
LinkBack | Thread Tools |
|
|
#1 (permalink) | |||||||||||
|
New to Overclock.net
|
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 );
|
|||||||||||
|
|
|
|
|
#2 (permalink) | |||||||||||||
|
Bifford
![]() |
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
|
|||||||||||||
|
|
|
|
#3 (permalink) | |||||||||||
|
New to Overclock.net
|
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?
__________________
|
|||||||||||
|
|
|
|
|
#4 (permalink) | ||||||||
|
IT Nut
Join Date: Jun 2007
Location: Waterbury Vermont
Posts: 4,697
Rep: 370
![]() ![]() ![]() ![]() Unique Rep: 283
Trader Rating: 14
|
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.
__________________
Tygon Tornado build pics; at post 23 / How to Cable manage your Thermal take Armor/E6400 3.6 ghz
|
||||||||
|
|
|
|
#5 (permalink) | |||||||||||
|
New to Overclock.net
|
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?
__________________
|
|||||||||||
|
|
|
|
|
#6 (permalink) | ||||||||||||
|
Programmer
|
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
|
||||||||||||
|
|
|
|
|
#7 (permalink) | |||||||||||
|
New to Overclock.net
|
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?
__________________
|
|||||||||||
|
|
|
|
|
#8 (permalink) | |||||||||||||
|
AMD Overclocker
|
You'll have to install Python in Windows.
__________________
Current Settings: 2.625GHz I did Latty's Linux Challenge and I now still use Linux!
|
|||||||||||||
|
|
|
|
|
#9 (permalink) | |||||||||||
|
New to Overclock.net
|
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?
__________________
|
|||||||||||
|
|
|
|
|
#10 (permalink) | |||||||||||||
|
Security Sleuth
|
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."
|
|||||||||||||
|
|
![]() |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
|
|