https://www.nntp.perl.org/group/perl.perl6.users/2017/03/msg3423.html
On 2018-05-22 06:04:47 GMT, ToddAndMargo wrote:
> Hi All,
>
> I need to know the name of the subroutine I am in.
>
> This is the way I use to do it in Perl 5:
>
> (my $Name = (caller(0))[3] ) ~~ s{.*::}{};
>
> How do I
Hi All,
I need to know the name of the subroutine I am in.
This is the way I use to do it in Perl 5:
(my $Name = (caller(0))[3] ) ~~ s{.*::}{};
How do I do it in Perl 6?
Many thanks,
-T
Hi All,
With the help of the guys on the chat line, I learned
something new. How do deal with metacharacter(s) in
a regex.
To match a metacharacter: "<" and "?" in this example:
$ p6 'if "
Hi,
I was trying to find a way to have data stored in the program script
itself a la perl5 __DATA__. Perl6 has the =data pod structures to do
that. But after a first test I got an error using $=data saying that it
was not yet implemented. But, as the saying goes, there's more than one
way to