This channel is intended for people just starting with the Raku Programming Language (raku.org). Logs are available at irclogs.raku.org/raku-beginner/live.html
Set by lizmat on 8 June 2022.
00:13 ToddAndMargo joined
ToddAndMargo Windows 11 22H2.   RakudoΓäó v2022.07.    I am running a Raku  program I wrote as a "pre-event" program from Cobian Reflector.  Since I may have other Raku programs running, I need to know what started my program: console, Cobian, etc..   Does Raku have one of those fancy sysem variables that would tell me such?  Or some other way to 00:18
find out?
01:23 teatime joined 05:34 ToddAndMargo left
rcmlz maybe if you use $*IN for data transport you can ask, if it from a terminal: docs.raku.org/type/IO/Handle#method_t 08:40
I recently had the problem that I wanted to know if a script was called with data piped in, but could not distinguish inside the script between „cat gata.txt | script.raku” and just “script.raku”. 08:43
gfldex m: raku -e 'say qx</usr/bin/env>' 09:06
camelia ===SORRY!=== Error while compiling <tmp>
Two terms in a row
at <tmp>:1
------> raku -e⏏ 'say qx</usr/bin/env>'
expecting any of:
infix
infix stopper
postfix
statement end
sta…
gfldex m: say qx</usr/bin/env>
camelia _=/usr/bin/env
SYSTEMD_EXEC_PID=27323
INVOCATION_ID=b9079b9b59434c248895ea8fb3ed6faa
USER=camelia
ME=gfldex
PWD=/home/camelia
HOME=/home/camelia
LC_CTYPE=en_US.UTF-8
JOURNAL_STREAM=8:9828585
SHELL=/bin/bash
PERL5LIB=/home/camelia/p…
lizmat m: say .key ~ "=" ~ .value for %*ENV.sort(*.key) # less OS dependent 09:08
camelia HOME=/home/camelia
INVOCATION_ID=b9079b9b59434c248895ea8fb3ed6faa
JOURNAL_STREAM=8:9828585
LC_CTYPE=en_US.UTF-8
LOGNAME=camelia
ME=lizmat
PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
PERL5LIB=/home/camelia/perl5/lib/…
gfldex If you need to know where a Raku program is run, you can always write something in $system-language and shell out to the tool. 09:10
09:15 rantanplan left, snonux joined 11:50 DarthGandalf left 11:51 DarthGandalf joined 16:34 vlad joined 18:00 vlad left 19:28 swaggboi joined 23:20 samebchase2 joined, snonux left, KOTP left 23:21 samebchase left, samebchase2 is now known as samebchase 23:22 KOTP joined 23:23 snonux joined 23:36 habere-et-disper joined 23:38 snonux left 23:54 snonux joined