Re: Where to start?
On 11/18/2016 06:34 PM, ToddAndMargo wrote: Hi All, I just install rakudi-star in my Fedora 24 virtual machine. I know how to program and run things in perl 5. Can someone point me to a how to that will show me the basic template for running a perl 6 program in Linux. Also, do I need to run perl6 through a compiler or does it compile on the fly like perl 5? In perl 5, the first line was #!/usr/bin/perl which told the os how to run it (on the fly). And my template was: #!/usr/bin/perl use strict; use warnings; #use diagnostics; #use diagnostics "-verbose"; use lib; # fill name of lib in use constant false => 0; use constant true => 1; Anyway, I am confused. Where do I start? Many thanks, -T Thank you all! -- ~~ Computers are like air conditioners. They malfunction when you open windows ~~
Re: Where to start?
>> >> Can someone point me to a how to that will show me the >> basic template for running a perl 6 program in Linux. >> The most important thing is to ensure that perl 6 is normally executable, i.e. in a directory in $PATH. >> do I need to run perl6 through a compiler or does it compile on the fly like >> perl 5? >> The thing that will probably help you most in learning p6 is the REPL - Read, Evaluate, Print Loop. If you simply execute perl6 without arguments: myprompt$ perl6 To exit type 'exit' or '^D' > it will present with a message and a > prompt. Any perl 6 statement typed there will be evaluated and return a result. Normal up- and down-arrow and command-line editing rules apply, including recalling previous commands. When you're tired of that, CTL-D or exit will let you do something else. (I suspect people will write their scripts with a REPL window open to test any concepts they might not grok completely, rather than waiting for a test run to fail.)
Re: What is rakudo-star?
No that's an incomplete version lacking the modules which makes rakudo into rakudo star. Most importantly panda (the module installer) is missing. Neither does it even have full docs since perl6intro.pdf is missing. Really that single RPM should be renamed rakudo not rakudo star or at least marked as experimental somehow. Rakudo Star itself would probably fit better into binary packaging as a meta package made up from other packages (including panda etc.). That RPM might be OK for a few short scripts but if you are seriously interested in Perl 6 I would recommend building Rakudo Star from source. S On 19 November 2016 at 01:54, ToddAndMargo wrote: > Is this the right perl 6 for Fedora? > > rakudo-star-0.0.2016.07-1.fc24.x86_64.rpm > > Many thanks, > -T > > -- > ~~ > Computers are like air conditioners. > They malfunction when you open windows > ~~ > > > -- 4096R/EA75174B Steve Mynott
Re: What is rakudo-star?
Because the Rakudo 2016.10 which was released didn't install correctly on Windows. I'm hoping to release a test version of 2016.11 (which should work) this weekend. S On 19 November 2016 at 05:51, Moritz Lenz wrote: > > On 19.11.2016 03:14, _ ifdog wrote: > > So why there is not a star release of 2016.10 for windows ? > > Because nobody one yet. I'm happy to upload it for you if you provide it. > > Cheers, > Moritz > > -- > Moritz Lenz > https://deploybook.com/ -- https://perlgeek.de/ -- https://perl6.org/ > -- 4096R/EA75174B Steve Mynott
Re: Where to start?
Rakudo Star has some documentation supplied with it (although the Fedora version may not since it seems incomplete). Try looking at http://perl6intro.com/ S On 19 November 2016 at 05:46, Moritz Lenz wrote: > Hi, > > On 19.11.2016 03:34, ToddAndMargo wrote: > > Hi All, > > > > I just install rakudi-star in my Fedora 24 virtual machine. > > > > I know how to program and run things in perl 5. > > > > Can someone point me to a how to that will show me the > > basic template for running a perl 6 program in Linux. > > #!/usr/bin/env /path/to/your/rakudo/inst/bin/perl6 > > use v6; > > > > Also, do I need to run perl6 through a compiler or > > does it compile on the fly like perl 5? > > There's no separate compilation step. > > Cheers, > Moritz > > -- > Moritz Lenz > https://deploybook.com/ -- https://perlgeek.de/ -- https://perl6.org/ > -- 4096R/EA75174B Steve Mynott