[Release] Installing and Using Perl

ReaL

New Member
Joined
Apr 13, 2008
Messages
1,244
Reaction score
656
==[EN]==

This is a guide, which will help you install ActivePerl (so you can run your perl scripts) and also how to use it. It's very simple :)

1. Download ActivePerl
Download ActivePerl from the official website -> HERE

2. Install ActivePerl
Just run the MSI package, that you just downloaded, change the path for the installation (if you want a different path) and don't change any other options... Just click Next Next... till Finish :)

3. How To Use
Here is a simple example...
- Our "Hello World Script(Program)":
Code:
print("Hello World! :]");
Save this text file as "test.pl" (in "C:\Perl\bin\" or whereever you want... ; note that, if you save your programs/scripts in C:\Perl\bin you dont need to go in that directory via the cmd, just run the script "script.pl" :) )
- Open the windows command prompt (cmd) and write:
And the script will run, printing "Hello World! :]" in your cmd :}




==[BG]==

Този урок ще ви помогне да си инсталирате ActivePerl (за да пускате своите perl скриптове) и ще ви научи още как се ползва. Много е простичко :)

1. Свали ActivePerl
Свали ActivePerl от официалния сайт -> ТУК

2. Инсталирай ActivePerl
Просто пуснете MSI пакета, който току що свалихте, сменете пътя на инсталацията (ако искате да е в друга директория) и не барайте другите опции... Просто цъкайте Next Next... докато не дойде Finish :)

3. Как Се Ползва
Ето един прост пример...
- Нашият "Hello World Скрипт(Програма)":
Code:
print("Hello World! :]");
Запишете този текстови файл като "test.pl" (в "C:\Perl\bin\" или където другаде искате... ; имайте предвид, че ако записвате програмите/скриптовете си в C:\Perl\bin няма нужда да ходите до тая директория през cmd-то ви, просто пускате скрипта с "script.pl" :) )
- Отворете windows command prompt (cmd) и драснете:
И нашият скрипт ще се стартира, като принтира "Hello World! :]" в cmd-то ви :}

Thats all folks! :D
 

ludlud

Active Member
Joined
Jun 27, 2008
Messages
917
Reaction score
101
10/10 Good ;) не знам за какво се използва но сигурно е яко :)