|
![]() |
Overclock.net - Overclocking.net > Software, Programming and Coding > Coding and Programming | |
How to run a perl program in windows?
|
||
![]() |
|
|
LinkBack | Thread Tools |
|
|
#11 (permalink) | |||||||||||||||
|
Photography nut
![]() |
You can still run perl in windows, it is possible. Yes it is easier in *nix though. You could always setup vmware and install ubuntu in vmware. So then you wouldn't need to reboot.
what version of Perl is it? 5.6 or 5.8 or something else. If its 5.6 are newer then after your first line definitly add the line: use warnings; It'll help you a lot in finding out what went wrong where if theres a bug. If its older then add a: -w at the end of the first line. To run it in windows though you'll have to open a terminal/console. Quote:
__________________
"UNIX was never designed to keep people from doing stupid things, because that policy would also keep them from doing clever things." - Doug Gwyn Try out the latest Programming Challenge Quote:
CPU-Z Validation @ 2.97-prime95 stable 16 hours @ 1.48v Proof | CPU-Z Validation @ 3.15 Getting Mouse Side Buttons to work in Linux, Compile a custom Kernel, More
Last edited by dangerousHobo : 06-28-07 at 12:49 PM. |
|||||||||||||||
|
|
|
|
#12 (permalink) | ||||||||||||
|
New to Overclock.net
|
Quote:
ok so i opened a terminal, upened perl.exe from the activeperl install and it opened a terminal but i still dont know how to run the program from there. can someone explain exactly how to do this?
|
||||||||||||
|
|
|
|
|
#13 (permalink) | ||||||||||||||
|
Photography nut
![]() |
Try running this test script.
Code:
use warnings; print "Hello World\n"; then you should be able to run it from the terminal by typing: perl c:\path\hello_world.pl Don't use the shebang symbol either(the #!); For some more info, here.
__________________
"UNIX was never designed to keep people from doing stupid things, because that policy would also keep them from doing clever things." - Doug Gwyn Try out the latest Programming Challenge Quote:
CPU-Z Validation @ 2.97-prime95 stable 16 hours @ 1.48v Proof | CPU-Z Validation @ 3.15 Getting Mouse Side Buttons to work in Linux, Compile a custom Kernel, More
|
||||||||||||||
|
|
![]() |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
|
|