Beefy Boxes and Bandwidth Generously Provided by pair Networks
Keep It Simple, Stupid
 
PerlMonks  

Re: do Perl supoort the use of memory address and pointers

by sundialsvc4 (Abbot)
on Apr 23, 2013 at 11:31 UTC ( #1030110=note: print w/ replies, xml ) Need Help??


in reply to do Perl supoort the use of memory address and pointers

Well, there’s Pointer ...

Like most postmodern languages, Perl has the concept of references (see perlreftut), which are similar to pointers in that they “refer to” other things, but different in that (a) they know what sort of thing they are referring to, and (b) every thing always knows how many references to it currently exist.   Furthermore, memory objects are automatically “garbage collected.”   You don’t have to free them explicitly.


Comment on Re: do Perl supoort the use of memory address and pointers
Replies are listed 'Best First'.
Re^2: do Perl supoort the use of memory address and pointers
by tobyink (Abbot) on Apr 24, 2013 at 20:49 UTC

    Also of interest: Devel::PeekPoke which (quite shockingly) has a pure-Perl implementation.

    package Cow { use Moo; has name => (is => 'lazy', default => sub { 'Mooington' }) } say Cow->new->name

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others chilling in the Monastery: (14)
As of 2015-07-29 14:27 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (263 votes), past polls