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 Richard Hainsworth
How about: $perl6 > my $c = prompt("can I have some\n"); say "you told me: $c"; can I have some indeed you are welcome you told me: indeed you are welcome > explanation: perl6 runs REPL to try something out prompt takes a string and prints it, waiting for a response, which it returns. say out

Re: zenity sub

2016-12-01 Thread Timo Paulssen
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_quoting_with_interpolation:_qqx Hope that helps!

Re: [PATCH] multiple heredoc beginning in the same line

2016-12-01 Thread Will Coleda
This will be much more likely to be applied if you provide a pull request to the repo at https://github.com/perl6/doc On Wed, Nov 30, 2016 at 10:31 AM, wrote: > This is to document the fact that, as in POSIX shell, you can use > multiple HEREDOC strings in the same line. > > --- > doc/Language/

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

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 Brandon Allbery
On Thu, Dec 1, 2016 at 2:38 PM, ToddAndMargo wrote: > Quoting constructs as a perl 6replacement for zenity pop up windows? They're suggesting that, given an existing program specifically intended for providing pop-ups fo rother programs, why not use it? Largely because making it work in native

[perl #130228] Better handling of unqualified indirect quoted private method calls

2016-12-01 Thread via RT
# New Ticket Created by Denis Alexandrov # Please include the string: [perl #130228] # in the subject line of all future correspondence about this issue. # https://rt.perl.org/Ticket/Display.html?id=130228 > Rakudo version 2016.11 built on MoarVM version 2016.11 implementing Perl 6.c current

[perl #130226] Make --ll-exception output use OS-dependant path separators consistently

2016-12-01 Thread via RT
# New Ticket Created by Denis Alexandrov # Please include the string: [perl #130226] # in the subject line of all future correspondence about this issue. # https://rt.perl.org/Ticket/Display.html?id=130226 > Currently there is no much consistency at all, example of it on Windows using Rakudo

Re: zenity sub

2016-12-01 Thread Brandon Allbery
On Thu, Dec 1, 2016 at 2:45 PM, Brandon Allbery wrote: > Largely because making it work in native perl 6 is not all that trivial; > that oh so "simple" popup has a full featured, mature widget toolkit and > graphics interface behind it, and uses, or at least makes available, quite > a few complex

Re: zenity sub

2016-12-01 Thread Timo Paulssen
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

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 #130231] [LTA] Nil.chrs complains about the use of Nil in numeric context, but isn't it a string context? (Nil.chrs)

2016-12-01 Thread via RT
# New Ticket Created by Aleks-Daniel Jakimenko-Aleksejev # Please include the string: [perl #130231] # in the subject line of all future correspondence about this issue. # https://rt.perl.org/Ticket/Display.html?id=130231 > Code: Nil.chrs Result: Use of Nil in numeric context in block at

[perl #130233] invocant pragma is NYI (use invocant)

2016-12-01 Thread via RT
# New Ticket Created by Aleks-Daniel Jakimenko-Aleksejev # Please include the string: [perl #130233] # in the subject line of all future correspondence about this issue. # https://rt.perl.org/Ticket/Display.html?id=130233 > Code: use invocant Result: ===SORRY!=== Error while compiling -e use

[perl #130234] parameters pragma is NYI (use parameters)

2016-12-01 Thread via RT
# New Ticket Created by Aleks-Daniel Jakimenko-Aleksejev # Please include the string: [perl #130234] # in the subject line of all future correspondence about this issue. # https://rt.perl.org/Ticket/Display.html?id=130234 > Code: use parameters Result: ===SORRY!=== Error while compiling -e u

[perl #130235] internals pragma is NYI (use internals)

2016-12-01 Thread via RT
# New Ticket Created by Aleks-Daniel Jakimenko-Aleksejev # Please include the string: [perl #130235] # in the subject line of all future correspondence about this issue. # https://rt.perl.org/Ticket/Display.html?id=130235 > Code: use internals Result: ===SORRY!=== Error while compiling -e us