Home Accessibility Courses Twitter The Mouth Facebook Resources Site Map About Us Contact
Perl - version 6 - official version launched at Christmas

We were promised Perl 6 "for Christmas" ... and the joke was "but we won't say which Christmas". That was rather longer ago than I care to remember, but the promise has been revived, and the punchline "Christmas 2015" has solved the riddle. Take a look at Perl 6 Intro - last updated 30th December 2015 - and that introduced you to Perl 6 - installation and early examples.

As a protection against the URL above changing / being amended over time, I have placed a .pdf copy of it [here] ... it's subject to the Creative Commons v4 license which allows me to make / distribute that copy provided that I retain this copyright information / supply it under the same license. Which I duly do.

So - coming to install Perl 6 on my mac ("WomanWithCat") this morning, I'm recommended to use Homebrew for the install - which I duly did. Various notes say that it can be hard to find how to do this - so for comleteness of record I'm reproducting my install log here - account "grahamellis" if you wondered.


  WomanWithCat:~ grahamellis$ ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
  ==> This script will install:
  /usr/local/bin/brew
  /usr/local/Library/...
  /usr/local/share/man/man1/brew.1
  ==> The following directories will be made group writable:
  /usr/local/.
  /usr/local/bin
  /usr/local/include
  /usr/local/lib
  /usr/local/share
  ==> The following directories will have their owner set to grahamellis:
  /usr/local/.
  /usr/local/bin
  /usr/local/include
  /usr/local/lib
  /usr/local/share
  ==> The following directories will have their group set to admin:
  /usr/local/.
  /usr/local/bin
  /usr/local/include
  /usr/local/lib
  /usr/local/share
  
  Press RETURN to continue or any other key to abort
  
  ==> /usr/bin/sudo /bin/chmod g+rwx /usr/local/. /usr/local/bin /usr/local/include /usr/local/lib /usr/local/share
  Password:
  Press RETURN to continue or any other key to abort
  ==> /usr/bin/sudo /bin/chmod g+rwx /usr/local/. /usr/local/bin /usr/local/include /usr/local/lib /usr/local/share
  Password:
  ==> /usr/bin/sudo /usr/sbin/chown grahamellis /usr/local/. /usr/local/bin /usr/local/include /usr/local/lib /usr/local/share
  ==> /usr/bin/sudo /usr/bin/chgrp admin /usr/local/. /usr/local/bin /usr/local/include /usr/local/lib /usr/local/share
  ==> /usr/bin/sudo /bin/mkdir /Library/Caches/Homebrew
  ==> /usr/bin/sudo /bin/chmod g+rwx /Library/Caches/Homebrew
  ==> /usr/bin/sudo /usr/sbin/chown grahamellis /Library/Caches/Homebrew
  ==> Downloading and installing Homebrew...
  remote: Counting objects: 3927, done.
  remote: Compressing objects: 100% (3769/3769), done.
  remote: Total 3927 (delta 32), reused 2243 (delta 20), pack-reused 0
  Receiving objects: 100% (3927/3927), 3.41 MiB | 140.00 KiB/s, done.
  Resolving deltas: 100% (32/32), done.
  From https://github.com/Homebrew/homebrew
   * [new branch] master -> origin/master
  HEAD is now at b28ffb8 pulseaudio: add patch for CoreServices header location
  ==> Installation successful!
  ==> Next steps
  Run `brew help` to get started
  WomanWithCat:~ grahamellis$



And then to install Perl 6:

  WomanWithCat:~ grahamellis$ brew install rakudo-star
  ==> Installing dependencies for rakudo-star: libffi
  ==> Installing rakudo-star dependency: libffi
  ==> Downloading https://homebrew.bintray.com/bottles/libffi-3.0.13.mavericks.bottle.tar.gz
  ######################################################################## 100.0%
  ==> Pouring libffi-3.0.13.mavericks.bottle.tar.gz
  ==> Caveats
  This formula is keg-only, which means it was not symlinked into /usr/local.
  
  Some formulae require a newer version of libffi.
  
  Generally there are no consequences of this for you. If you build your
  own software and it requires this formula, you'll need to add to your
  build variables:
  
   LDFLAGS: -L/usr/local/opt/libffi/lib
  
  ==> Summary
  [f0][9f][8d]ú /usr/local/Cellar/libffi/3.0.13: 13 files, 355K
  ==> Installing rakudo-star
  ==> Downloading https://homebrew.bintray.com/bottles/rakudo-star-2015.12.mavericks.bottle.tar.gz
  ######################################################################## 100.0%
  ==> Pouring rakudo-star-2015.12.mavericks.bottle.tar.gz
  [f0][9f][8d]ú /usr/local/Cellar/rakudo-star/2015.12: 377 files, 24M
  You have new mail in /var/mail/grahamellis
  WomanWithCat:~ grahamellis$


A quick test to make sure it's there:

  WomanWithCat:~ grahamellis$ which perl6
  /usr/local/bin/perl6
  WomanWithCat:~ grahamellis$ ls -l `which perl6`
  lrwxr-xr-x 1 grahamellis admin 39 2 Jan 10:59 /usr/local/bin/perl6 -> ../Cellar/rakudo-star/2015.12/bin/perl6
  WomanWithCat:~ grahamellis$


And a test to make sure that it works:

  WomanWithCat:~ grahamellis$ perl6
  > say "Hello 2016"
  Hello 2016
  > exit
  WomanWithCat:~ grahamellis$


Further articles will be posted shortly telling you about the Perl 6 language - this installation and setup procedure is a once-only reference (and please note that the manual / web page referred to also helps you through the procedure for Linux and Windows too).

Teaching / training on Perl 6? .. We've been following the developemnt for years, so very little comes as a surprise - including the fact that (in essence) Perl 6 may be regarded as a new language. We moved from PHP4 to PHP5 easily, from Ruby 1 to Ruby 2 very easily, and from Python 2 to Python 3 without too many problems. The move from Perl 5 to Perl 6 is quite different - it requires a complete new set of examples / materials - and moving of code to the new language is something we'll see over time.

If you're new to any version of Perl and want to learn Perl 6 - please get in touch. From March 2016 onwards, I will be happy to run 4 day "Perl 6 programming" and 5 day "Learning to program in Perl 6" courses ... and indeed earlier training with less formalised notes may be possible.

If you're a user of Perl 5 already and looking to "convert" (carefull though - it's much more that simple conversion!) please get in touch and we'll look to tailoring to your individual needs, taking the underlying philospohies which have changed little forward into their new and extended implemetations.
(written 2016-01-02)

 
Associated topics are indexed as below, or enter http://melksh.am/nnnn for individual articles
P600 - Perl 6
  [4620] Perl 6 - a Practical Extraction and Reporting example! - (2016-01-11)
  [4611] Hungarian, Camel, Snake and Kebab - variable naming conventions - (2016-01-03)
  [4610] Sorting by key or by comparator - Perl 6 - (2016-01-03)
  [4609] Mapping an array / list without a loop - how to do it in Perl 6 - (2016-01-03)
  [4608] Introspecion in Perl 6 - (2016-01-02)
  [4607] Classes and object - first steps in Perl 6 - (2016-01-02)
  [4606] Using Perl 6 to analyse and report on data - (2016-01-02)
  [4605] Hello World - in Perl 6 - (2016-01-02)
  [2816] Intelligent Matching in Perl - (2010-06-18)
  [582] DWIM and AWWO - (2006-01-30)


Back to
Happy New Year. Our customers are our ambassadors
Previous and next
or
Horse's mouth home
Forward to
Hello World - in Perl 6
Some other Articles
Perl - version 6 - official version launched at Christmas
Happy New Year. Our customers are our ambassadors
Training course and hotel room prices - 2016
Management view - TransWilts and transport at the end of 2015
A big change in August
Happy Christmas - and a Christmas thought
4727 posts, page by page
Link to page ... 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 52, 53, 54, 55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95 at 50 posts per page


This is a page archived from The Horse's Mouth at http://www.wellho.net/horse/ - the diary and writings of Graham Ellis. Every attempt was made to provide current information at the time the page was written, but things do move forward in our business - new software releases, price changes, new techniques. Please check back via our main site for current courses, prices, versions, etc - any mention of a price in "The Horse's Mouth" cannot be taken as an offer to supply at that price.

Link to Ezine home page (for reading).
Link to Blogging home page (to add comments).

You can Add a comment or ranking to this page

© WELL HOUSE CONSULTANTS LTD., 2017: Well House Manor • 48 Spa Road • Melksham, Wiltshire • United Kingdom • SN12 7NY
PH: 01144 1225 708225 • FAX: 01144 1225 793803 • EMAIL: info@wellho.net • WEB: http://www.wellho.net • SKYPE: wellho

PAGE: http://www.wellho.net/mouth/4604_Per ... stmas.html • PAGE BUILT: Sat Jun 11 12:16:26 2016 • BUILD SYSTEM: WomanWithCat