in reply to Resource management
Hi, I am not sure if I understand your question completely. But in general Perl is very DWIM (Do What I Mean). So most resources such as the ones you mentioned, will simply be destroyed when they go out of scope. It's good practice to simply call close() on a filehandle, but if you don't Perl will close it at the end the script or subroutine in which it was opened. Memory is also freed automatically via reference counting.
Hope this helps, more details needed if not :-)
|
|---|