Re: Need dynamic variables help

2017-01-13 Thread ToddAndMargo
On 01/13/2017 08:14 AM, Brandon Allbery wrote: This is also true for Perl 5, aside from it using . instead of ~ for concatenation. An error I constantly make. It is indeed a . not a + in Perl 5. Thank you! -- ~~ Computers are like air conditioners. They

Re: JIT?

2017-01-13 Thread ToddAndMargo
On 01/13/2017 05:18 AM, Steve Mynott wrote: The most important difference is that the JIT version is 64 bit and the "no JIT" is 32 bit. So if you are running a modern Windows you almost certainly want the 64 bit (JIT) version Also the JIT version is a more recent version. S I missed that

Re: panda's port?

2017-01-13 Thread ToddAndMargo
On 01/13/2017 05:09 PM, ToddAndMargo wrote: Hi All, Anyone know what port and protocol (tcp, udp) panda uses to install modules? Many thanks, -T Figured it out. It is using "git" or port 9418 tcp. -- ~~ Computers are like air conditioners. They

panda install error

2017-01-13 Thread ToddAndMargo
Hi All, How do I fix this? Many thanks, -T # /usr/share/perl6/site/bin/panda install Net::FTP ==> Fetching Net::FTP ==> Building Net::FTP ==> Testing Net::FTP t/01-load.t . ok t/02-login.t ok t/03-directory.t ok t/04-list.t . ok # Failed test 'Get file

Re: Need dynamic variables help

2017-01-13 Thread Brandon Allbery
On Fri, Jan 13, 2017 at 4:33 AM, Todd Chester wrote: > Will "~" > always replace "+" for this, or only with a dynamic variable? > ~ is always string concatenation; + is never correct for strings unless you want to coerce the string to a number (which is what led to your

Re: Subroutine question

2017-01-13 Thread ToddAndMargo
On 01/13/2017 06:53 PM, Brandon Allbery wrote: On Fri, Jan 13, 2017 at 9:50 PM, ToddAndMargo wrote: Is their example a boo-boo? :$type, # Optional How is this

Re: Any trick to installing a module in Windows?

2017-01-13 Thread ToddAndMargo
On 01/13/2017 07:47 PM, Brandon Allbery wrote: On Fri, Jan 13, 2017 at 10:45 PM, ToddAndMargo wrote: I am trying to install Net::FTP in Windows 7. 

Any trick to installing a module in Windows?

2017-01-13 Thread ToddAndMargo
Hi All, I am trying to install Net::FTP in Windows 7. Panda's install is error city. Any trick to doing this? Many thanks, -T -- ~~ Computers are like air conditioners. They malfunction when you open windows ~~

Subroutine question

2017-01-13 Thread ToddAndMargo
Hi All, I am reading up on subroutines over at: https://en.wikibooks.org/wiki/Perl_6_Programming/Subroutines The above states:    In a subroutine declaration, named parameters must come after    all required and optional positional

Re: Any trick to installing a module in Windows?

2017-01-13 Thread Brandon Allbery
On Fri, Jan 13, 2017 at 10:51 PM, ToddAndMargo wrote: > What ports are panda using other than git? This is not a fault in panda. The Net::FTP module implements the FTP protocol, which runs on TCP ports 20 and 21 --- but in active mode it will attempt to connect back to

Re: Any trick to installing a module in Windows?

2017-01-13 Thread Brandon Allbery
On Fri, Jan 13, 2017 at 10:45 PM, ToddAndMargo wrote: > I am trying to install Net::FTP in Windows 7. Panda's install > is error city. > I am guessing you have to either suppress the tests or (perhaps more likely) provide an FTP proxy of some kind, based on the errors

Re: Subroutine question

2017-01-13 Thread Brandon Allbery
On Fri, Jan 13, 2017 at 9:50 PM, ToddAndMargo wrote: > Is their example a boo-boo? > :$type, # Optional > > How is this "optional" when "!" is the default? > > You misunderstood that section: it is the default only for positional parameters. -- brandon s allbery

Re: Subroutine question

2017-01-13 Thread Brandon Allbery
On Fri, Jan 13, 2017 at 10:32 PM, ToddAndMargo wrote: > I almost understand what you said. What do you/they mean by > "positional parameters"? > foo(1, 5, :bar) 1 and 5 are positional: what they represent can only be determined by knowing their position in the parameter

Re: Need dynamic variables help

2017-01-13 Thread Fernando Santagata
Hi, As Siavash pointed out, the Perl6 concatenation operator is '~'. On Fri, Jan 13, 2017 at 10:33 AM, Todd Chester wrote: > > > On Fri, Jan 13, 2017 at 10:01 AM, Todd Chester > wrote: > >> Hi All, >> >> I am trying to understand how to read

Re: Need dynamic variables help

2017-01-13 Thread Fernando Santagata
Try: print "Perl Version = " ~ $*PERL ~ "\n"; or better: say "Perl Version = $*PERL"; OTH On Fri, Jan 13, 2017 at 10:01 AM, Todd Chester wrote: > Hi All, > > I am trying to understand how to read variables from the > shell's environment. I am reading this: > >

Re: Need dynamic variables help

2017-01-13 Thread Siavash
Hi, `+` is addition operator: https://docs.perl6.org/routine/$PLUS_SIGN#(Operators)_infix_+ String concatenation operator is `~`: https://docs.perl6.org/routine/$TILDE#(Operators)_infix_~ So you should write: print "Perl Version = " ~ $*PERL ~ "\n"; Or use `say` or `put` to add a newline: say

Need dynamic variables help

2017-01-13 Thread Todd Chester
Hi All, I am trying to understand how to read variables from the shell's environment. I am reading this: https://docs.perl6.org/language/variables#Dynamic_variables #!/usr/bin/perl6 # print "Display = " + %*ENV{'DISPALY'} + "\n"; print "Perl Version = " + $*PERL + "\n"; $ ./env.pl6 Cannot

panda?

2017-01-13 Thread Todd Chester
Hi All, I am using Fedora Core 25. There is no sign of "panda" in the repo (or I don't know what it is called). I need to install Net::FTP. No sign of that in the repos either (or I don't know what it is called either). How do I install Net::FTP? Many thanks, -T

Re: Need dynamic variables help

2017-01-13 Thread Siavash
But in Perl 5 `.` is string concatenation operator, not `+` On 2017-01-13 09:33:10 GMT, Todd Chester wrote: >> >> On Fri, Jan 13, 2017 at 10:01 AM, Todd Chester > > wrote: >> >> Hi All, >> >> I am trying to understand how to read

Re: panda?

2017-01-13 Thread Luca Ferrari
On Fri, Jan 13, 2017 at 10:16 AM, Todd Chester wrote: > Hi All, > > I am using Fedora Core 25. There is no sign of "panda" > in the repo (or I don't know what it is called). I don't know why is not there, but searching panda on

Re: JIT?

2017-01-13 Thread Steve Mynott
The most important difference is that the JIT version is 64 bit and the "no JIT" is 32 bit. So if you are running a modern Windows you almost certainly want the 64 bit (JIT) version Also the JIT version is a more recent version. S

Re: Need dynamic variables help

2017-01-13 Thread Brandon Allbery
On Fri, Jan 13, 2017 at 4:33 AM, Todd Chester wrote: > I was using Perl5's string concatenation That uses ., not +. Quite a few other languages use + though. -- brandon s allbery kf8nh sine nomine associates allber...@gmail.com