- Download Padre, the Perl IDE
- Windows
- ActiveState Perl
- Linux
- Ubuntu 10.10
- Ubuntu 9.10 till 10.04
- Fedora 11 and later
- Mandriva 2009.0 and later
- Debian 6.0 (squeeze)
- Other Linux and *BSD
- Mac OS X
- Source code from CPAN
- Notice
- License
- Быстрый старт в Perl
- Среда исполнения
- Интегрированная среда разработки (IDE)
- Padre, the Perl IDE
- Текстовые редакторы
- CodeGround
- Первый «Привет, мир!» на Perl
- А дальше — в путь…
- Perl Beginners’ Site
- Breadcrumbs Trail
- Global Navigation
- Main Navigation
- Resources
- Platforms
- Common Uses
- Perl Topics
- Advocacy
- Site Resources
- Contribute
- Content
- IDEs (Integrated Development Environments) and Other Tools for Perl
- Table of Contents
- Padre — the Perl IDE
- Komodo Edit and Komodo IDE
- EPIC — Perl Editor and IDE for Eclipse
- Perl 5 Support Plugin (Camelcade) for IntelliJ IDEA
- TextMate, E Text Editor and E Text Editor for Linux/UNIX
- Other Lists
- Helper Tools
- Perl::Critic
- perltidy
- Graphical Debugger Front-ends
- Sidebar
- Testimonials
- Padre Installation Instructions on Ubuntu
- Installation using the Package Manager
- Installation from CPAN
- Still Not Working?
Download Padre, the Perl IDE
Windows
Released on 12 Feb 2012, the DWIM Perl for Windows package contains
- Strawberry Perl 5.14.2.1
- Padre 0.94
- Padre::Plugin::PerlCritic, Padre::Plugin::PerlTidy
- Moose
- DBD::mysql, DBD::Pg, DBD::SQLite
- DBD::ODBC
- DBIx::Class
- Try::Tiny
- Dancer
- Plack
- Task::Kensho (partially)
- Spreadsheet reader and writer modules
- Win32::GUITest
- Template::Toolkit
- . a lot more CPAN modules .
- see DWIM Perl for Windows for further details.
Download from here:
Download size: 47 Mb. After installation it takes up 300 MB.
Note: Having two or more installations of perl on the same Windows machine is possible but you have to make sure the PATH environment variable holds the directories of the one that you wish to use. As this is slightly more complex in Windows than in Linux we recommend that you uninstall every other perl distribution and install the one we provide. This will help avoiding some confusion. The «DWIM Perl for Windows» package includes the perl compiler/interpreter, the additions Strawberry Perl provides and hundreds of additional modules from CPAN.
ActiveState Perl
There are Padre PPMs available for:
- MS Windows – Perl 5.12 (32/64 bit), 5.10 (32/64 bit) and 5.8 (32 bit)
- Linux – Perl 5.12 (32/64 bit), 5.10 (32/64 bit) and 5.8 (32 bit)
- Mac OS X (32 bit) – Perl 5.12, 5.10, 5.8
Linux
Ubuntu 10.10
sudo apt-get install padre
wget http://www.eekboek.nl/repo/ubuntu_10.10/libwx-perl_0.9702-1_i386.deb
sudo dpkg —install libwx-perl_0.9702-1_i386.deb
Ubuntu 9.10 till 10.04
sudo apt-get install padre
Fedora 11 and later
yum install perl-Padre
Mandriva 2009.0 and later
Debian 6.0 (squeeze)
aptitude install padre
Other Linux and *BSD
For installation on other Linux distributions and *BSD, please look at the detailed installation instructions.
Mac OS X
For installation on Mac OS X, please look at the detailed installation instructions.
Please help us by reporting bugs or installation failures to the Padre IRC Channel or Padre GitHub Issues.
Source code from CPAN
The latest released version of Padre can be always found on CPAN , the Comprehensive Perl Archive Network.
It can be installed using the cpan Padre command and the application can be launched by typing padre on the command line.
If you are interested in the development version of Padre, please check out our pages for Padre developers.
Notice
Padre is not affiliated with or endorsed by the entities listed here. All logos and trademarks remain the property of their respective registered owners.
License
Padre is free software. You can redistribute it and/or modify it under the same terms as Perl 5.10 which means either the Artistic license or GPL I.
Источник
Быстрый старт в Perl
Perl — высокоуровневый интерпретируемый динамический язык программирования общего назначения, созданный Ларри Уоллом, лингвистом по образованию [Wikipedia] . Появился в 1987 году.
Этот язык программирования богат возможностями по работе с текстом, что определяет основную область его применения — манипуляции с текстом, в частности парсинг.
В этой статье будут описаны шаги по установке среды исполнения Perl, выбору средств разработки и созданию первой программы. В конце этого руководства вы найдете список источников, которые помогут быстро освоить основы Perl, а также изучить язык более углубленно.
Perl — это единственный язык, программы на котором выглядят одинаково до и после RSA-шифрования.
На момент написания этого материала актуальной версией интерпретатора является 5.22.0. Perl 6 готовится к релизу в 2015 году, но еще недостаточно документирован.
Язык программирования Perl крайне не рекомендуется брать в качестве языка для знакомства с программированием. Если вы абсолютный новичок — лучше начните с чего-нибудь менее губительного для вашего неокрепшего сознания. Серьезно, вот что говорил об этом языке Йон Риббенс:
PHP — это маленькое зло, созданное некомпетентными новичками, в то время как Perl — это большое и коварное зло, созданное умелыми, но извращёнными профессионалами.
К слову сказать, с PHP начинать тоже не стоит. А теперь ближе к делу.
Среда исполнения
На данный момент Perl официально поддерживается тремя ведущими платформами: Mac OS X, Unix и Windows. На первых двух из них среда исполнения Perl является предустановленной, и ее версию можно узнать через команду perl -v (свежую версию можно скачать здесь), а для операционных систем семейства Windows интерпретатор Perl доступен для скачивания на этой странице. Рекомендуется выбирать ActivePerl (дистрибутив от ActiveState) как самый распространенный.
Интегрированная среда разработки (IDE)
Perl, к сожалению, не очень популярен среди разработчиков сред разработки, поэтому на выбор вам предоставлено лишь небольшое количество специализированных инструментов.
Padre, the Perl IDE
Мультиплатформенная легковесная среда разработки, созданная специально для Perl и удобная для новичков. Помимо традиционных подсветки синтаксиса и автодополнения, имеет также встроенные инструменты рефакторинга. Кстати, Padre сама написана на Perl 5.
Среда разработки, основанная на Eclipse. Подойдет для тех, кто собирается углубиться в Perl. Также поддерживается всеми основными платформами, однако обладает большим функционалом: в частности, поддерживает инспекцию переменных, навигацию по краткой документации и средства отладки (для последнего необходимо скачивать дополнительный модуль).
Инструкция по установке на официальном сайте. Перед установкой вам необходимо иметь на компьютере Eclipse (версии, не ниже 3.6), среду исполнения Java (JRE) и интерпретатор Perl (инструкции по его установке даны выше).
Об установке дополнительных плагинов для EPIC можно почитать здесь.
Текстовые редакторы
Как и в случае с любым языком программирования, конечно же, вам предоставляется огромное множество мультиплатформенных текстовых редакторов на выбор: от предустановленных блокнотов до более удобных средств редактирования исходного кода с подсветкой синтаксиса, автодополнением и т.п. В частности, обратите внимание на:
- KomodoEdit — урезанная версия коммерческой среды разработки Komodo IDE, разрабатываемая ActiveState (той самой, которая поддерживает дистрибутив ActivePerl), располагает функциями автодополнения, подсветки синтаксиса, множественных курсоров и подсказок из документации;
- Vim — текстовый редактор, интерфейс которого может оказаться непривычным для Windows-пользователя; поддерживает подсветку синтаксиса;
- Sublime Text — один из самых популярных инструментов редактирования исходного кода с подсветкой синтаксиса, автодополнением и т.п., функционал которого расширяется множеством существующих плагинов;
- Notepad++ — легковесный текстовый редактор, отличающийся наиболее корректной, после KomodoEdit, подсветкой синтаксиса; функционал может быть расширен плагинами, однако специально для Perl их существует довольно мало.
CodeGround
Кроме того, если вы хотите только попробовать программирование на Perl и не хотите устанавливать дополнительное программное обеспечение на свой компьютер, вы можете воспользоваться сервисом CodeGround, предоставляющим доступ к онлайн-средам разработки с базовым функционалом для большинства языков программирования, в число которых входит и Perl.
Первый «Привет, мир!» на Perl
Традиционно предлагаем начать знакомство с новым языком со всем хорошо известной программы:
Сохраните эту строку в файле hello.pl и запустите только что созданную вами программу командой:
Однако прежде убедитесь, что исполняемые файлы Perl есть среди ваших переменных среды (переменных окружения), а также в том, что вы вызывается perl из папки с исходным файлом hello.pl . В случае успеха, вы увидите ожидаемое «Hello, world!»
Поздравляем, вы начали писать на Perl!
А дальше — в путь…
Отличное англоязычное руководство по языку программирования Perl для быстрого старта вы можете найти на сайте tutorialspoint.com. Помимо этого, существует официальный обучающий ресурс — learn.perl.org.
Среди русскоязычных руководств отметим перевод мультиязычного Учебника Perl. В нем переведены не все главы, однако в качестве основы ресурс вполне пригоден.
Если же вам не по душе изучение посредством чтения, вы можете посмотреть видео-уроки на YouTube в составе следующих плейлистов:
Если вам удастся найти хорошие видео-уроки по Perl на русском языке, обязательно напишите нам об этом в комментарии к этой статье или на почту chief@tproger.ru.
Естественно, вам не обойтись без официальной документации. Скачать оффлайн-версию в HTML и PDF формате можно на этой странице.
Среди книг для начала и продолжения обучения отметим:
- «Изучаем Perl», Рэндал Л. Шварц, Том Феникс, Брайан Д Фой (июнь 2011);
- «Modern Perl», chromatic (2014).
Список рекомендуемых к прочтению книг вы можете найти также здесь.
Спасибо за внимание и успехов в изучении Perl!
Хинт для программистов: если зарегистрируетесь на соревнования Huawei Cup, то бесплатно получите доступ к онлайн-школе для участников. Можно прокачаться по разным навыкам и выиграть призы в самом соревновании.
Перейти к регистрации
Источник
Perl Beginners’ Site
Breadcrumbs Trail
Global Navigation
Main Navigation
Resources
Platforms
Common Uses
Perl Topics
Advocacy
Site Resources
Contribute
Content
IDEs (Integrated Development Environments) and Other Tools for Perl
Table of Contents
Padre — the Perl IDE
Padre is a cross-platform, open-source, free, IDE for Perl, written in Perl, and which is under active development. It’s probably the most recommended for most people who don’t have a previous preference.
Padre, an IDE for Perl written in Perl.
Komodo Edit and Komodo IDE
Komodo Edit is a cross-platform, costless, open-source, editor for Perl, and other dynamic languages by ActiveState. Komodo IDE is a commercially-enhanced version of it which is not open-source and costs money.
EPIC — Perl Editor and IDE for Eclipse
EPIC is a set of plugins for the Eclipse Java-based IDE that allows one to edit and manage Perl projects. Eclipse is cross-platform, free and open-source, and so is EPIC.
Epic, a Perl Editor and IDE based on Eclipse.
Perl 5 Support Plugin (Camelcade) for IntelliJ IDEA
A plugin that adds Perl 5 support for IntelliJ IDEA and other JetBrains products.
Vim is a popular open-source, cross-platform, and free editor, with good support for editing Perl code. the Perl 5 Wiki page about Vim contains more information.
By default Vim behaves very much like the ubiquitous UNIX editor vi, which may seem foreign to people used to the conventions of modern desktop environments. However, using mswin.vim it can behave much more like Windows-based editors.
Vim, a sophisticated cross-platform text-editor.
TextMate, E Text Editor and E Text Editor for Linux/UNIX
TextMate is a commercial (but now open source under the GPL version 3) programmers’ text editor that has become popular on Mac OS X, and E Text Editor is a commercial version of it for Windows, with source available for compiling on Linux and other systems.
Other Lists
These are other lists of prominent or notable IDEs — not all of them are Perl-oriented.
The English Wikipedia’s Text Editors category and their Comparison of text editors.
Helper Tools
Perl::Critic
Perl::Critic is a Perl module (and a free web-service) that analyses one’s Perl code and warns about possible bad practices that should be fixed.
perltidy
perltidy is an auto-formatter for Perl code, that can keep its style consistent. It supports many different styles and style parameters. Perltidy has a frontend called tidyview that allows one to visually customise the style and view the results.
Graphical Debugger Front-ends
While not full-fledged IDEs, these tools are useful as graphical debugger front-ends.
Devel-ptkdb — a Perl/Tk based graphical debugger. Was not maintained since 2004, but may still get the job done.
GNU DDD (The Data Display Debugger) — a Motif-based graphical front-end to several debuggers including the perl debugger.
perldbgui — another Perl/Tk GUI for the Perl debugger. Stuck at DR-1.
Sidebar
Testimonials
«We went live on budget, to specification and on time» — ajt
Источник
Padre Installation Instructions on Ubuntu
Please follow the instructions below to manually install (again) the wx related modules. Probably the best way is to use local::lib so your installation won’t interfere with the system installation.
=== If you have upgraded to **natty**(11.04) from mavrick(10.10), * to install the wx library files you can * Install gtk2-engines-pixbuf to get rid of the annoying warning on Ubuntu 11.10: Gtk-WARNING **: Unable to locate theme engine in module_path: "pixmap"
you will need to reinstall WX.
Database was generated on Wed, 04 May 2011 04:32:25 GMT
Installation using the Package Manager
Ubuntu 10.10 contains Padre 0.63, Ubuntu 10.04 contains Padre 0.50
Because of a packaging error, padre does not work out of the box on Ubuntu 10.10. One possible workaround is to install wx-perl from CPAN:
Use apt-cache to find out which plug-ins are available:
On Ubuntu 10.04, you can install the following plug-ins:
Installation from CPAN
This was checked for Ubuntu 9.04 and 10.10 but it should work for later versions as well.
- Install required development packages
- download and setup local::lib
configure the cpan client setting the prerequisite_policy to ‘follow’ and to add a CPAN server in the urllist:
There are certain places where CPAN.pm is still asking for confirmation «is just needed temporarily during building or testing. Do you want to install it permanently (y/n) [yes]».
This can be eliminated by setting build_requires_install_policy to ‘yes’ in the CPAN client: * conf build_requires_install_policy yes * conf save
If you accidentally tried to install with wx-2.6 libs This can happen if you blindly try to install Padre using cpan without checking for library dependencies. In that case, the installation will die at some point during the Wx compilation phase. Alien::wxWidgets will think that you have v 2.6 (even after you install 2.8), so you must remove it before moving forward with the install. To check if Alien::wxWidgets is incorrect, run this at your command line:
If the output says 2.006### then Alien::wxWidgets needs to be fixed. If it says 2.008###, then this is not a problem.
Before doing any of the following steps, ensure that you have the wx-2.8 dev libs installed via apt-get, as detailed above. The steps that I have tried to fix this problem, in increasing levels of severity, are as follows. After you try each one, you can test if Alien::wxWidgets is properly configured by running the one-liner shown above and checking that the output says 2.008###.
- Force-install Alien::wxWidgets. (This didn’t work for me for some reason.)
- Install App::pmuninstall via CPAN and use it to remove Alien::wxWidgets. Then reinstall Alien::wxWidgets.
- Remove the Alien::wxWidgets files by hand, then re-install Alien::wxWidgets from cpan. If you are using local::lib, you will find these in
/perl5/lib/perl5/i686-linux-gnu-thread-multi/Alien. If you are installing these into your system perl, you will find these under similar folders at /usr/local/lib/perl5/. I believe.
Still Not Working?
Following the instructions on this page did not lead to a successful installation?
We will do our best to help you. By letting us know that something does not work you will help us, too. When we know about it, we can improve this documentation and Padre itself.
Источник