Perl virtual machine: Difference between revisions

Content deleted Content added
Codename Lisa (talk | contribs)
No edit summary
Line 40:
 
====data types====
Perl has three typedefs that handle Perl's three main data types: Scalar Value (''SV''), Array Value (''AV''), Hash Value (''HV''). Perl uses a special typedef for simple signed integer type (''IV''), an unsigned integer (''IVUV''), a floating point number (''NV'') and string (''PV'').
 
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.