Re: question about the multi in method

2020-06-08 Thread ToddAndMargo
On 2020-06-08 08:05, Peter Pentchev wrote: On Mon, Jun 08, 2020 at 10:45:21AM +0100, Richard Hainsworth wrote: Ok Todd, let me have a go at this issue. Thank you, Richard, for your help. I apologize to Todd and to everyone on the list for my outburst in my last e-mail. G'luck, Peter Hi Pe

perl 6 for rhel?

2016-01-10 Thread ToddAndMargo
Hi All, Anyone know if Perl 6 will be available for Red Hat Enterprise Linux 7 any time soon? Many thanks, -T -- ~~ Computers are like air conditioners. They malfunction when you open windows ~~

Re: perl 6 for rhel?

2016-01-10 Thread ToddAndMargo
On 01/10/2016 11:05 PM, Brandon Allbery wrote: On Mon, Jan 11, 2016 at 2:02 AM, ToddAndMargo mailto:toddandma...@zoho.com>> wrote: Anyone know if Perl 6 will be available for Red Hat Enterprise Linux 7 any time soon? That's up to Red Hat. Considering that they refuse to fix

Mooch a regex

2016-01-11 Thread ToddAndMargo
Hi All, Would yo all terribly mind if I ask how to do this Perl 5 regex in Perl 6? (I learn best by example.) if ( $ClickLine =~ /aes256/ and /${BaseTag}/ ) { push ( @WebClickHere, $ClickLine ); if ( $Line =~ m{select id=\"(.*?)[-]} ) { my $VerL

Re: Mooch a regex

2016-01-12 Thread ToddAndMargo
On 01/11/2016 11:24 PM, Tobias Leich wrote: hi, what's in ${BaseTag}? Is it a regex rule or just a plain string? (Because that matters in Perl 6) It is a string and can vary. Would you show me both ways to keep me out of trouble? Am 12.01.2016 um 01:55 schrieb ToddAndMargo: Hi All,

CPAN and LWP::UserAgent question?

2016-01-13 Thread ToddAndMargo
Hi All, I am thinking of starting the transition from Perl 5 to 6. The major CPAN modules I use in Perl 5 are: use Term::ANSIColor qw ( BOLD BLUE RED GREEN RESET ); use Term::ReadKey qw ( ReadKey ReadMode ); use Net::Nslookup qw ( nslookup ); use LWP::UserAgent; use LWP::Protocol qw ( https );

Can I use my Perl5 .pm modules in Perl6?

2016-01-13 Thread ToddAndMargo
Hi All, I have written myself several Perl 5 modules (.pm). Is there a way to call them from Perl6? Or should I must I rewrite them? Many thanks, -T

Re: Mooch a regex

2016-01-13 Thread ToddAndMargo
On 01/12/2016 12:47 PM, Bruce Gray wrote: On Jan 11, 2016, at 6:55 PM, ToddAndMargo wrote: Would yo all terribly mind if I ask how to do this Perl 5 regex in Perl 6? (I learn best by example.) if ( $ClickLine =~ /aes256/ and /${BaseTag}/ ) { push ( @WebClickHere, $ClickLine

Re: Mooch a regex

2016-01-13 Thread ToddAndMargo
t;fo+b.r", then you'd enclose it in angle brackets: if $ClickLine ~~ / aes256 | <$BaseTag> / { # ... This is alled a "regex assertion". Am 12.01.2016 um 20:59 schrieb ToddAndMargo: On 01/11/2016 11:24 PM, Tobias Leich wrote: hi, what's in ${BaseTag}? Is it a regex

Re: Can I use my Perl5 .pm modules in Perl6?

2016-01-13 Thread ToddAndMargo
On 01/13/2016 12:51 PM, David H. Adler wrote: On Wed, Jan 13, 2016 at 12:50:19PM -0800, ToddAndMargo wrote: Hi All, I have written myself several Perl 5 modules (.pm). Is there a way to call them from Perl6? Or should I must I rewrite them? https://doc.perl6.org/language/faq

references and pointers jargon question

2016-01-13 Thread ToddAndMargo
Hi All, Just out of curiosity, is the word "Pointer" a "forbidden" word in Perl 6 correspondences? Will using the two together "Reference Pointer" get me in hot water? -T -- ~~ Computers are like air conditioners. They malfunction when you open windows

Re: references and pointers jargon question

2016-01-13 Thread ToddAndMargo
> On Wed, Jan 13, 2016 at 5:36 PM, ToddAndMargo <mailto:toddandma...@zoho.com>> wrote: > > Hi All, > > Just out of curiosity, is the word "Pointer" a "forbidden" word > in Perl 6 correspondences? Will using the two together "Refe

is there a Perl 5 converter?

2016-01-20 Thread ToddAndMargo
or is it all by hand? -- ~~ Computers are like air conditioners. They malfunction when you open windows ~~

Re: perl 6 for rhel?

2016-08-09 Thread ToddAndMargo
On 01/10/2016 11:02 PM, ToddAndMargo wrote: Hi All, Anyone know if Perl 6 will be available for Red Hat Enterprise Linux 7 any time soon? Many thanks, -T Any sign of movement on this at Red Hat? -- ~~ Computers are like air conditioners. They

Red Hat?

2016-08-21 Thread ToddAndMargo
Any sign of support for Perl 6 from Red Hat yet? CentOS, Fedora? -- ~~ Computers are like air conditioners. They malfunction when you open windows ~~

lwp. Where are the directions?

2016-08-21 Thread ToddAndMargo
Hi All, Where are the directions to use http://modules.perl6.org/#q=LWP (I do not have Perl 6 installed yet. I was hoping to find the directions on the web,) Many thanks, -T -- ~~ Computers are like air conditioners. They malfunction when you open windows

perl 5?

2016-11-16 Thread ToddAndMargo
Hi All, Would you guys tolerate a perl 5 question every so often? -T I still do not have perl 6 support on rhel 7.2 -- ~~ Computers are like air conditioners. They malfunction when you open windows ~~

Re: perl 5?

2016-11-17 Thread ToddAndMargo
On 11/16/2016 11:27 PM, Jan Ingvoldstad wrote: On Thu, Nov 17, 2016 at 8:08 AM, ToddAndMargo <toddandma...@zoho.com> wrote: Hi All, Would you guys tolerate a perl 5 question

Re: perl 5?

2016-11-17 Thread ToddAndMargo
On 11/17/2016 08:18 AM, Brandon Allbery wrote: On Thu, Nov 17, 2016 at 2:08 AM, ToddAndMargo <toddandma...@zoho.com> wrote: Would you guys tolerate a perl 5 question every so

Re: perl 5?

2016-11-17 Thread ToddAndMargo
On 11/17/2016 05:34 AM, yary wrote: Addning to Jan's answer, PerlMonks is still a great place for answers on Perl5 topics (and even some Perl6) http://perlmonks.org/ > I still do not have perl 6 suppor

What is rakudo-star?

2016-11-18 Thread ToddAndMargo
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 ~~

Re: What is rakudo-star?

2016-11-18 Thread ToddAndMargo
On Fri, Nov 18, 2016 at 8:54 PM, ToddAndMargo <toddandma...@zoho.com> wrote: Is this the right perl 6 for Fedora? rakudo-star-0.0.2016.07-1.fc24.x86_64.rpm Many thanks,

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

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

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

autodie???

2016-11-20 Thread ToddAndMargo
What does perl-autodie do (RHEL 7)? yum install perl-autodie And why is it necessary to get Perl 6 to work?

Re: autodie???

2016-11-20 Thread ToddAndMargo
On 11/20/2016 07:26 PM, Brandon Allbery wrote: On Sun, Nov 20, 2016 at 10:21 PM, ToddAndMargo <toddandma...@zoho.com> wrote: What does perl-autodie do (

zenity sub

2016-12-01 Thread ToddAndMargo
Hi All, In Perl 6 running on Linux, what would be the best way to get rid of the following system informational pop up (this from a bash script)? I other words, how do I do a window pop up in Perl6 for Linux? zenity --info --title="$0 $ExtraTitle" --text "$InfoText" Many thanks, -T -- ~~~

Re: zenity sub

2016-12-01 Thread ToddAndMargo
Richard On Thursday, December 01, 2016 08:00 PM, ToddAndMargo wrote: Hi All, In Perl 6 running on Linux, what would be the best way to get rid of the following system informational pop up (this from a bash script)? I other words, how do I do a window pop up in Perl6 for Linux? zenity

Re: zenity sub

2016-12-01 Thread ToddAndMargo
On 12/01/2016 05:22 AM, Timo Paulssen wrote: Zenity is already meant to be run by other programs (like shell scripts). Please see these documentation pages for info about how to invoke existing programs: https://docs.perl6.org/syntax/qqx https://docs.perl6.org/language/quoting#Shell_q

Re: zenity sub

2016-12-01 Thread ToddAndMargo
On 12/01/2016 12:19 PM, Timo Paulssen wrote: Surely you could already build a decent zenity-like in Perl 6 using GTK::Simple. But I suggest using qx for calling the zenity binary from your system. - Timo And examples too! :-) https://github.com/perl6/gtk-simple/tree/master/examples Thank

Re: zenity sub

2016-12-01 Thread ToddAndMargo
On 12/01/2016 12:19 PM, Timo Paulssen wrote: But I suggest using qx for calling the zenity binary from your system. Actually, I though it would be good training. Sometimes doing things the hard way teaches you something. -- ~~ Computers are like air conditi

perl 6 on EPEL is getting close!

2016-12-10 Thread ToddAndMargo
EPEL = Extra packages for Enterprise Linux https://bugzilla.redhat.com/show_bug.cgi?id=1297077 --- Comment #8 from Fedora Update System --- rakudo-star-0.0.2016.11-1.el7 has been submitted as an update to Fedora EPEL 7. https://bodhi.fedoraproject.org/updates/FEDORA-EPEL-2016-5483f2

Re: perl 6 on EPEL is getting close!

2016-12-14 Thread ToddAndMargo
On 12/10/2016 11:19 AM, ToddAndMargo wrote: EPEL = Extra packages for Enterprise Linux https://bugzilla.redhat.com/show_bug.cgi?id=1297077 --- Comment #8 from Fedora Update System --- rakudo-star-0.0.2016.11-1.el7 has been submitted as an update to

Re: perl 6 on EPEL is getting close!

2016-12-27 Thread ToddAndMargo
On 12/10/2016 11:19 AM, ToddAndMargo wrote: EPEL = Extra packages for Enterprise Linux https://bugzilla.redhat.com/show_bug.cgi?id=1297077 --- Comment #8 from Fedora Update System --- rakudo-star-0.0.2016.11-1.el7 has been submitted as an update to

Re: serial communication over usb on linux

2017-01-02 Thread ToddAndMargo
On 01/02/2017 03:20 PM, Elizabeth Mattijsen wrote: Inline::Perl5 Hi Liz, Just a question on "Inline". I Perl 5, when passing arrays to a subroutine, I have to convert them to references (unless I only pass a single array and nothing else). When using "Inline", do you have to convert arrays to

JIT?

2017-01-11 Thread ToddAndMargo
Hi All, I was looking for downloading Perl 6 for windows from http://rakudo.org/downloads/star/ rakudo-star-2016.11-x86_64 (JIT).msi rakudo-star-2016.01-x86 (no JIT).msi Supposedly JIT is "Runtime optimization of hot code paths during execution" Don't have a clue what that is. The code I

Re: JIT?

2017-01-11 Thread ToddAndMargo
On 01/11/2017 06:43 PM, yary wrote: You don't need JIT! It's an implementation detail that doesn't affect functionality. In theory it improves speed at which Perl6 code runs. In practice, it won't make a bit of difference with FTP

modules in windows?

2017-01-11 Thread ToddAndMargo
Hi All, In Windows, other than writing for it and having it crash, how do I tell if I have a module installed? I want this one, among others: https://github.com/araraloren/Net-FTP If I don't have the module, how do I install it? Many thanks, -T -- ~~ Comput

Simple windows code example needed

2017-01-11 Thread ToddAndMargo
Hi All, Please forgive me being a mooch here. Would some kind person please write me a simple Windows perl 6 script so that I can see the headers? A simple write "hello" to the screen will suffice. Many thanks, -T -- ~~ Computers are like air conditioners.

perl 6 equivalent of "use warnings"

2017-01-11 Thread ToddAndMargo
Hi All, Is there a perl 6 equivalent of perl 5's "use warnings"? Many thanks, -T

Re: Simple windows code example needed

2017-01-12 Thread ToddAndMargo
On 01/11/2017 09:22 PM, Lloyd Fournier wrote: Ah. If that's the case I have nothing useful to contribute :| LL On Thu, Jan 12, 2017 at 4:15 PM Brandon Allbery wrote:

Re: Simple windows code example needed

2017-01-12 Thread ToddAndMargo
On 01/12/2017 12:02 AM, ToddAndMargo wrote: What do you replace in Windows? #!/usr/bin/perl6 Oh I get it. There is no "#!/usr/bin/perl6" utility in Windows. You just do it the long way: perl6 my_program.pl -- ~~ Computers ar

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: 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 mal

Re: Need dynamic variables help

2017-01-13 Thread ToddAndMargo
On 2017-01-13 09:01:32 GMT, Todd Chester wrote: 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

panda's port?

2017-01-13 Thread ToddAndMargo
Hi All, Anyone know what port and protocol (tcp, udp) panda uses to install modules? Many thanks, -T -- ~~ Computers are like air conditioners. They malfunction when you open windows ~~

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 conditio

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 stor.txt

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 paramete

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 <toddandma...@zoho.com> wrote: Is their example a boo-boo? :$type, # Optional How i

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 ~~

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 <toddandma...@zoho.com> wrote: I am trying to install Net::FTP in Win

Fedora and Modules

2017-01-14 Thread ToddAndMargo
Hi All, Fedora's Rakudo Star now comes without the modules or panda. https://bugzilla.redhat.com/show_bug.cgi?id=1410159 They were removed as of v7. Makes Perl 6 pretty useless. Tears, -T -- ~~ Computers are like air conditioners. They malfunction when you

Re: Any trick to installing a module in Windows?

2017-01-14 Thread ToddAndMargo
On 01/13/2017 08:15 PM, Brandon Allbery wrote: On Fri, Jan 13, 2017 at 10:51 PM, ToddAndMargo <toddandma...@zoho.com> wrote: What ports are panda using other th

Re: Any trick to installing a module in Windows?

2017-01-14 Thread ToddAndMargo
On 01/13/2017 07:45 PM, ToddAndMargo wrote: 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 By any chance, do I need to install a compiler first? GCC? -- ~~ Computer

Re: panda install error

2017-01-14 Thread ToddAndMargo
On 01/13/2017 05:28 PM, ToddAndMargo wrote: 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/

Re: Any trick to installing a module in Windows?

2017-01-14 Thread ToddAndMargo
On 01/14/2017 02:31 PM, ToddAndMargo wrote: On 01/13/2017 07:45 PM, ToddAndMargo wrote: 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 By any chance, do I need to install a compiler first? GCC? Foll

dry run?

2017-01-14 Thread ToddAndMargo
Hi All, Is there a Perl 6 equivalent of Perl 5's   Perl -c I want to check my program for errors without actually running it. Many thanks, -T What me forget my semicolons!  Never !!!  Okay, maybe every oth

Re: dry run?

2017-01-15 Thread ToddAndMargo
On 01/15/2017 02:32 AM, Richard Hainsworth wrote: Is your Perl (cap P) below correct? Typo Thank you! One of the problems with google and Perl 6 is that you get buried with Perl 5 hits -- ~~ Computers are like air conditioners. They malfunction when you ope

Re: dry run?

2017-01-15 Thread ToddAndMargo
On 01/15/2017 10:39 AM, Brandon Allbery wrote: On Sun, Jan 15, 2017 at 5:32 AM, Richard Hainsworth wrote: Is your Perl (cap P) below correct?

Re: dry run?

2017-01-17 Thread ToddAndMargo
On 01/17/2017 04:56 AM, Luca Ferrari wrote: On Sun, Jan 15, 2017 at 10:36 PM, ToddAndMargo wrote: One of the problems with google and Perl 6 is that you get buried with Perl 5 hits In the mantime builtin documentation can help save the day: % perl6 --help [...] -c check

inline question

2017-01-17 Thread ToddAndMargo
Hi All, Does Perl 5 have to be installed to get Inline work? Or just a path to the downloaded perl5 module(s)? Many thanks, -T -- ~~ Computers are like air conditioners. They malfunction when you open windows ~~

Re: inline question

2017-01-17 Thread ToddAndMargo
On 01/17/2017 09:50 AM, Brandon Allbery wrote: Inline::Perl5 loads Perl 5 with hooks, so yes, it must be installed. Bummer. Thank you for the help! -- ~~ Computers are like ai

Can I call myself

2017-02-04 Thread ToddAndMargo
Hi All, Just out of curiosity, in Perl 6 can a subroutine call itself? -T I am fighting with a broken Net:FTP::rmdir in Perl 5 that will not recuse as advertised (it is very intermittent). And I can not use Net::Ftp in Perl 6 as it is hosed and so is the Inline. And it seems that Perl 5 does

Re: Can I call myself

2017-02-04 Thread ToddAndMargo
On 2017-02-04 12:34 AM, ToddAndMargo wrote: Hi All, Just out of curiosity, in Perl 6 can a subroutine call itself? -T I am fighting with a broken Net:FTP::rmdir in Perl 5 that will not recuse as advertised (it is very intermittent). And I can not use Net::Ftp in Perl 6 as it is hosed and

Re: Can I call myself

2017-02-04 Thread ToddAndMargo
On 02/04/2017 01:09 AM, Brent Laabs wrote: I think you're looking for &?ROUTINE. &?BLOCK is also related. https://docs.perl6.org/language/variables#index-entry-%26%3FROUTINE Hi Brent, Awesome reference on variables! Thank you! (I copied it down.) -T -- ~~~ Havi

Re: Can I call myself

2017-02-06 Thread ToddAndMargo
On 02/06/2017 08:32 AM, Larry Wall wrote: On Sat, Feb 04, 2017 at 08:39:52PM -0800, ToddAndMargo wrote: : Are there any special rules, like in Perl 5? Do I need to : pre-declare the sub? : : sub BummerDude ($); : sub BummerDude ($) { do something; } For normal subs, you never have to predeclare

smtp question

2017-02-09 Thread ToddAndMargo
Hi All, I am starting a program (run from crontab) to test some things and eMail diagnostics to me. I am looking at https://github.com/retupmoca/P6-Net-SMTP I pretty much understand everything, but send($from, $to, $messag

Re: smtp question

2017-02-09 Thread ToddAndMargo
On 02/09/2017 08:51 PM, Brandon Allbery wrote: On Thu, Feb 9, 2017 at 11:41 PM, ToddAndMargo <toddandma...@zoho.com> wrote: I am looking at https://github.com/retupmoca/

per 5 converter?

2017-02-11 Thread ToddAndMargo
Hi All, I know I asked this once before and I had though I'd written it down, but do you have any favorite Perl5 to Per6 converters? Many thanks, -T -- ~~ Computers are like air conditioners. They malfunction when you open windows

Re: per 5 converter?

2017-02-12 Thread ToddAndMargo
On 02/12/2017 06:34 AM, Moritz Lenz wrote: Hi, What's the use case for converting Perl 5 to Perl 6 automatically? If you want to use Perl 5 code from within your Perl 6 code, you can do that through Inline::Perl5. But automatic translation (if it works at all) typically doesn't produce good or

Re: per 5 converter?

2017-02-12 Thread ToddAndMargo
On 02/12/2017 05:00 PM, yary wrote: There's Rosetta Code to compare short programs in different languages. Not as handy as what you are asking for, still it is educational To try it out I started at http://rosettacode.org/wiki/Category:Perl_6 to find all the pages that have P6 examples. I chos

Re: per 5 converter?

2017-02-12 Thread ToddAndMargo
On 02/12/2017 05:02 PM, Brandon Allbery wrote: On Sun, Feb 12, 2017 at 7:48 PM, ToddAndMargo <toddandma...@zoho.com> wrote: The case is, if I can't figure out the syn

Re: per 5 converter?

2017-02-13 Thread ToddAndMargo
On 02/12/2017 05:12 PM, Darren Duncan wrote: On 2017-02-12 5:08 PM, ToddAndMargo wrote: I presume my eyes would tell where I made the boo-boo. Lets hope! I am real tired of Perl 5's stone age subs declarations. @_, oh brother. In principle there is nothing wrong with @_ at least fro

Re: per 5 converter?

2017-02-13 Thread ToddAndMargo
On 02/13/2017 12:55 PM, Darren Duncan wrote: I think the important thing is having choice. Declaring parameters in terms of named variables is normal and important, but when one does that it would still be ideal to get a single extra variable that has all the arguments in it as components, f

Re: per 5 converter?

2017-02-13 Thread ToddAndMargo
On 02/13/2017 02:23 PM, ToddAndMargo wrote: naming and commending oopscommenting -- ~~ Computers are like air conditioners. They malfunction when you open windows ~~

clipboard and ps questions?

2017-02-17 Thread ToddAndMargo
Hi All, rakudo-star-0.0.2016.11-1.el7.x86_64 (Linux) Two questions about substitutes for system calls: 1) Is there a reliably Perl 6 way to copy things to the clipboard? (Perl 5 has a module, but it is unreliable and I have to make a system call.) 2) Is there a way to get a list of

sub for die?

2017-02-17 Thread ToddAndMargo
Hi All, $ cat die.pl6 #!/usr/bin/perl6 use strict; # use warnings; # use lib; # fill name of lib in die "Curses on you!"; $ die.pl6 Curses on you! in block at ./die.pl6 line 7 What is the best way to exit, like "die", without the commentary "in block " from the "die" command? I jus

what is ".perl"?

2017-02-17 Thread ToddAndMargo
Hi All, What is the difference between these two commands and why would you use ".perl"? say "$ServiceName"; say $ServiceName.perl; Many thanks, -T -- ~~ Computers are like air conditioners. They malfunction when you open windows

reverse of .lines?

2017-02-17 Thread ToddAndMargo
Hi All, Is there a reverse of .lines? Original code: @SystemCtl = qx ( systemctl -la ).lines; I presume this is the same as the original code: @Lines = $StringFullOfLineFeeds.lines; Would the reverse be sometime like this? $StringFullOfLineFeeds = @Lines.reverselines; Many thanks, -T --

Re: what is ".perl"?

2017-02-17 Thread ToddAndMargo
On 02/17/2017 06:51 PM, Brandon Allbery wrote: On Fri, Feb 17, 2017 at 9:47 PM, ToddAndMargo mailto:toddandma...@zoho.com>> wrote: What is the difference between these two commands and why would you use ".perl"? say "$ServiceName"; say $ServiceN

Re: reverse of .lines?

2017-02-17 Thread ToddAndMargo
On 02/17/2017 07:26 PM, yary wrote: On Fri, Feb 17, 2017 at 9:52 PM, ToddAndMargo mailto:toddandma...@zoho.com>> wrote: @Lines = $StringFullOfLineFeeds.lines @Lines = $StringFullOfLineFeeds.lines.reverse -y Thank you! -- ~~ Computers are li

Re: reverse of .lines?

2017-02-17 Thread ToddAndMargo
On 02/17/2017 07:44 PM, yary wrote: my $StringReversedLines = $StringFullOfLineFeeds.lines.reverse.join("\n") or my $StringReversedLines = $StringFullOfLineFeeds.split("\n",:v).reverse.join **//___^ Cool. I was wondering how to put the line feed back in! -- ~~~ Havi

net::SMTP in rpm land?

2017-02-17 Thread ToddAndMargo
Hi All, Before I go using Panda and lose my revision control, does anyone know what Net::SMTP is called in RPM land? $ yum --enablerepo=* whatprovides */net-smtp Many thanks, -T -- ~~~ Serious error. All shortcuts have disappeared. Screen. Mind. Both are blank. ~~~

intercept STDERR

2017-02-17 Thread ToddAndMargo
Hi All, In Net::SMTP, we have: $debug when set to a true value, will print the SMTP traffic to stderr. Is there an easy way to intercept this so I can analyze if the mail went through properly? Many thanks, -T -- ~~ Computers are like air conditio

cifs control

2017-02-17 Thread ToddAndMargo
Hi All, Sorry for the 1000 questions today, but I have anb entire week to think them up. And I have another one. In Windows, I am noticing that Cobian Backup and Windows Explorer (not Internet Explorer) can tool around CIFS (Windows) shares based on the IP (not the drive letter). Can I do this

Re: reverse of .lines?

2017-02-17 Thread ToddAndMargo
On 02/17/2017 07:44 PM, yary wrote: Oh, then chain join on the end: my $StringReversedLines = $StringFullOfLineFeeds.lines.reverse.join("\n") or my $StringReversedLines = $StringFullOfLineFeeds.split("\n",:v).reverse.join **//___^ Hmmm. I wanted to recreate the array, not reverse the line.

Re: sub for die?

2017-02-17 Thread ToddAndMargo
On 02/17/2017 06:43 PM, ToddAndMargo wrote: Hi All, $ cat die.pl6 #!/usr/bin/perl6 use strict; # use warnings; # use lib; # fill name of lib in die "Curses on you!"; $ die.pl6 Curses on you! in block at ./die.pl6 line 7 What is the best way to exit, like "die", wi

Re: sub for die?

2017-02-18 Thread ToddAndMargo
On 02/18/2017 03:30 AM, Timo Paulssen wrote: It is usually considered The Right Thing to output error messages to stderr instead of stdout; you can use "note" to output to stderr (and it'll also put a newline at the end for you, which print doesn't do). True. Thank you -- ~~~

Re: net::SMTP in rpm land?

2017-02-18 Thread ToddAndMargo
On 02/18/2017 03:51 AM, Timo Paulssen wrote: Almost no linux distros package perl6 modules for their native package manager yet. The only distro i know of that has any kind of perl6 module packaging at all is archlinux: https://aur.archlinux.org/packages/?O=0&K=perl6 You need to use panda

Re: cifs control

2017-02-18 Thread ToddAndMargo
On 02/18/2017 06:16 AM, yary wrote: If your code will be running on Windows, then you should be able to use Perl6's native filesystem calls with UNC paths, and those can take IP addresses instead of host names eg. \\192.168.1.154\C$\Users\MiniMe\Documents Cool. Thank you! -- ~~~

need {} help

2017-02-18 Thread ToddAndMargo
Hi All, I need to figure out how to use {} is substitutes. I got the // down, now I need to learn {}. I am trying to get away from the \/\/\\/\/\/\\/ nightmare. #!/usr/bin/perl6 print "FILE = <$?FILE>\n"; (my $IAm =~ $?FILE ) ~~ s/.*\///; print "IAm = <$IAm>\n"; (my $IAm2 =~ $?FILE ) ~

Re: need {} help

2017-02-18 Thread ToddAndMargo
On 02/18/2017 04:47 PM, Timo Paulssen wrote: / doesn't have a meaning in regex, but it's not an alpha character, so if you want to "match literally" it "must be quoted" as the first error message tells you. On top of that, balanced characters like () and {} aren't allowed for the s/// form (only

print to STDERR problem

2017-02-18 Thread ToddAndMargo
Hi All, I am having issues writing to STDERR. I am using this as a reference: https://perl6.org/archive/rfc/30.html The p52p6 translator needs to be able to spot instances of barewords and globs and translate them to scalars: print STDERR @foo; -> pri

Re: sub for die?

2017-02-18 Thread ToddAndMargo
On 02/17/2017 06:43 PM, ToddAndMargo wrote: Hi All, $ cat die.pl6 #!/usr/bin/perl6 use strict; # use warnings; # use lib; # fill name of lib in die "Curses on you!"; $ die.pl6 Curses on you! in block at ./die.pl6 line 7 What is the best way to exit, like "die", wi

Re: print to STDERR problem

2017-02-18 Thread ToddAndMargo
On 02/18/2017 07:35 PM, Brandon Allbery wrote: On Sat, Feb 18, 2017 at 10:33 PM, ToddAndMargo mailto:toddandma...@zoho.com>> wrote: am having issues writing to STDERR. I am using this as a reference: https://perl6.org/archive/rfc/30.html <https://perl6.org/archi

Re: print to STDERR problem

2017-02-19 Thread ToddAndMargo
On 02/19/2017 07:15 AM, Timo Paulssen wrote: Oh, another question: please tell us how you reached that site? I expect you did a google search or something; can you tell us what search terms you've used to get there? We should obviously improve the docs so that they get found instead of the archi

Re: clipboard and ps questions?

2017-02-23 Thread ToddAndMargo
On 02/17/2017 06:38 PM, ToddAndMargo wrote: Hi All, rakudo-star-0.0.2016.11-1.el7.x86_64 (Linux) Two questions about substitutes for system calls: 1) Is there a reliably Perl 6 way to copy things to the clipboard? (Perl 5 has a module, but it is unreliable and I have to make a

Re: clipboard and ps questions?

2017-02-23 Thread ToddAndMargo
On 02/23/2017 06:08 PM, yary wrote: On Thu, Feb 23, 2017 at 7:09 PM, ToddAndMargo mailto:toddandma...@zoho.com>> wrote: But ... it calls xclip (Linux), pbcopy (OS X), or clip (Windows), so you might as well call these programs directly with qx or qqx rather than having to use

  1   2   3   4   5   6   7   8   9   10   >