Mon. Feb 24th, 2025
What is the differe...
 
Notifications
Clear all

What is the difference between "return" and "last" in Perl (Raku)?


Chris DuBois
Posts: 1239
Registered
Topic starter
(@chris)
Famed Member
Joined: 6 months ago

How do the return and last commands behave differently in Perl and Raku? When should you use return for exiting a subroutine versus last for controlling loop execution?

Share: