Linux and UNIX Man Pages

Linux & Unix Commands - Search Man Pages

module::refresh(3pm) [debian man page]

Module::Refresh(3pm)					User Contributed Perl Documentation				      Module::Refresh(3pm)

NAME
Module::Refresh - Refresh %INC files when updated on disk SYNOPSIS
# During each request, call this once to refresh changed modules: Module::Refresh->refresh; # Each night at midnight, you automatically download the latest # Acme::Current from CPAN. Use this snippet to make your running # program pick it up off disk: $refresher->refresh_module('Acme/Current.pm'); DESCRIPTION
This module is a generalization of the functionality provided by Apache::StatINC and Apache::Reload. It's designed to make it easy to do simple iterative development when working in a persistent environment. It does not require mod_perl. new Initialize the module refresher. refresh Refresh all modules that have mtimes on disk newer than the newest ones we've got. Calls "new" to initialize the cache if it had not yet been called. Specifically, it will renew any module that was loaded before the previous call to "refresh" (or "new") and has changed on disk since then. If a module was both loaded for the first time and changed on disk between the previous call and this one, it will not be reloaded by this call (or any future one); you will need to update the modification time again (by using the Unix "touch" command or making a change to it) in order for it to be reloaded. refresh_module_if_modified $module If $module has been modified on disk, refresh it. Otherwise, do nothing refresh_module $module Refresh a module. It doesn't matter if it's already up to date. Just do it. Note that it only accepts module names like "Foo/Bar.pm", not "Foo::Bar". unload_module $module Remove a module from %INC, and remove all subroutines defined in it. mtime $file Get the last modified time of $file in seconds since the epoch; update_cache $file Updates the cached "last modified" time for $file. unload_subs $file Wipe out subs defined in $file. BUGS
When we walk the symbol table to whack reloaded subroutines, we don't have a good way to invalidate the symbol table properly, so we mess up on things like global variables that were previously set. SEE ALSO
Apache::StatINC, Module::Reload COPYRIGHT
Copyright 2004,2011 by Jesse Vincent <jesse@bestpractical.com>, Audrey Tang <audreyt@audreyt.org> This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself. See <http://www.perl.com/perl/misc/Artistic.html> perl v5.12.4 2011-10-26 Module::Refresh(3pm)

Check Out this Related Man Page

Net::LDAP::Extension::Refresh(3)			User Contributed Perl Documentation			  Net::LDAP::Extension::Refresh(3)

NAME
Net::LDAP::Extension::Refresh - LDAPv3 Refresh extension object (RFC 2589) SYNOPSIS
use Net::LDAP; use Net::LDAP::Extension::Refresh; $ldap = Net::LDAP->new('localhost'); $ldap->bind('cn=admin,dc=example,dc=com', password => 'password'); $mesg = $ldap->refresh(entryName => 'cn=dynamic,dc=example,dc=com', requestTtl => 100); die "error :", $mesg->code(), ": ", $mesg->error() if ($mesg->code()); print "TTL changed to ", $mesg->get_ttl(), " "; DESCRIPTION
"Net::LDAP::Extension::Refresh" implements the "Refresh" extended LDAPv3 operation as described in RFC 2589 It implements no object by itself but extends the Net::LDAP object by another method: METHODS
refresh ( OPTIONS ) Send a refresh operation for an object. OPTIONS is a list of key/value pairs. The following keys are recognized: entryName This option contains the object to refresh. It must be a DN. requestTtl This option contains the TTL in seconds requested. The server may choose to set another value as stated in RFC 2589 get_ttl ( ) Return the TTL set by the server during the previous "refresh" call. This method is a method of the Net::LDAP::Message response object returned in reply to "refresh()" in case the "refresh()" call succeeded. SEE ALSO
Net::LDAP, Net::LDAP::Extension AUTHOR
Etienne Bagnoud <etienne.bagnoud@irovision.ch> Adapted from Graham Barr Net::LDAP::Extension::SetPassword Documentation adapted from Peter Marschall Net::LDAP::Extension::SetPassword Please report any bugs, or post any suggestions, to the perl-ldap mailing list <perl-ldap@perl.org> COPYRIGHT
Copyright (c) 2010 Etienne Bagnoud. 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 2013-06-07 Net::LDAP::Extension::Refresh(3)
Man Page