Re: Perl 6 for system-wide use: best practice?

2016-02-23 Thread Paul Cochrane
Hi Tom, On Mon, Feb 22, 2016 at 01:50:50PM -0600, Tom Browder wrote: > What is recommended for installing Perl 6 for system-wide use? if you are running a Debian-based system, you could try installing the Debian Rakudo package from either the "stretch (testing)" or "sid (unstable)" suite. It is

Re: How to do a substring replacement in Perl 6

2015-06-09 Thread Paul Cochrane
> > Hi all! > > > > From http://perldoc.perl.org/functions/substr.html: > > > > substr has a 4th argument (or you can use substr as an lvalue) for > > replacement. > > substr EXPR,OFFSET,LENGTH,REPLACEMENT > > > > From http://doc.perl6.org/routine/substr I don't see any way to do a > > replace

Re: How to do a substring replacement in Perl 6

2015-06-08 Thread Paul Cochrane
Hi Douglas, > From http://perldoc.perl.org/functions/substr.html: > > substr has a 4th argument (or you can use substr as an lvalue) for > replacement. > substr EXPR,OFFSET,LENGTH,REPLACEMENT > > From http://doc.perl6.org/routine/substr I don't see any way to do a > replacement. What is the idio

Re: Perl 5's $0 vs. Perl 6's $*EXECUTABLE_NAME

2015-05-30 Thread Paul Cochrane
Hi Tom, On Sat, May 30, 2015 at 09:03:17AM -0500, Tom Browder wrote: > On Sat, May 30, 2015 at 8:30 AM, Tobias Leich wrote: > > Please also take a look at $*EXECUTABLE, $*PROGRAM and $*PROGRAM_NAME. > > Tobias, I didn't find $*PROGRAM in the doc listed by Paul: > > http://doc.perl6.org/langua

Re: Perl 5's $0 vs. Perl 6's $*EXECUTABLE_NAME

2015-05-30 Thread Paul Cochrane
On 30 May 2015 3:00:25 pm GMT+02:00, Tom Browder wrote: >I finally found the Perl 6 version of Perl 5's $0 listed in: > > tablets.perl6.org/appendix-b-grouped.html#special-variables > >as '$*EXECUTABLE_NAME', and I expected it to act the same as $0 in >Perl 6, but I have two problems with it: > >

Re: Is there an equivalent env var to PERL5LIB for Perl 6 module locations?

2015-03-31 Thread Paul Cochrane
On Tue, Mar 31, 2015 at 05:40:44AM -0500, Tom Browder wrote: > On Mon, Mar 30, 2015 at 7:35 PM, Rob Hoelz wrote: > > Yup, PERL6LIB. =) > > And how did you find out about it, i.e., where is it documented? http://doc.perl6.org/language/5to6#Environment_variables to be honest I cheated and have wr

Re: Example module and its use

2015-03-28 Thread Paul Cochrane
Hi Tom, > use Bar :DEFAULT; > > but this does not: > > use Bar ; > > So is S11 in error!! That might not necessarily be the case (however S11 certainly isn't clear about exactly how to import selected routines while `use`-ing a module). All subs/methods that are marked with `is export` are

Re: Trig Functions "to-radians" and "from-radians"

2015-03-17 Thread Paul Cochrane
Hi Tom, On Tue, Mar 17, 2015 at 12:52:42PM -0500, Tom Browder wrote: > Those two functions are documented here: > > http://design.perl6.org/S32/Numeric.html#Trigonometric_functions > > but I have tried to use them with no luck: > > say 10.to-radians(Degrees); > > Undeclared name: > Degre