Re: Where to start?

2016-11-19 Thread ToddAndMargo

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?

2016-11-19 Thread Parrot Raiser
>>
>> 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: Where to start?

2016-11-19 Thread Steve Mynott
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 


Re: Where to start?

2016-11-18 Thread Moritz Lenz
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/


Re: Where to start?

2016-11-18 Thread ToddAndMargo

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



Sorry for the dumb question, but googling it only gets me perl5
instructions.

--
~~
Computers are like air conditioners.
They malfunction when you open windows
~~




Where to start?

2016-11-18 Thread ToddAndMargo

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

--
~~
Computers are like air conditioners.
They malfunction when you open windows
~~