Sun. Jun 22nd, 2025
What is the differe...
 
Notifications
Clear all

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


Chris DuBois
Posts: 1795
Registered
Topic starter
(@chris)
Illustrious Member
Joined: 10 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: