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
On Sat, Feb 18, 2017 at 10:33 PM, ToddAndMargo
wrote:
> 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
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; ->
/ 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 for the assignment form which looks like s{
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 )
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!
--
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=perl6
You need to use panda
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
--
Normally it's enough to override $*ERR for this purpose. I suggest using
IO::MiddleMan to do that, or maybe IO::Capture::Simple.
HTH
- Timo
On 18/02/17 06:04, ToddAndMargo wrote:
> 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
On 18/02/17 06:09, ToddAndMargo wrote:
> 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
>>
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).
12 matches
Mail list logo