Beefy Boxes and Bandwidth Generously Provided by pair Networks
Come for the quick hacks, stay for the epiphanies.
 
PerlMonks  

Re: perl string pass by value

by Anonymous Monk
on Apr 02, 2018 at 16:45 UTC ( [id://1212182]=note: print w/replies, xml ) Need Help??


in reply to 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. The internal handling of strings has changed to fit the times but plenty of old source code reflects what used to be.

Replies are listed 'Best First'.
Re^2: perl string pass by value
by LanX (Saint) on Apr 02, 2018 at 19:02 UTC
    > 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

      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 . . .
Re^2: perl string pass by value
by Your Mother (Archbishop) on Apr 03, 2018 at 09:27 UTC

    Without some kind of citation or description of what you describe one must assume you're talking through your hat.

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://1212182]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others romping around the Monastery: (2)
As of 2024-04-26 04:23 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found