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
--
~~~
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
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!
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/
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
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
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
# 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
# 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
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
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
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
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
# 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
# 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
# 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
# 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
17 matches
Mail list logo