Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl: the Markov chain saw
 
PerlMonks  

Re: How are CAM::PDF objects destroyed?

by afoken (Chancellor)
on Dec 13, 2015 at 08:21 UTC ( [id://1150157]=note: print w/replies, xml ) Need Help??


in reply to How are CAM::PDF objects destroyed?

Without reading the docs, my guess is that perl handles it. Either by leaving the scope or by assigning something else to the variable containing the object.

do { my $pdf=CAM::PDF->new(...); $pdf->foo(); $pdf->bar(); }; # object destroyed by perl
my $pdf=CAM::PDF->new(...); $pdf->foo(); $pdf->bar(); $pdf=''; # object destroyed by perl

Alexander

--
Today I will gladly share my knowledge and experience, for there are no sweeter words than "I told you so". ;-)

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others meditating upon the Monastery: (5)
As of 2024-03-19 09:33 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found