Package::Reaper(3) User Contributed Perl Documentation Package::Reaper(3)NAME
Package::Reaper - pseudo-garbage-collection for packages
VERSION
version 0.103
SYNOPSIS
use Package::Generator;
use Package::Reaper;
{
my $package = Package::Generator->new_package;
my $reaper = Package::Reaper->new($package);
...
}
# at this point, $package stash has been deleted
DESCRIPTION
This module allows you to create simple objects which, when destroyed, delete a given package. This lets you approximate lexically scoped
packages.
INTERFACE
new
my $reaper = Package::Reaper->new($package);
This returns the newly generated package reaper. When the reaper goes out of scope and is garbage collected, it will delete the symbol
table entry for the package.
package
my $package = $reaper->package;
This method returns the package which will be reaped.
is_armed
if ($reaper->is_armed) { ... }
This method returns true if the reaper is armed and false otherwise. Reapers always start out armed. A disarmed reaper will not actually
reap when destroyed.
disarm
$reaper->disarm;
This method disarms the reaper, so that it will not reap the package when it is destoryed.
arm
$reaper->arm;
This method arms the reaper, so that it will reap its package when it is destroyed. By default, new reapers are armed.
AUTHOR
Ricardo SIGNES, "<rjbs@cpan.org>"
BUGS
Please report any bugs or feature requests to "bug-package-generator@rt.cpan.org", or through the web interface at <http://rt.cpan.org>. I
will be notified, and then you'll automatically be notified of progress on your bug as I make changes.
COPYRIGHT
Copyright 2006 Ricardo Signes, all rights reserved.
This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
perl v5.16.3 2009-07-09 Package::Reaper(3)
Check Out this Related Man Page
Package::Constants(3pm) Perl Programmers Reference Guide Package::Constants(3pm)NAME
Package::Constants - List all constants declared in a package
SYNOPSIS
use Package::Constants;
### list the names of all constants in a given package;
@const = Package::Constants->list( __PACKAGE__ );
@const = Package::Constants->list( 'main' );
### enable debugging output
$Package::Constants::DEBUG = 1;
DESCRIPTION
"Package::Constants" lists all the constants defined in a certain package. This can be useful for, among others, setting up an
autogenerated "@EXPORT/@EXPORT_OK" for a Constants.pm file.
CLASS METHODS
@const = Package::Constants->list( PACKAGE_NAME );
Lists the names of all the constants defined in the provided package.
GLOBAL VARIABLES
$Package::Constants::DEBUG
When set to true, prints out debug information to STDERR about the package it is inspecting. Helps to identify issues when the results are
not as you expect.
Defaults to false.
BUG REPORTS
Please report bugs or other issues to <bug-package-constants@rt.cpan.org<gt>.
AUTHOR
This module by Jos Boumans <kane@cpan.org>.
COPYRIGHT
This library is free software; you may redistribute and/or modify it under the same terms as Perl itself.
perl v5.16.3 2013-02-26 Package::Constants(3pm)
i have my application running on AIX box (configuration given below)
My application does garbage collection pretty well, as such the memory free shows 500 MB - 700 MB freed up in the log statements printed in the application, but the nmon shows the physical space going upwards and does not reflect... (0 Replies)
i have my application running on AIX box (configuration given below)
My application does garbage collection pretty well, as such the memory free shows 500 MB - 700 MB freed up in the log statements printed in the application, but the nmon shows the physical space going upwards and does not reflect... (1 Reply)
i have my application running on AIX box (configuration given below)
My application does garbage collection pretty well, as such the memory free shows 500 MB - 700 MB freed up in the log statements printed in the application, but the nmon shows the physical space going upwards and does not reflect... (1 Reply)
I find that when I want to cross-compier application for arm platform,Maybe it need to specify AR=arm-linux-ar,but if I don't specify it, it will use default one--ar,and both can works well,I think ar and arm-linux-ar is just a different ,I don't know whether I'm right.
I hope someone show me... (3 Replies)
I was wondering about the "Show Package Contents" option in OS X. I have a keynote file that I'm looking at. Exactly where are these contents or its directory stored, because they aren't visible in the Finder window, unless I obviously right click and choose to view them. And I don't think I can... (2 Replies)
I have an open source tool I am working on. As of right now, version 1 is complete but it's a set of programs in a directory. What I would like to do is create a flexible installer or package that puts things in the appropriate directories (/usr/bin ? ) or perhaps the user's personal bin directory... (7 Replies)
Ok guys, gals and geeks...
As from today I am starting to learn awk in earnest doing something totally different.
I am going to create a pseudo-Audio_Function Generator centred around OSX 10.11.x minimum. The code below is a tester to see what the possibilities are.
All waveforms will be... (11 Replies)