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
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
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
On Fri, Feb 17, 2017 at 9:47 PM, ToddAndMargo wrote:
> What is the difference between these two commands and why would
> you use ".perl"?
>
>say "$ServiceName";
>say $ServiceName.perl;
>
The first uses .gist, which produces a summary of an object ("just the
gist"). For value types, it wi
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
--
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 $ServiceName.perl;
The first uses .
On Fri, Feb 17, 2017 at 9:52 PM, ToddAndMargo wrote:
> @Lines = $StringFullOfLineFeeds.lines
@Lines = $StringFullOfLineFeeds.lines.reverse
-y
On Fri, Feb 17, 2017 at 10:26 PM, yary wrote:
> On Fri, Feb 17, 2017 at 9:52 PM, ToddAndMargo
> wrote:
>
>> @Lines = $StringFullOfLineFeeds.lines
>
>
> @Lines = $StringFullOfLineFeeds.lines.reverse
They want what Haskell calls unlines, not a reversed list of lines. I would
presume some variant
Oh, then chain join on the end:
my $StringReversedLines = $StringFullOfLineFeeds.lines.reverse.join("\n")
or
my $StringReversedLines = $StringFullOfLineFeeds.split("\n",:v).reverse.join
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 like air c
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
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.
~~~
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
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
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.
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", without
the commentary
16 matches
Mail list logo