Beefy Boxes and Bandwidth Generously Provided by pair Networks
XP is just a number
 
PerlMonks  

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

by sundialsvc4 (Abbot)
on Apr 23, 2013 at 11:31 UTC ( [id://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 (Canon) 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
Domain Nodelet?
Node Status?
node history
Node Type: note [id://1030110]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others making s'mores by the fire in the courtyard of the Monastery: (7)
As of 2024-04-16 08:29 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found