Perl virtual machine: Difference between revisions

Content deleted Content added
Category:Perl
D3xter (talk | contribs)
m Data structures: RV
Line 32:
Perl uses a reference count-driven garbage collection mechanism. SVs, AVs, or HVs start their life with a reference count of 1. If the reference count of a data value ever drops to 0, then it will be destroyed and its memory made available for reuse.
 
Other typedefs are Glob Value (''GV'') which contains named references to the various objects, Code Value (''CV'') which contains a reference to Perl subroutine, I/O Handler (''IO''), a reference to [[Regular expression|regular expression]] (''REGEXP''; ''RV'' in Perl before 5.11) and a, reference to compiled format for output record (''FM'') and simple reference which is a special type of scalar that point to other data types (''RV'').
 
Special Hash Value is ''stash'', a hash that contains all variables that are defined within a package. Each value in this hash table is a Glob Value (''GV'').