Re: routine declaration line question

2018-10-12 Thread Todd Chester via perl6-users
On 10/12/18 3:47 AM, Curt Tilmes wrote: On Fri, Oct 12, 2018 at 6:08 AM Todd Chester via perl6-users mailto:perl6-users@perl.org>> wrote: > If nothing is being returned, it should really be indicated with --> Nil > since that can enable certain optimizati

Re: zef installs not working

2018-10-16 Thread Todd Chester via perl6-users
On 10/16/18 8:20 PM, Joseph Brenner wrote: Lately zef hasn't been working for me to do module installation. I can do things like "zef --list" to get a list of available modules but when I actually try to do the installation I see things like this: zef install Array::Agnostic ===>

Re: zef installs not working

2018-10-17 Thread Todd Chester via perl6-users
On 10/17/18 1:05 PM, Joseph Brenner wrote: Todd Chester wrote: What I do is to go to the github source for the module: Next I cd into the directory and install it with zef install . Yes, that much seems to work fine. It seems a little peculiar that I can search the repositories with

Re: routine declaration line question

2018-10-12 Thread Todd Chester via perl6-users
On 10/5/18 8:39 AM, Larry Wall wrote: On Thu, Oct 04, 2018 at 03:13:15PM -0400, Trey Harris wrote: : Right; that's what I meant by "stylistically" — a `--> Mu` can highlight : that something is being returned (and that side-effects are not the primary : purpose), while nothing indicates that

Re: print hex?

2019-02-07 Thread Todd Chester via perl6-users
On 2/7/19 11:22 AM, Curt Tilmes wrote: On Thu, Feb 7, 2019 at 2:14 PM ToddAndMargo via perl6-users mailto:perl6-users@perl.org>> wrote: What is the easiest way to get both print and say to print $i below in Hex? $ p6 'my Buf $x=Buf.new(0xAE,0x5D); my int16 $i=0x5DAE; say $x;

buf to integer?

2019-02-07 Thread Todd Chester via perl6-users
Hi All, I am dealing with a Buf what includes 32 bit integers, but they are entered somewhat backwards as view with hexedit: AE 5D 5C 72 represents the number 725C5DAE This is what I have come up with to convert this type of number in a buffer to and integer $ p6 'my Buf

Re: shift left syntax?

2019-02-07 Thread Todd Chester via perl6-users
On 2/7/19 10:36 PM, yary wrote: perl6 -e 'my $i = 0x5DAE; $i +<= 1; say $i.base(0x10);' BB5C -y Hi Yary, $ p6 'my Buf $x=Buf.new(0xAE,0x5D); my int32 $i=0x5DAE; say $x; say $i.base(0x10); $i +< 0x01; say $i.base(0x10);' WARNINGS for -e: Useless use of "+<" in expression "$i

shift left syntax?

2019-02-07 Thread Todd Chester via perl6-users
Hi All, Is this the only way to shift left? $i = $i +< 0x01 $ p6 'my int32 $i=0x5DAE; say $i.base(0x10); $i = $i +< 0x01; say $i.base(0x10);' 5DAE BB5C Does we have any of those fancy += ~= ways of doing it? Many thanks, -T

Re: .payload

2019-02-28 Thread Todd Chester via perl6-users
On 2/28/19 2:06 PM, Timo Paulssen wrote: I just changed the docs to replace payload with message here. It's not a language bug, however. Here's the change on github: https://github.com/perl6/doc/commit/fb5d341036afe387f0ead0b76e09aef75205dcaf You are a force of nature Timo! :-)

print to a printer

2019-03-14 Thread Todd Chester via perl6-users
Hi All Fedora 29 Is there a way to print to a printer, other than a system call to lpr? Many thanks, -T

Re: I need help with "lines"

2019-03-14 Thread Todd Chester via perl6-users
On 3/14/19 10:05 PM, Todd Chester via perl6-users wrote: Hi All, What am I doing wrong here? ps ax | grep [f]irefox | perl6 -ne 'my @x = $_.words[0].lines.reverse; print @x[0] ~ "\n";' 7380 7581 7698 13023 13767 13908 Two problems: 1) "lines" is putting ever

I need help with "lines"

2019-03-14 Thread Todd Chester via perl6-users
Hi All, What am I doing wrong here? ps ax | grep [f]irefox | perl6 -ne 'my @x = $_.words[0].lines.reverse; print @x[0] ~ "\n";' 7380 7581 7698 13023 13767 13908 Two problems: 1) "lines" is putting everything into @x[0] 2) "reverse" is ignoring me as there is no @x[1]. etc. The result I

Re: I need help with "lines"

2019-03-15 Thread Todd Chester via perl6-users
On Fri, 15 Mar 2019, 05:34 Todd Chester via perl6-users, mailto:perl6-users@perl.org>> wrote: On 3/14/19 10:05 PM, Todd Chester via perl6-users wrote: > Hi All, > > What am I doing wrong here? > > ps ax | grep [f]irefox | perl6 -ne 'm

Re: I need help with "lines"

2019-03-15 Thread Todd Chester via perl6-users
On 3/14/19 10:05 PM, Todd Chester via perl6-users wrote: Hi All, What am I doing wrong here? ps ax | grep [f]irefox | perl6 -ne 'my @x = $_.words[0].lines.reverse; print @x[0] ~ "\n";' 7380 7581 7698 13023 13767 13908 Two problems: 1) "lines" is putting ever

Re: I need help with "lines"

2019-03-15 Thread Todd Chester via perl6-users
On 3/15/19 3:02 AM, Peter Pentchev wrote: On Fri, Mar 15, 2019 at 11:52:15AM +0200, Peter Pentchev wrote: [snip] 3. The standard input stream in Perl 6 is called $*IN (think of it as mostly equivalent to what <<>> and <> would read from in Perl 5, ...sorry about this part, I know it's

Re: I need help with "lines"

2019-03-15 Thread Todd Chester via perl6-users
On 3/15/19 7:58 AM, Todd Chester via perl6-users wrote: Never did figure out why everything went into @x[0] The entire pipe gets put into @x[0]. @x[1] is uninitialized

Re: I need help with "lines"

2019-03-15 Thread Todd Chester via perl6-users
On 3/15/19 2:35 AM, Simon Proctor wrote: All looking good so far. what is it you're wanting from this data? Hi Simon, Thank you! What this is for is a backup routine. I am checking for the highest instance of any jammed running instances of [xfa]dump. If I find any, I "kill -9" it and

Re: I need help with "lines"

2019-03-15 Thread Todd Chester via perl6-users
On 3/15/19 2:52 AM, Peter Pentchev wrote: Hope that helped! G'luck, Peter [1] The "almost certainly" is because, yes, yes, I know, I also have that dusty old HP/UX crunching away in a customer's basement; still. Yes it does. Thank you! I remember zsh for my Solaris days. Or at

Re: I need help with "lines"

2019-03-15 Thread Todd Chester via perl6-users
On 3/15/19 2:52 AM, Peter Pentchev wrote: 1. Learn to use pgrep instead of the myriad variations of ps | grep; pgrep has been standardized by POSIX for a long time and is almost certainly available in all the installations that you will ever need to touch[1]. pgrep is