in reply to Re: perl string pass by value
in thread perl string pass by value

> Remember that Perl was originally architected at a time when memory was at an extreme premium and CPUs were very slow.

How is unnecessary copying saving memory?

IMHO Perl just reflected the behaviour of C.

Cheers Rolf
(addicted to the Perl Programming Language and ☆☆☆☆ :)
Wikisyntax for the Monastery

Replies are listed 'Best First'.
Re^3: perl string pass by value
by Anonymous Monk on Apr 03, 2018 at 04:00 UTC
    And yet, today's runtime Perl implementations must somehow strive to accommodate all of this "old" source-code, as graciously as it possibly can ... without breaking any of its now-oh-so-old assumptions . . .