wiki:Tutorials

Version 5 (modified by szabgab, 5 years ago) (diff)

--

Temporary page for tutorial before they are added to the real web site

Getting Started with Padre on Windows

  • Download Padre 0.41 from http://padre.perlide.org/download.html the name of the file to be saved on the desktop is called almost-six-0.41.msi (TODO have a clearer name of the package on the website)
  • Run this installer by double clicking on the icon
  • It will ask you to accept the terms and then press the Install button
  • Once installation is finished you should be able to see the installed icons by pressing on "Start" then on "Programs" and then selecting "Padre Standalone Plus Six".
  • The package you downloaded is the latest version packaged for Windows but there are newer version of Padre, you should now upgrade by doing the following: (TODO: Padre, or the installation should have an icon that upgrads Padre) (Better yet, it should wrap a small wx application that shows a progressbar by default on which one can select to see details which would show the text as it is printed to the console that can be killed if the installations gets stuck.)
perl -MCPAN -e "CPAN->upgrade('/^Padre/')"

This will open a black window. You'll see text printed in that window while Padre is being upgraded. The process will take 4-5 minutes or a lot more if your Internet connection is slow.

  • Run Padre by clicking on "Start", selecting "Programs", selecting "Padre Standalone Plus Six" and clicking on "Padre". (there will be two windows, a black console and the editor itself) This is considered a bug and it will be fixed in a future version. (TODO eliminate black window)
  • Close the Output window (Uncheck View/Show? Output) (TODO set this the default)
  • Select "Plugins", "Plugin Manager", you should see a list of plugins. Please make sure at least the the "Perl 6" plugin is enabled but it would be better to enable the "Padre Developer Tools" Plugin and the "Padre Popularity Contest" plugin as well.
  • Select "Edit", "Preferences", "Run Parameters" and make sure "Use external window for execution" is checked. (TODO remove the word xterm)
  • Click on "Files and Colors" (in older versions it was called "Mime-types") Select the Perl 6 as "File type" and select "STD.pm" as Highlighter.

Click on "Save"

Help for problem solving

run "Start", "Run", type in "cmd" and press enter. In the black window type echo %PATH% then type perl -V

TODO ( support .plx files ?)

First Perl 5 Script: Hello world

  • Click on "File" and the "New..." and "Perl 5 script"
  • Type in your code print "Hello world\n"; at the bottom of the file
  • Save the file as hello.pl
  • Click on "Run"
  • A black window should be displayed and inside that window the text "Hello world".
  • You should close the window by clicking on the [x] though it will disappear after 1000 secs.

First Perl 6 Script: Hello world

  • Click on "File" and the "New..." and "Perl 6 script"
  • Type in your code "Hello world".say; at the bottom of the file
  • Save the file as hello.p6
  • Click on "Run"
  • A black window should be displayed and inside that window the text "Hello world".
  • You should close the window by clicking on the [x] though it will disappear after 1000 secs.

Add a menu item to My Plugin