perl.perl6.users http://www.nntp.perl.org/group/perl.perl6.users/ ... Copyright 1998-2017 perl.org Fri, 24 Feb 2017 20:48:39 +0000 ask@perl.org Re: I am having trouble installing panda by Timo Paulssen Hey Todd,<br/><br/>&gt; Net::SMTP (doesn&#39;t support SSL, but others do) <br/>&gt; $ zef --force install &gt; Net::SMTP<br/>Are you sure that&#39;s the case? i definitely see SSL-related verbiage in<br/>Net::SMTP&#39;s Readme. The simple interface offers an &quot;ssl&quot; and a<br/>&quot;starttls&quot; flag in its &quot;new&quot; method, and the raw interface has<br/>&quot;switch-to-ssl()&quot; and &quot;starttls()&quot; methods.<br/><br/>HTH<br/> - Timo http://www.nntp.perl.org/group/perl.perl6.users/2017/02/msg3278.html Fri, 24 Feb 2017 19:51:28 +0000 Re: Where is "Subject"? by Brandon Allbery On Fri, Feb 24, 2017 at 2:50 AM, Luca Ferrari &lt;fluca1978@infinito.it&gt; wrote:<br/><br/>&gt; On Fri, Feb 24, 2017 at 7:51 AM, ToddAndMargo &lt;ToddAndMargo@zoho.com&gt;<br/>&gt; wrote:<br/>&gt; &gt; Am I blind or is there nowhere to set the subject of an eMail<br/>&gt; &gt; in Net::SMTP?<br/>&gt;<br/>&gt; I suspect it is implementing a quite low-level interface: smtp does<br/>&gt; not know anything about a subject, it simply sends it as a line<br/>&gt; &quot;Subject: foo bar&quot;<br/>&gt; followed by an empty line a your message body. In other words: the<br/>&gt; subject is in the payload before your message content.<br/>&gt;<br/><br/>Same thing as when you asked about attaching files; I think I mentioned at<br/>the time it also didn&#39;t include headers. Subject: is probably the most<br/>important header --- although many mail systems will reject it if it also<br/>doesn&#39;t have From: and preferably Date: and Message-Id:.<br/><br/>You might poke around to see if there is a module that implements at least<br/>RFC822 and preferably RFC2422 to build a proper message.<br/><br/>-- <br/>brandon s allbery kf8nh sine nomine associates<br/>allbery.b@gmail.com ballbery@sinenomine.net<br/>unix, openafs, kerberos, infrastructure, xmonad http://sinenomine.net http://www.nntp.perl.org/group/perl.perl6.users/2017/02/msg3277.html Fri, 24 Feb 2017 17:01:25 +0000 Re: Where is "Subject"? by Luca Ferrari Seems to me it has to work, but I would suggest a couple of little<br/>changes to make the source code more readable (see below):<br/><br/>On Fri, Feb 24, 2017 at 9:15 AM, ToddAndMargo &lt;ToddAndMargo@zoho.com&gt; wrote:<br/>&gt; for @Report -&gt; $Line { $StringFullOfLineFeeds .= ( &quot;$Line&quot; ~ &quot;\n&quot; ); }<br/><br/>here I would use join, much simpler than a for-string-concatenation<br/><br/>&gt; &quot;$Subject$StringFullOfLineFeeds);<br/><br/>here I would use explicit string concatenation to make it clearer you<br/>are using two variables on the same line. Don&#39;t you miss a double<br/>tick?<br/><br/>Luca<br/> http://www.nntp.perl.org/group/perl.perl6.users/2017/02/msg3276.html Fri, 24 Feb 2017 12:06:05 +0000 Re: I am having trouble installing panda by ToddAndMargo On 02/23/2017 10:41 PM, ToddAndMargo wrote:<br/>&gt; Hi All,<br/>&gt;<br/>&gt; I am having trouble installing &quot;panda&quot; on Fedora Code 25.<br/>&gt;<br/>&gt; $ perl6 -v<br/>&gt; This is Rakudo version 2016.11 built on MoarVM version 2016.11<br/>&gt; implementing Perl 6.c.<br/>&gt;<br/>&gt; What is going on?<br/>&gt;<br/>&gt; Many thanks,<br/>&gt; -T<br/>&gt;<br/>&gt;<br/>&gt; $ git clone --recursive http://github.com/tadzik/panda.git<br/>&gt; $ cd panda<br/>&gt;<br/>&gt;<br/>&gt; # perl6 bootstrap.pl<br/>&gt; ==&gt; Bootstrapping Panda<br/>&gt; ==&gt; Installing panda from a local directory &#39;/home/linuxutil/panda&#39;<br/>&gt; ==&gt; panda depends on File::Find, Shell::Command, JSON::Fast, File::Which<br/>&gt; ==&gt; Shell::Command depends on File::Find<br/>&gt; ==&gt; Fetching File::Find<br/>&gt; ==&gt; Building File::Find<br/>&gt; ==&gt; Testing File::Find<br/>&gt; Unhandled exception: Failed to write to filehandle: NULL string given<br/>&gt; at gen/moar/stage2/NQPHLL.nqp:1562<br/>&gt; (/usr/share/nqp/lib/NQPHLL.moarvm:command_eval)<br/>&gt; from src/Perl6/Compiler.nqp:27<br/>&gt; (/usr/share/nqp/lib/Perl6/Compiler.moarvm:command_eval)<br/>&gt; from gen/moar/stage2/NQPHLL.nqp:1508<br/>&gt; (/usr/share/nqp/lib/NQPHLL.moarvm:command_line)<br/>&gt; from gen/moar/m-main.nqp:46 (/usr/share/perl6/runtime/perl6.moarvm:MAIN)<br/>&gt; from gen/moar/m-main.nqp:37<br/>&gt; (/usr/share/perl6/runtime/perl6.moarvm:&lt;mainline&gt;)<br/>&gt; from &lt;unknown&gt;:1 (/usr/share/perl6/runtime/perl6.moarvm:&lt;main&gt;)<br/>&gt; from &lt;unknown&gt;:1 (/usr/share/perl6/runtime/perl6.moarvm:&lt;entry&gt;)<br/>&gt; The spawned command &#39;/usr/bin/perl6&#39; exited unsuccessfully (exit code: 1)<br/>&gt; in sub MAIN at bootstrap.pl line 68<br/>&gt; in block &lt;unit&gt; at bootstrap.pl line 9<br/>&gt;<br/>&gt;<br/>&gt;<br/><br/><br/>The guys on the chat line had me switch to zef. It works<br/>very well<br/><br/>Here are my notes:<br/><br/> zef (module installer)<br/> $ git clone https://github.com/ugexe/zef.git<br/> $ cd zef<br/> $ perl6 -Ilib bin/zef install .<br/><br/> # vi /etc/profile<br/> and add the following after the last &quot;pathmunge&quot; but<br/> BEFORE the &quot;export&quot; line:<br/> pathmunge /usr/share/perl6/site/bin<br/><br/> Net::SMTP (doesn&#39;t support SSL, but others do)<br/> $ zef --force install Net::SMTP<br/><br/><br/>-- <br/>~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~<br/>Computers are like air conditioners.<br/>They malfunction when you open windows<br/>~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~<br/> http://www.nntp.perl.org/group/perl.perl6.users/2017/02/msg3275.html Fri, 24 Feb 2017 09:22:04 +0000 Re: Where is "Subject"? by ToddAndMargo On 02/23/2017 11:50 PM, Luca Ferrari wrote:<br/>&gt; On Fri, Feb 24, 2017 at 7:51 AM, ToddAndMargo &lt;ToddAndMargo@zoho.com&gt; wrote:<br/>&gt;&gt; Hi All,<br/>&gt;&gt;<br/>&gt;&gt; Am I blind or is there nowhere to set the subject of an eMail<br/>&gt;&gt; in Net::SMTP?<br/>&gt;<br/>&gt; I suspect it is implementing a quite low-level interface: smtp does<br/>&gt; not know anything about a subject, it simply sends it as a line<br/>&gt; &quot;Subject: foo bar&quot;<br/>&gt; followed by an empty line a your message body. In other words: the<br/>&gt; subject is in the payload before your message content.<br/>&gt;<br/>&gt; Luca<br/>&gt;<br/><br/><br/>Hi Luca,<br/><br/>Thank you!<br/><br/>-T<br/><br/>This is what I will try if I can ever get<br/>Net::SMTP to install:<br/><br/>&lt;code&gt;<br/>sub eMailReport ( $message ) {<br/> # Reference: https://github.com/retupmoca/P6-Net-SMTP<br/><br/> my $Subject = &quot;Subject: $IAm ERROR(s) = $ErrorCount\n\n&quot;;<br/><br/> if $ErrorCount eq 0 { AddToReport ( &quot;Completed without errors\n&quot; ); }<br/> else { AddToReport ( &quot;Completed with $ErrorCount errors\n&quot; ); }<br/><br/> my $StringFullOfLineFeeds;<br/> for @Report -&gt; $Line { $StringFullOfLineFeeds .= ( &quot;$Line&quot; ~ &quot;\n&quot; ); }<br/><br/> my $client = Net::SMTP.new(:server(&quot;smtpout.secureserver.net&quot;), <br/>:port(3535), :debug);<br/> $client.auth( &quot;pci@storall.biz&quot;, &quot;admin&quot;);<br/> $client.send(&quot;pci@storall.biz&quot;, &quot;pci@storall.biz,tmewell@zoho.com&quot;,<br/> &quot;$Subject$StringFullOfLineFeeds);<br/> $client.quit;<br/>}<br/>&lt;/code&gt;<br/><br/><br/>-- <br/>~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~<br/>Computers are like air conditioners.<br/>They malfunction when you open windows<br/>~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~<br/> http://www.nntp.perl.org/group/perl.perl6.users/2017/02/msg3274.html Fri, 24 Feb 2017 08:15:56 +0000 Re: Where is "Subject"? by Luca Ferrari On Fri, Feb 24, 2017 at 7:51 AM, ToddAndMargo &lt;ToddAndMargo@zoho.com&gt; wrote:<br/>&gt; Hi All,<br/>&gt;<br/>&gt; Am I blind or is there nowhere to set the subject of an eMail<br/>&gt; in Net::SMTP?<br/><br/>I suspect it is implementing a quite low-level interface: smtp does<br/>not know anything about a subject, it simply sends it as a line<br/>&quot;Subject: foo bar&quot;<br/>followed by an empty line a your message body. In other words: the<br/>subject is in the payload before your message content.<br/><br/>Luca<br/> http://www.nntp.perl.org/group/perl.perl6.users/2017/02/msg3273.html Fri, 24 Feb 2017 07:50:54 +0000 Re: Where is "Subject"? by Moritz Lenz Hi,<br/><br/>On 24.02.2017 07:51, ToddAndMargo wrote:<br/>&gt; Am I blind or is there nowhere to set the subject of an eMail<br/>&gt; in Net::SMTP?<br/>&gt; <br/>&gt; https://github.com/retupmoca/P6-Net-SMTP<br/><br/>You&#39;re not blind, just thinking at the wrong level. Net::SMTP expects<br/>you to have an email string that contains both the headers and the body<br/>($email in the README), and the subject is part of the headers.<br/><br/>The only reason that $from and @to have a separate interface is that<br/>SMTP handles them separately.<br/><br/>Cheers,<br/>Moritz<br/><br/><br/>-- <br/>Moritz Lenz<br/>https://deploybook.com/ -- https://perlgeek.de/ -- https://perl6.org/<br/> http://www.nntp.perl.org/group/perl.perl6.users/2017/02/msg3272.html Fri, 24 Feb 2017 07:46:02 +0000 Where is "Subject"? by ToddAndMargo Hi All,<br/><br/>Am I blind or is there nowhere to set the subject of an eMail<br/>in Net::SMTP?<br/><br/>https://github.com/retupmoca/P6-Net-SMTP<br/><br/><br/>Many thanks,<br/>-T<br/><br/>-- <br/>~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~<br/>Serious error.<br/>All shortcuts have disappeared.<br/>Screen. Mind. Both are blank.<br/>~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~<br/> http://www.nntp.perl.org/group/perl.perl6.users/2017/02/msg3271.html Fri, 24 Feb 2017 06:51:56 +0000 I am having trouble installing panda by ToddAndMargo Hi All,<br/><br/>I am having trouble installing &quot;panda&quot; on Fedora Code 25.<br/><br/>$ perl6 -v<br/>This is Rakudo version 2016.11 built on MoarVM version 2016.11<br/>implementing Perl 6.c.<br/><br/>What is going on?<br/><br/>Many thanks,<br/>-T<br/><br/><br/>$ git clone --recursive http://github.com/tadzik/panda.git<br/>$ cd panda<br/><br/><br/># perl6 bootstrap.pl<br/>==&gt; Bootstrapping Panda<br/>==&gt; Installing panda from a local directory &#39;/home/linuxutil/panda&#39;<br/>==&gt; panda depends on File::Find, Shell::Command, JSON::Fast, File::Which<br/>==&gt; Shell::Command depends on File::Find<br/>==&gt; Fetching File::Find<br/>==&gt; Building File::Find<br/>==&gt; Testing File::Find<br/>Unhandled exception: Failed to write to filehandle: NULL string given<br/> at gen/moar/stage2/NQPHLL.nqp:1562 <br/>(/usr/share/nqp/lib/NQPHLL.moarvm:command_eval)<br/> from src/Perl6/Compiler.nqp:27 <br/>(/usr/share/nqp/lib/Perl6/Compiler.moarvm:command_eval)<br/> from gen/moar/stage2/NQPHLL.nqp:1508 <br/>(/usr/share/nqp/lib/NQPHLL.moarvm:command_line)<br/> from gen/moar/m-main.nqp:46 (/usr/share/perl6/runtime/perl6.moarvm:MAIN)<br/> from gen/moar/m-main.nqp:37 <br/>(/usr/share/perl6/runtime/perl6.moarvm:&lt;mainline&gt;)<br/> from &lt;unknown&gt;:1 (/usr/share/perl6/runtime/perl6.moarvm:&lt;main&gt;)<br/> from &lt;unknown&gt;:1 (/usr/share/perl6/runtime/perl6.moarvm:&lt;entry&gt;)<br/>The spawned command &#39;/usr/bin/perl6&#39; exited unsuccessfully (exit code: 1)<br/> in sub MAIN at bootstrap.pl line 68<br/> in block &lt;unit&gt; at bootstrap.pl line 9<br/><br/><br/><br/>-- <br/>~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~<br/>Computers are like air conditioners.<br/>They malfunction when you open windows<br/>~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~<br/> http://www.nntp.perl.org/group/perl.perl6.users/2017/02/msg3270.html Fri, 24 Feb 2017 06:41:59 +0000 Re: clipboard and ps questions? by ToddAndMargo On 02/23/2017 06:08 PM, yary wrote:<br/>&gt;<br/>&gt; On Thu, Feb 23, 2017 at 7:09 PM, ToddAndMargo &lt;ToddAndMargo@zoho.com<br/>&gt; &lt;mailto:ToddAndMargo@zoho.com&gt;&gt; wrote:<br/>&gt;<br/>&gt; But ... it calls xclip (Linux), pbcopy (OS X), or clip (Windows),<br/>&gt; so you might as well call these programs directly with qx or qqx<br/>&gt; rather than having to use Panda to compile the module<br/>&gt;<br/>&gt; For instance, under Perl 5 (sorry no Perl 6 example yet):<br/>&gt;<br/>&gt; system ( &quot;cat $TmpFile | xclip -selection clipboard&quot; );<br/>&gt;<br/>&gt;<br/>&gt; In defense of modules... I would rather use a module and not have to<br/>&gt; know what clipboard-interface-command-line-tool to use on which<br/>&gt; platform. And if someday Perl6 runs on the new neural-interface OS with<br/>&gt; yet a different way to cut &amp; paste our thoughts, perhaps that module<br/>&gt; will let my code work with it, without my having to edit it.<br/>&gt;<br/>&gt; -y<br/><br/>Hi Yary,<br/><br/> Don&#39;t misunderstand me. I adore modules (when they work).<br/>The guys over on the chat line told me right now the state<br/>of modules is in flux. I pretty much have to Panda the ones<br/>I want. And there is no RPM repository to keep the revisions<br/>in tact, etc.. And I rather make a direct system call<br/>that mess with Panda. It is quicker and since I am entirely<br/>versed with bash coding, easy for me to read.<br/><br/> I was very disappointed that P6&#39;s Net::FTP does not work.<br/>The author wrote me as to why -- something to do<br/>with him being unable to get a network socket or some<br/>such. I had to write that program in P5 (InLine<br/>did not work either). So poop! P5&#39;s subs drive<br/>me around the bend. P6&#39;s subs are a dream come true<br/>for me.<br/><br/>I come from a Modula2 background and I write in Top Down.<br/>The bottom of my programs define what functionality<br/>I want and the subs implement it in smaller and smaller<br/>steps. Easier that heck for me to maintain.<br/><br/> Lets hope Net::SMTP works. I will know in a hour<br/>or so. I am really not looking forward to writing<br/>that one by hand. At least it is open source, so I can<br/>look<br/><br/>I am rambling.<br/><br/>-T<br/><br/>Oh and P5&#39;s Net::FTP has a bug in too. I reported it<br/>over on:<br/><br/>Net::FTP:rmdir RECURSE does not check for files starting with a dot<br/>https://rt.cpan.org/Public/Bug/Display.html?id=120202<br/><br/><br/><br/><br/>-- <br/>~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~<br/>Computers are like air conditioners.<br/>They malfunction when you open windows<br/>~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~<br/> http://www.nntp.perl.org/group/perl.perl6.users/2017/02/msg3269.html Fri, 24 Feb 2017 03:10:49 +0000 Re: clipboard and ps questions? by yary On Thu, Feb 23, 2017 at 7:09 PM, ToddAndMargo &lt;ToddAndMargo@zoho.com&gt; wrote:<br/><br/>&gt; But ... it calls xclip (Linux), pbcopy (OS X), or clip (Windows),<br/>&gt; so you might as well call these programs directly with qx or qqx<br/>&gt; rather than having to use Panda to compile the module<br/>&gt;<br/>&gt; For instance, under Perl 5 (sorry no Perl 6 example yet):<br/>&gt;<br/>&gt; system ( &quot;cat $TmpFile | xclip -selection clipboard&quot; );<br/>&gt;<br/><br/>In defense of modules... I would rather use a module and not have to know<br/>what clipboard-interface-command-line-tool to use on which platform. And if<br/>someday Perl6 runs on the new neural-interface OS with yet a different way<br/>to cut &amp; paste our thoughts, perhaps that module will let my code work with<br/>it, without my having to edit it.<br/><br/>-y http://www.nntp.perl.org/group/perl.perl6.users/2017/02/msg3268.html Fri, 24 Feb 2017 02:09:20 +0000 Re: clipboard and ps questions? by ToddAndMargo On 02/17/2017 06:38 PM, ToddAndMargo wrote:<br/>&gt; Hi All,<br/>&gt;<br/>&gt; rakudo-star-0.0.2016.11-1.el7.x86_64 (Linux)<br/>&gt;<br/>&gt; Two questions about substitutes for system calls:<br/>&gt;<br/>&gt; 1) Is there a reliably Perl 6 way to copy things to the<br/>&gt; clipboard? (Perl 5 has a module, but it is unreliable<br/>&gt; and I have to make a system call.)<br/><br/>To answer my own questions to help others,<br/><br/>https://github.com/kmwallio/p6-OS-Clipboard<br/>is the module for it.<br/><br/>But ... it calls xclip (Linux), pbcopy (OS X), or clip (Windows),<br/>so you might as well call these programs directly with qx or qqx<br/>rather than having to use Panda to compile the module<br/><br/>For instance, under Perl 5 (sorry no Perl 6 example yet):<br/><br/>system ( &quot;cat $TmpFile | xclip -selection clipboard&quot; );<br/><br/>&gt;<br/>&gt; 2) Is there a way to get a list of running processes similar<br/>&gt; to &quot;ps ax&quot;?<br/><br/>Just call &quot;ps&quot; directly with qx or qqx. For instance:<br/><br/>my @ps = qx ( ps ax ).lines;<br/><br/>use qqx if you are using a variable inside the argument.<br/>For instance:<br/><br/>my @Result = qqx ( systemctl restart $Service ).lines;<br/><br/><br/><br/>&gt;<br/>&gt; Many thanks,<br/>&gt; -T<br/>&gt;<br/><br/><br/>-- <br/>~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~<br/>Computers are like air conditioners.<br/>They malfunction when you open windows<br/>~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~<br/> http://www.nntp.perl.org/group/perl.perl6.users/2017/02/msg3267.html Fri, 24 Feb 2017 00:09:54 +0000 Re: print to STDERR problem by Timo Paulssen <br/><br/>On 02/19/2017 11:15 PM, ToddAndMargo wrote:<br/>&gt; On 02/19/2017 07:15 AM, Timo Paulssen wrote:<br/>&gt;&gt; Oh, another question:<br/>&gt;&gt;<br/>&gt;&gt; please tell us how you reached that site? I expect you did a google<br/>&gt;&gt; search or something; can you tell us what search terms you&#39;ve used to<br/>&gt;&gt; get there? We should obviously improve the docs so that they get found<br/>&gt;&gt; instead of the archive &hellip;<br/>&gt;&gt;<br/>&gt;<br/>&gt; https://duckduckgo.com/?q=perl6+stderr&amp;t=ffab&amp;ia=software<br/>&gt;<br/>&gt; search term was &quot;perl6 stderr&quot;<br/>&gt;<br/>&gt; It is the 9th hit down (the gray one at the top is #1)<br/>Perfect.<br/><br/>Yeah, that&#39;s pretty bad! We need to improve this.<br/><br/>Also, damn, the red box being new was absolutely not something i expected :D<br/><br/> - Timo<br/> http://www.nntp.perl.org/group/perl.perl6.users/2017/02/msg3266.html Sun, 19 Feb 2017 22:29:15 +0000 Re: print to STDERR problem by Steve Mynott I added the red box today after reading this thread! :)<br/><br/>S<br/><br/>On 19 February 2017 at 15:14, Timo Paulssen &lt;timo@wakelift.de&gt; wrote:<br/><br/>&gt; Can you suggest how to improve the warnings about its obsolescence? Right<br/>&gt; now it says:<br/>&gt;<br/>&gt; This file is part of the Perl 6 Archive<br/>&gt; Note: these documents may be out of date. Do *not* use as reference!<br/>&gt;<br/>&gt; To see what is currently happening visit http://www.perl6.org/<br/>&gt;<br/>&gt;<br/>&gt; And then a bit lower you can see:<br/>&gt;<br/>&gt; Date: 4 Aug 2000<br/>&gt; Last Modified: 14 Sep 2000<br/>&gt;<br/>&gt;<br/>&gt; thanks<br/>&gt; - Timo<br/>&gt;<br/><br/><br/><br/>-- <br/>4096R/EA75174B Steve Mynott &lt;steve.mynott@gmail.com&gt; http://www.nntp.perl.org/group/perl.perl6.users/2017/02/msg3265.html Sun, 19 Feb 2017 22:21:12 +0000 Re: print to STDERR problem by ToddAndMargo On 02/19/2017 07:15 AM, Timo Paulssen wrote:<br/>&gt; Oh, another question:<br/>&gt;<br/>&gt; please tell us how you reached that site? I expect you did a google<br/>&gt; search or something; can you tell us what search terms you&#39;ve used to<br/>&gt; get there? We should obviously improve the docs so that they get found<br/>&gt; instead of the archive &hellip;<br/>&gt;<br/><br/>https://duckduckgo.com/?q=perl6+stderr&amp;t=ffab&amp;ia=software<br/><br/>search term was &quot;perl6 stderr&quot;<br/><br/>It is the 9th hit down (the gray one at the top is #1)<br/> http://www.nntp.perl.org/group/perl.perl6.users/2017/02/msg3264.html Sun, 19 Feb 2017 22:16:04 +0000 Re: print to STDERR problem by Brandon Allbery On Sun, Feb 19, 2017 at 10:14 AM, Timo Paulssen &lt;timo@wakelift.de&gt; wrote:<br/><br/>&gt; Can you suggest how to improve the warnings about its obsolescence? Right<br/>&gt; now it says:<br/><br/><br/>They wanted to use a perl 5 to perl 6 converter. They were warned that all<br/>such had not been maintained in some time and were likely to generate<br/>incorrect code....<br/><br/>-- <br/>brandon s allbery kf8nh sine nomine associates<br/>allbery.b@gmail.com ballbery@sinenomine.net<br/>unix, openafs, kerberos, infrastructure, xmonad http://sinenomine.net http://www.nntp.perl.org/group/perl.perl6.users/2017/02/msg3263.html Sun, 19 Feb 2017 21:34:03 +0000 Re: print to STDERR problem by Timo Paulssen Oh, another question:<br/><br/>please tell us how you reached that site? I expect you did a google<br/>search or something; can you tell us what search terms you&#39;ve used to<br/>get there? We should obviously improve the docs so that they get found<br/>instead of the archive &hellip;<br/> http://www.nntp.perl.org/group/perl.perl6.users/2017/02/msg3262.html Sun, 19 Feb 2017 15:15:57 +0000 Re: print to STDERR problem by Timo Paulssen Can you suggest how to improve the warnings about its obsolescence?<br/>Right now it says:<br/><br/>&gt;<br/>&gt; This file is part of the Perl 6 Archive<br/>&gt;<br/>&gt; Note: these documents may be out of date. Do *not* use as reference!<br/>&gt;<br/>&gt; To see what is currently happening visit http://www.perl6.org/<br/>&gt;<br/><br/>And then a bit lower you can see:<br/><br/>&gt; Date: 4 Aug 2000<br/>&gt; Last Modified: 14 Sep 2000<br/><br/>thanks<br/> - Timo http://www.nntp.perl.org/group/perl.perl6.users/2017/02/msg3261.html Sun, 19 Feb 2017 15:14:39 +0000 Re: sub for die? by Timo Paulssen Hi,<br/><br/><br/>On 19/02/17 04:48, ToddAndMargo wrote:<br/>&gt; &quot;die&quot; is not all that useful, as it always exits<br/>&gt; with a &quot;1&quot;. With &quot;exit&quot;, you can set the exit code.<br/><br/>that&#39;s leaving out a whole lot of context, though. &quot;die&quot; is a quick way<br/>to throw an exception. If an exception reaches the outermost part of<br/>your program without getting handled by something, the program will<br/>print the exception message (i.e. what its .message method generates)<br/>and a stack trace of where the exception was thrown.<br/><br/>However, using &quot;die&quot; in the mainline of your program is &quot;not all that<br/>useful&quot; as you correctly point out.<br/><br/>HTH<br/> - Timo<br/> http://www.nntp.perl.org/group/perl.perl6.users/2017/02/msg3260.html Sun, 19 Feb 2017 15:12:17 +0000 Re: print to STDERR problem by ToddAndMargo On 02/18/2017 07:35 PM, Brandon Allbery wrote:<br/>&gt; On Sat, Feb 18, 2017 at 10:33 PM, ToddAndMargo &lt;ToddAndMargo@zoho.com<br/>&gt; &lt;mailto:ToddAndMargo@zoho.com&gt;&gt; wrote:<br/>&gt;<br/>&gt; am having issues writing to STDERR. I am using this as<br/>&gt; a reference:<br/>&gt; https://perl6.org/archive/rfc/30.html<br/>&gt; &lt;https://perl6.org/archive/rfc/30.html&gt;<br/>&gt;<br/>&gt; The p52p6 translator needs to be able to spot<br/>&gt; instances of barewords and globs and translate them<br/>&gt; to scalars:<br/>&gt;<br/>&gt; print STDERR @foo; -&gt; print $STDERR @foo;<br/>&gt;<br/>&gt;<br/>&gt; This is obsolete; the correct variable is $*ERR.<br/>&gt;<br/>&gt; --<br/>&gt; brandon s allbery kf8nh sine nomine associates<br/>&gt; allbery.b@gmail.com &lt;mailto:allbery.b@gmail.com&gt;<br/>&gt; ballbery@sinenomine.net &lt;mailto:ballbery@sinenomine.net&gt;<br/>&gt; unix, openafs, kerberos, infrastructure, xmonad http://sinenomine.net<br/><br/><br/>Thank explains it. Thank you!<br/><br/>-- <br/>~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~<br/>Computers are like air conditioners.<br/>They malfunction when you open windows<br/>~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~<br/> http://www.nntp.perl.org/group/perl.perl6.users/2017/02/msg3259.html Sun, 19 Feb 2017 03:51:47 +0000 Re: sub for die? by ToddAndMargo On 02/17/2017 06:43 PM, ToddAndMargo wrote:<br/>&gt; Hi All,<br/>&gt;<br/>&gt; &lt;code&gt;<br/>&gt; $ cat die.pl6<br/>&gt; #!/usr/bin/perl6<br/>&gt;<br/>&gt; use strict;<br/>&gt; # use warnings;<br/>&gt; # use lib; # fill name of lib in<br/>&gt;<br/>&gt; die &quot;Curses on you!&quot;;<br/>&gt; &lt;/code&gt;<br/>&gt;<br/>&gt; $ die.pl6<br/>&gt; Curses on you!<br/>&gt; in block &lt;unit&gt; at ./die.pl6 line 7<br/>&gt;<br/>&gt;<br/>&gt; What is the best way to exit, like &quot;die&quot;, without<br/>&gt; the commentary &quot;in block ....&quot; from the &quot;die&quot; command?<br/>&gt; I just want my stuff to show and nothing else.<br/>&gt;<br/>&gt;<br/>&gt; Many thanks,<br/>&gt; -T<br/>&gt;<br/>&gt;<br/><br/><br/>Hi All,<br/><br/> Almost every thing you guys tell me, I write down.<br/>This is what became of my question and die and exit.<br/>I may be of use to others.<br/><br/> &quot;die&quot; is not all that useful, as it always exits<br/>with a &quot;1&quot;. With &quot;exit&quot;, you can set the exit code.<br/><br/> The link to exit codes is nice.<br/><br/>-T<br/><br/><br/>&quot;exit&quot; and &quot;die&quot; in Perl 6:<br/><br/>EXIT:<br/>&lt;code&gt;<br/>#!/usr/bin/perl6<br/><br/>use strict;<br/># use warnings;<br/># use lib; # fill name of lib in<br/><br/>print STDERR &quot;Curses on you!\n&quot;;<br/>exit 2;<br/><br/>print &quot;This should not print\n&quot;;<br/>&lt;/code&gt;<br/><br/>$ exit.pl6; echo $?<br/>Curses on you!<br/>2<br/><br/><br/><br/>DIE:<br/>&lt;code&gt;<br/>$ cat die.pl6<br/>#!/usr/bin/perl6<br/><br/>use strict;<br/># use warnings;<br/># use lib; # fill name of lib in<br/><br/>die &quot;Curses on you!&quot;;<br/><br/>Print &quot;This should not print\n&quot;;<br/>&lt;/code&gt;<br/><br/>$ die.pl6<br/>Curses on you!<br/> in block &lt;unit&gt; at ./die.pl6 line 7<br/><br/>1<br/><br/><br/>For a list of bash exit codes:<br/>http://www.tldp.org/LDP/abs/html/exitcodes.html<br/><br/><br/>1 Catchall for general errors<br/>2 Misuse of shell builtins (according to Bash documentation)<br/><br/><br/><br/>-- <br/>~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~<br/>Computers are like air conditioners.<br/>They malfunction when you open windows<br/>~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~<br/> http://www.nntp.perl.org/group/perl.perl6.users/2017/02/msg3258.html Sun, 19 Feb 2017 03:49:06 +0000 Re: print to STDERR problem by Brandon Allbery On Sat, Feb 18, 2017 at 10:33 PM, ToddAndMargo &lt;ToddAndMargo@zoho.com&gt;<br/>wrote:<br/><br/>&gt; am having issues writing to STDERR. I am using this as<br/>&gt; a reference:<br/>&gt; https://perl6.org/archive/rfc/30.html<br/>&gt;<br/>&gt; The p52p6 translator needs to be able to spot<br/>&gt; instances of barewords and globs and translate them<br/>&gt; to scalars:<br/>&gt;<br/>&gt; print STDERR @foo; -&gt; print $STDERR @foo;<br/>&gt;<br/><br/>This is obsolete; the correct variable is $*ERR.<br/><br/>-- <br/>brandon s allbery kf8nh sine nomine associates<br/>allbery.b@gmail.com ballbery@sinenomine.net<br/>unix, openafs, kerberos, infrastructure, xmonad http://sinenomine.net http://www.nntp.perl.org/group/perl.perl6.users/2017/02/msg3257.html Sun, 19 Feb 2017 03:35:58 +0000 print to STDERR problem by ToddAndMargo Hi All,<br/><br/>I am having issues writing to STDERR. I am using this as<br/>a reference:<br/> https://perl6.org/archive/rfc/30.html<br/><br/> The p52p6 translator needs to be able to spot<br/> instances of barewords and globs and translate them<br/> to scalars:<br/><br/> print STDERR @foo; -&gt; print $STDERR @foo;<br/><br/><br/>&lt;code&gt;<br/>#!/usr/bin/perl6<br/><br/>use strict;<br/># use warnings;<br/># use lib; # fill name of lib in<br/><br/>print $STDERR &quot;Existing at $?LINE do to improperly used parameter\n&quot;;<br/>exit 2;<br/><br/>print &quot;This should not print\n&quot;;<br/>&lt;/code&gt;<br/><br/>$ exit.pl6<br/>===SORRY!=== Error while compiling /home/linuxutil/perl/./exit.pl6<br/>Variable &#39;$STDERR&#39; is not declared<br/>at /home/linuxutil/perl/./exit.pl6:7<br/>------&gt; print &#x23CF;$STDERR &quot;Existing at $?LINE do to improp<br/><br/><br/>What am I doing wrong? Why isn&#39;t $STDERR declared? Isn&#39;t<br/>is built in?<br/><br/><br/>Many thanks,<br/>-T<br/><br/><br/>-- <br/>~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~<br/>Computers are like air conditioners.<br/>They malfunction when you open windows<br/>~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~<br/> http://www.nntp.perl.org/group/perl.perl6.users/2017/02/msg3256.html Sun, 19 Feb 2017 03:34:05 +0000 Re: need {} help by ToddAndMargo On 02/18/2017 04:47 PM, Timo Paulssen wrote:<br/>&gt; / doesn&#39;t have a meaning in regex, but it&#39;s not an alpha character, so<br/>&gt; if you want to &quot;match literally&quot; it &quot;must be quoted&quot; as the first error<br/>&gt; message tells you.<br/>&gt;<br/>&gt; On top of that, balanced characters like () and {} aren&#39;t allowed for<br/>&gt; the s/// form (only for the assignment form which looks like s{ foo } =<br/>&gt; &quot;bar&quot;).<br/>&gt;<br/>&gt; Sadly, I couldn&#39;t find any docs about the assignment form of s///, but<br/>&gt; it does explain the thing with balanced parenthesis:<br/>&gt;<br/>&gt; https://docs.perl6.org/syntax/s$SOLIDUS%20$SOLIDUS%20$SOLIDUS<br/>&gt;<br/>&gt; Hope that helps!<br/>&gt; - Timo<br/>&gt;<br/><br/><br/>Thank you for the help!<br/><br/>This would be a compromise<br/><br/>(my $IAm3 =~ $?FILE ) ~~ s|.*&quot;/&quot;||;<br/><br/>Even if it makes me quote it.<br/><br/><br/>-- <br/>~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~<br/>Computers are like air conditioners.<br/>They malfunction when you open windows<br/>~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~<br/> http://www.nntp.perl.org/group/perl.perl6.users/2017/02/msg3255.html Sun, 19 Feb 2017 01:20:41 +0000 Re: need {} help by Timo Paulssen / doesn&#39;t have a meaning in regex, but it&#39;s not an alpha character, so<br/>if you want to &quot;match literally&quot; it &quot;must be quoted&quot; as the first error<br/>message tells you.<br/><br/>On top of that, balanced characters like () and {} aren&#39;t allowed for<br/>the s/// form (only for the assignment form which looks like s{ foo } =<br/>&quot;bar&quot;).<br/><br/>Sadly, I couldn&#39;t find any docs about the assignment form of s///, but<br/>it does explain the thing with balanced parenthesis:<br/><br/> https://docs.perl6.org/syntax/s$SOLIDUS%20$SOLIDUS%20$SOLIDUS<br/><br/>Hope that helps!<br/> - Timo<br/> http://www.nntp.perl.org/group/perl.perl6.users/2017/02/msg3254.html Sun, 19 Feb 2017 00:47:48 +0000 need {} help by ToddAndMargo Hi All,<br/><br/>I need to figure out how to use {} is substitutes. I<br/>got the // down, now I need to learn {}. I am trying<br/>to get away from the \/\/\\/\/\/\////\/ nightmare.<br/><br/><br/>&lt;code&gt;<br/>#!/usr/bin/perl6<br/>print &quot;FILE = &lt;$?FILE&gt;\n&quot;;<br/><br/>(my $IAm =~ $?FILE ) ~~ s/.*\///;<br/>print &quot;IAm = &lt;$IAm&gt;\n&quot;;<br/><br/>(my $IAm2 =~ $?FILE ) ~~ s{.*/}{};<br/>print &quot;IAm2 = &lt;$IAm2&gt;\n&quot;;<br/>&lt;/code&gt;<br/><br/>===SORRY!===<br/>Unrecognized regex metacharacter / (must be quoted to match literally)<br/>at /home/linuxutil/perl/./file.test.pl6:7<br/>------&gt; (my $IAm2 =~ $?FILE ) ~~ s{.*&#x23CF;/}{};<br/>Unsupported use of brackets around replacement; in Perl 6 please use <br/>assignment syntax<br/>at /home/linuxutil/perl/./file.test.pl6:7<br/>------&gt; (my $IAm2 =~ $?FILE ) ~~ s{.*/}&#x23CF;{};<br/><br/><br/>What am I doing wrong? Am I stuck in thinking Perl 5?<br/><br/><br/>Many thanks,<br/>-T<br/><br/>-- <br/>~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~<br/>Computers are like air conditioners.<br/>They malfunction when you open windows<br/>~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~<br/> http://www.nntp.perl.org/group/perl.perl6.users/2017/02/msg3253.html Sun, 19 Feb 2017 00:23:40 +0000 Re: cifs control by ToddAndMargo On 02/18/2017 06:16 AM, yary wrote:<br/>&gt; If your code will be running on Windows, then you should be able to use<br/>&gt; Perl6&#39;s native filesystem calls with UNC paths, and those can take IP<br/>&gt; addresses instead of host names eg.<br/>&gt; \\192.168.1.154\C$\Users\MiniMe\Documents<br/>&gt;<br/><br/>Cool. Thank you!<br/><br/><br/>-- <br/>~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~<br/>Computers are like air conditioners.<br/>They malfunction when you open windows<br/>~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~<br/> http://www.nntp.perl.org/group/perl.perl6.users/2017/02/msg3252.html Sat, 18 Feb 2017 21:43:56 +0000 Re: net::SMTP in rpm land? by ToddAndMargo On 02/18/2017 03:51 AM, Timo Paulssen wrote:<br/>&gt; Almost no linux distros package perl6 modules for their native package<br/>&gt; manager yet.<br/>&gt;<br/>&gt; The only distro i know of that has any kind of perl6 module packaging at<br/>&gt; all is archlinux:<br/>&gt;<br/>&gt; https://aur.archlinux.org/packages/?O=0&amp;K=perl6<br/>&gt;<br/>&gt; You need to use panda or zef to install perl6 modules until something<br/>&gt; gets figured out by all the involved parties.<br/>&gt;<br/>&gt; HTH<br/>&gt; - Timo<br/>&gt;<br/><br/><br/>Thank you for the confirmation! I will guilt free use Panda<br/><br/>-- <br/>~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~<br/>Computers are like air conditioners.<br/>They malfunction when you open windows<br/>~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~<br/> http://www.nntp.perl.org/group/perl.perl6.users/2017/02/msg3251.html Sat, 18 Feb 2017 21:41:42 +0000 Re: sub for die? by ToddAndMargo On 02/18/2017 03:30 AM, Timo Paulssen wrote:<br/>&gt; It is usually considered The Right Thing to output error messages to<br/>&gt; stderr instead of stdout; you can use &quot;note&quot; to output to stderr (and<br/>&gt; it&#39;ll also put a newline at the end for you, which print doesn&#39;t do).<br/>&gt;<br/><br/>True. Thank you<br/><br/>-- <br/>~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~<br/>Computers are like air conditioners.<br/>They malfunction when you open windows<br/>~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~<br/> http://www.nntp.perl.org/group/perl.perl6.users/2017/02/msg3250.html Sat, 18 Feb 2017 21:39:18 +0000 Re: cifs control by yary If your code will be running on Windows, then you should be able to use<br/>Perl6&#39;s native filesystem calls with UNC paths, and those can take IP<br/>addresses instead of host names eg.<br/>\\192.168.1.154\C$\Users\MiniMe\Documents http://www.nntp.perl.org/group/perl.perl6.users/2017/02/msg3249.html Sat, 18 Feb 2017 14:16:29 +0000 Re: net::SMTP in rpm land? by Timo Paulssen Almost no linux distros package perl6 modules for their native package<br/>manager yet.<br/><br/>The only distro i know of that has any kind of perl6 module packaging at<br/>all is archlinux:<br/><br/> https://aur.archlinux.org/packages/?O=0&amp;K=perl6<br/><br/>You need to use panda or zef to install perl6 modules until something<br/>gets figured out by all the involved parties.<br/><br/>HTH<br/> - Timo<br/> http://www.nntp.perl.org/group/perl.perl6.users/2017/02/msg3248.html Sat, 18 Feb 2017 11:52:05 +0000 Re: intercept STDERR by Timo Paulssen Normally it&#39;s enough to override $*ERR for this purpose. I suggest using<br/>IO::MiddleMan to do that, or maybe IO::Capture::Simple.<br/><br/>HTH<br/> - Timo<br/> http://www.nntp.perl.org/group/perl.perl6.users/2017/02/msg3247.html Sat, 18 Feb 2017 11:50:42 +0000 Re: cifs control by Timo Paulssen On 18/02/17 06:04, ToddAndMargo wrote:<br/>&gt; Hi All,<br/>&gt;<br/>&gt; Sorry for the 1000 questions today, but I have anb entire<br/>&gt; week to think them up. And I have another one.<br/>&gt;<br/>&gt; In Windows, I am noticing that Cobian Backup and Windows<br/>&gt; Explorer (not Internet Explorer) can tool around CIFS<br/>&gt; (Windows) shares based on the IP (not the drive letter).<br/>&gt;<br/>&gt; Can I do this with Perl6? I am needing<br/>&gt;<br/>&gt; create directory<br/>&gt; remove director<br/>&gt; directory list<br/>&gt; directory exists<br/>&gt;<br/>&gt; Many thanks,<br/>&gt; -T<br/>&gt;<br/><br/>You have many options here. One is to use a commandline tool to access<br/>an smb share (i think smb and cifs are the same thing?). On linux and<br/>friends you&#39;d use samba, on windows there&#39;s got to be some command that<br/>behaves the same way.<br/><br/>You would then have to use the &quot;run&quot; sub (with :out and probably also<br/>:err) or Proc::Async in order to communicate commands to that program<br/>and get results back.<br/><br/>A better idea is to look for a module that you can use for these tasks.<br/>There is most probably a python module or a perl5 module that implements<br/>what you need. You can load those with Inline::Python and Inline::Perl5<br/>respectively.<br/><br/>Good Luck!<br/> http://www.nntp.perl.org/group/perl.perl6.users/2017/02/msg3246.html Sat, 18 Feb 2017 11:48:03 +0000 Re: reverse of .lines? by Timo Paulssen <br/><br/>On 18/02/17 06:09, ToddAndMargo wrote:<br/>&gt; On 02/17/2017 07:44 PM, yary wrote:<br/>&gt;&gt; Oh, then chain join on the end:<br/>&gt;&gt;<br/>&gt;&gt; my $StringReversedLines =<br/>&gt;&gt; $StringFullOfLineFeeds.lines.reverse.join(&quot;\n&quot;)<br/>&gt;&gt;<br/>&gt;&gt; or<br/>&gt;&gt;<br/>&gt;&gt; my $StringReversedLines =<br/>&gt;&gt; $StringFullOfLineFeeds.split(&quot;\n&quot;,:v).reverse.join<br/>&gt;&gt; **//___^<br/>&gt;<br/>&gt;<br/>&gt; Hmmm. I wanted to recreate the array, not reverse the line.<br/>&gt;<br/>&gt;<br/>&gt;<br/>Well, when you have a string that contains newline characters you can<br/>use .lines to get an array with strings in it where each of the strings<br/>is the stuff from one newline character to the next.<br/><br/>You can then call .join(&quot;\n&quot;) on that array to get back to one long<br/>string with newline characters in between the original elements.<br/><br/>When you use the :v argument to split, it will also give you a string in<br/>between that contains only the newline character in it (this is<br/>especially useful when you use a regex as the splitter, or an array of<br/>strings where each of the strings is one thing to split by). In that<br/>case you don&#39;t need to join with &quot;\n&quot;, because the \n are already there.<br/><br/>I think the examples were confusing your original question where you<br/>said &quot;reverse of .lines&quot;, but you meant &quot;inverse of .lines&quot;. So you can<br/>just leave out the .reverse from these examples.<br/><br/>Hope that helps!<br/> - Timo<br/> http://www.nntp.perl.org/group/perl.perl6.users/2017/02/msg3245.html Sat, 18 Feb 2017 11:33:54 +0000 Re: sub for die? by Timo Paulssen It is usually considered The Right Thing to output error messages to<br/>stderr instead of stdout; you can use &quot;note&quot; to output to stderr (and<br/>it&#39;ll also put a newline at the end for you, which print doesn&#39;t do).<br/> http://www.nntp.perl.org/group/perl.perl6.users/2017/02/msg3244.html Sat, 18 Feb 2017 11:30:42 +0000 Re: sub for die? by ToddAndMargo On 02/17/2017 06:43 PM, ToddAndMargo wrote:<br/>&gt; Hi All,<br/>&gt;<br/>&gt; &lt;code&gt;<br/>&gt; $ cat die.pl6<br/>&gt; #!/usr/bin/perl6<br/>&gt;<br/>&gt; use strict;<br/>&gt; # use warnings;<br/>&gt; # use lib; # fill name of lib in<br/>&gt;<br/>&gt; die &quot;Curses on you!&quot;;<br/>&gt; &lt;/code&gt;<br/>&gt;<br/>&gt; $ die.pl6<br/>&gt; Curses on you!<br/>&gt; in block &lt;unit&gt; at ./die.pl6 line 7<br/>&gt;<br/>&gt;<br/>&gt; What is the best way to exit, like &quot;die&quot;, without<br/>&gt; the commentary &quot;in block ....&quot; from the &quot;die&quot; command?<br/>&gt; I just want my stuff to show and nothing else.<br/>&gt;<br/>&gt;<br/>&gt; Many thanks,<br/>&gt; -T<br/>&gt;<br/>&gt;<br/><br/><br/>Figured it out. Just use &quot;exit&quot;:<br/><br/><br/>&lt;code&gt;<br/>#!/usr/bin/perl6<br/><br/>use strict;<br/># use warnings;<br/># use lib; # fill name of lib in<br/><br/>print &quot;Curses on you!\n&quot;;<br/>exit 2;<br/><br/>print &quot;This should not print\n&quot;;<br/>&lt;/code&gt;<br/><br/>$ exit.pl6; echo $?<br/>Curses on you!<br/>2<br/><br/>-- <br/>~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~<br/>Serious error.<br/>All shortcuts have disappeared.<br/>Screen. Mind. Both are blank.<br/>~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~<br/> http://www.nntp.perl.org/group/perl.perl6.users/2017/02/msg3243.html Sat, 18 Feb 2017 06:13:11 +0000 Re: reverse of .lines? by ToddAndMargo On 02/17/2017 07:44 PM, yary wrote:<br/>&gt; Oh, then chain join on the end:<br/>&gt;<br/>&gt; my $StringReversedLines = $StringFullOfLineFeeds.lines.reverse.join(&quot;\n&quot;)<br/>&gt;<br/>&gt; or<br/>&gt;<br/>&gt; my $StringReversedLines = $StringFullOfLineFeeds.split(&quot;\n&quot;,:v).reverse.join<br/>&gt; **//___^<br/><br/><br/>Hmmm. I wanted to recreate the array, not reverse the line.<br/><br/><br/><br/>-- <br/>~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~<br/>Computers are like air conditioners.<br/>They malfunction when you open windows<br/>~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~<br/> http://www.nntp.perl.org/group/perl.perl6.users/2017/02/msg3242.html Sat, 18 Feb 2017 05:10:28 +0000 cifs control by ToddAndMargo Hi All,<br/><br/>Sorry for the 1000 questions today, but I have anb entire<br/>week to think them up. And I have another one.<br/><br/>In Windows, I am noticing that Cobian Backup and Windows<br/>Explorer (not Internet Explorer) can tool around CIFS<br/>(Windows) shares based on the IP (not the drive letter).<br/><br/>Can I do this with Perl6? I am needing<br/><br/> create directory<br/> remove director<br/> directory list<br/> directory exists<br/><br/>Many thanks,<br/>-T<br/><br/>-- <br/>~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~<br/>Computers are like air conditioners.<br/>They malfunction when you open windows<br/>~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~<br/> http://www.nntp.perl.org/group/perl.perl6.users/2017/02/msg3241.html Sat, 18 Feb 2017 05:04:18 +0000 intercept STDERR by ToddAndMargo Hi All,<br/><br/>In Net::SMTP, we have:<br/><br/> $debug when set to a true value, will print the SMTP<br/> traffic to stderr.<br/><br/>Is there an easy way to intercept this so I can analyze if<br/>the mail went through properly?<br/><br/><br/>Many thanks,<br/>-T<br/><br/><br/>-- <br/>~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~<br/>Computers are like air conditioners.<br/>They malfunction when you open windows<br/>~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~<br/> http://www.nntp.perl.org/group/perl.perl6.users/2017/02/msg3240.html Sat, 18 Feb 2017 04:56:10 +0000 net::SMTP in rpm land? by ToddAndMargo Hi All,<br/><br/>Before I go using Panda and lose my revision control, does anyone<br/>know what Net::SMTP is called in RPM land?<br/><br/>$ yum --enablerepo=* whatprovides */net-smtp<br/>&lt;nothing&gt;<br/><br/>Many thanks,<br/>-T<br/><br/>-- <br/>~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~<br/>Serious error.<br/>All shortcuts have disappeared.<br/>Screen. Mind. Both are blank.<br/>~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~<br/> http://www.nntp.perl.org/group/perl.perl6.users/2017/02/msg3239.html Sat, 18 Feb 2017 03:55:41 +0000