Beefy Boxes and Bandwidth Generously Provided by pair Networks
"be consistent"
 
PerlMonks  

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

by sundialsvc4 (Monsignor)
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
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 making s'mores by the fire in the courtyard of the Monastery: (11)
As of 2014-09-16 16:43 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    How do you remember the number of days in each month?











    Results (35 votes), past polls