On 10/8/25 12:43 AM, Elizabeth Mattijsen wrote:


On 8 Oct 2025, at 09:08, ToddAndMargo via perl6-users <[email protected]> 
wrote:

On 10/8/25 12:01 AM, ToddAndMargo wrote:
Hi All,
    Redeclaration of routine 'GetEsetInternetSecurity'.  Did you
    mean to declare a multi-sub?
    at /home/linuxutil/./GetUpdates.raku:5161
I meant to declare the same sub name INSIDE their own subs.
They are meant to be ONLY be active inside the subs
they are embedded in and ignored everywhere else.
Grrrrr......
-T

Never mind.  I read something wrong in my code.

And I am tired and in a rather too crabby mood
to program.

It's always good to take a step away from the keyboard every now and then.

also:

$ raku -e 'r 'sub a() { sub a() { 42 }; say a }; a'
42

so that works fine.  Although I would not recommend it, fwiw.

Good Advice.

I was trying to keep a sub I had written that was no longer
applicable to what I needed becasue it had a lot of hard won
coding as an example.

I renamed it and replace it with the current code.  But I
must have hit ctrl-z to many times and removed the rename.
To compound things, I mistook the error message as one of
the embedded subs, which I still used in the new code.

As you said it is good to step away sometimes.

At least I did not waste tons of time chasing after missing/
extra brackets.  That always fries me.


Reply via email to