For 2023 (and 2024 ...) - we are now fully retired from IT training. We have made many, many friends over 25 years of teaching about Python, Tcl, Perl, PHP, Lua, Java, C and C++ - and MySQL, Linux and Solaris/SunOS too. Our training notes are now very much out of date, but due to upward compatability most of our examples remain operational and even relevant ad you are welcome to make us if them "as seen" and at your own risk.
Lisa and I (Graham) now live in what was our training centre in Melksham - happy to meet with former delegates here - but do check ahead before coming round. We are far from inactive - rather, enjoying the times that we are retired but still healthy enough in mind and body to be active!
I am also active in many other area and still look after a lot of web sites - you can find an index ((here)) |
Hello World - in Perl 6
Perl 6 is both functional and object oriented - continuing its classic eclecticism from earlier versions of Perl. Which is great once you know it, but a bit frightening when you first come to learn it!
Programming courses start with a "hello world" example - no matter what langauge is being taught - as that provides the tutor and delegates with the shortest way from entering a program, coverting it to something runnable, running it, and seeing the results.
"Hello World" in Perl 6 is ... [here].
You enter the source code into a plain text file (use your favourite text editor) ... here's what the source code may look like - use either line as I've shown 2 ways to do the same thing:
say "Hello Perl 6 world";
"Perl 6 works in both a functional and an OO way".say;
You can then run it using "perl6" followed by the file name you chose
WomanWithCat:perl6 grahamellis$ perl6 hello.pl6
Hello Perl 6 world
Perl 6 works in both a functional and an OO way
WomanWithCat:perl6 grahamellis$
If you prefer on a Linux / Unix system add a #! line and change file permissions.
We can offer you Perl 6 training, starting March 2016 ... at 3 levels. If you're a newcomer to programming, it's a five day "Learning to program in Perl 6" course. If you're an experienced programmer in another language, I'm going to recommend 4 days "Perl 6 programming". If you're already experienced in a previous version of Perl, please get in touch - there will be no "one course suits all" here; we can tailor individually to your needs - and indeed do so from as early as February. (written 2016-01-02)
Associated topics are indexed as below, or enter http://melksh.am/nnnn for individual articles P600 - Perl 6 [582] DWIM and AWWO - (2006-01-30) [2816] Intelligent Matching in Perl - (2010-06-18) [4604] Perl - version 6 - official version launched at Christmas - (2016-01-02) [4606] Using Perl 6 to analyse and report on data - (2016-01-02) [4607] Classes and object - first steps in Perl 6 - (2016-01-02) [4608] Introspecion in Perl 6 - (2016-01-02) [4609] Mapping an array / list without a loop - how to do it in Perl 6 - (2016-01-03) [4610] Sorting by key or by comparator - Perl 6 - (2016-01-03) [4611] Hungarian, Camel, Snake and Kebab - variable naming conventions - (2016-01-03) [4620] Perl 6 - a Practical Extraction and Reporting example! - (2016-01-11)
Some other Articles
Hello World - in Perl 6Happy New Year. Our customers are our ambassadorsTraining course and hotel room prices - 2016Management view - TransWilts and transport at the end of 2015A big change in August
|
4759 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, 96 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).
|
|