On 12/7/22 09:06, Gianni Ceccarelli wrote:
On Wed, 7 Dec 2022 08:58:19 -0800
ToddAndMargo via perl6-users wrote:
When I am in a module (pm6), is there one of those
fancy system variables that will tell me the
name of calling (pl6) program?
On Wed, 7 Dec 2022 08:58:19 -0800
ToddAndMargo via perl6-users wrote:
> When I am in a module (pm6), is there one of those
> fancy system variables that will tell me the
> name of calling (pl6) program?
https://docs.raku.org/language/variables#index-entry-$*PROGRAM
--
Dakkar -
Hi All,
When I am in a module (pm6), is there one of those
fancy system variables that will tell me the
name of calling (pl6) program?
Many thanks,
-T
On 12/7/22 02:02, ToddAndMargo via perl6-users wrote:
On my sub declarations, I like to use "export"
I had been doing a lot of module coding.
I should have said "returns", not "export[s]"
--
~~
Computers are like air conditioners.
They malfunction when
On 12/7/22 02:02, ToddAndMargo via perl6-users wrote:
use "export"
"exports", I forgot the "s"
--
~~
Computers are like air conditioners.
They malfunction when you open windows
~~
On 12/5/22 11:19, Ralph Mellor wrote:
I forgot to mention one other shortcut that is always available
if you do have to use `.new` (which is the case for most types).
You can write:
```
my $foo = 42;
```
The `42` on the RHS of the `=` is the shortest way to create
an integer value corresponding
Hi All,
On my sub declarations, I like to use "export"
sub abc() returns Str {...}
becasue it makes eh sub easier to figure out at
a glance when I go to maintain it.
Two exports I have not figured out are
1) an array,
2) an object created from a custom class.
returns @
gets