Linux and UNIX Man Pages

Linux & Unix Commands - Search Man Pages

dirhandle(3perl) [debian man page]

DirHandle(3perl)					 Perl Programmers Reference Guide					  DirHandle(3perl)

NAME
DirHandle - supply object methods for directory handles SYNOPSIS
use DirHandle; $d = DirHandle->new("."); if (defined $d) { while (defined($_ = $d->read)) { something($_); } $d->rewind; while (defined($_ = $d->read)) { something_else($_); } undef $d; } DESCRIPTION
The "DirHandle" method provide an alternative interface to the opendir(), closedir(), readdir(), and rewinddir() functions. The only objective benefit to using "DirHandle" is that it avoids namespace pollution by creating globs to hold directory handles. perl v5.14.2 2011-09-19 DirHandle(3perl)

Check Out this Related Man Page

Module::Pluggable::Object(3perl)			 Perl Programmers Reference Guide			  Module::Pluggable::Object(3perl)

NAME
Module::Pluggable::Object - automatically give your module the ability to have plugins SYNOPSIS
Simple use Module::Pluggable - package MyClass; use Module::Pluggable::Object; my $finder = Module::Pluggable::Object->new(%opts); print "My plugins are: ".join(", ", $finder->plugins)." "; DESCRIPTION
Provides a simple but, hopefully, extensible way of having 'plugins' for your module. Obviously this isn't going to be the be all and end all of solutions but it works for me. Essentially all it does is export a method into your namespace that looks through a search path for .pm files and turn those into class names. Optionally it instantiates those classes for you. This object is wrapped by "Module::Pluggable". If you want to do something odd or add non-general special features you're probably best to wrap this and produce your own subclass. OPTIONS
See the "Module::Pluggable" docs. AUTHOR
Simon Wistow <simon@thegestalt.org> COPYING
Copyright, 2006 Simon Wistow Distributed under the same terms as Perl itself. BUGS
None known. SEE ALSO
Module::Pluggable perl v5.14.2 2010-12-30 Module::Pluggable::Object(3perl)
Man Page

5 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Perl scirpt for automatic file transfer

Hi , can any one help me with a perl script for automating file transfer ? At each step i need to check for the success or failure . I am trying to connect to the target system for a specified number of times.if it doesnt connect even after 3 retries then the script should exit. and i have to... (8 Replies)
Discussion started by: sveera
8 Replies

2. Shell Programming and Scripting

Need to check 1 file against others in a folder

I'm trying to compare 1 file(the boiler plate file we'll call it) against others in the same folder. I need to see if the other files have extra keys in them. i.e. - the other files should have the same amount of variables as found in boiler plate file File1.txt format: ----beginning of... (9 Replies)
Discussion started by: discostu
9 Replies

3. UNIX for Advanced & Expert Users

Clean up Scripts

Hi i have a perl script that i use to clean up empty folders on our server. I need to make a amendment to this to exclude certain folders. Folders are invisible to end users but must not be cleaned up by this script. folders i need protecting have unique names .Highres .HighresF .Lowres... (0 Replies)
Discussion started by: treds
0 Replies

4. UNIX for Dummies Questions & Answers

Binary Installation

I need to install the Linux clive binary to allow downloading & streaming of audio/video content. I attempted to install the bin using the README instructions which referenced a .pl script. This then advised me I needed to install Perl 5.8.9 to run, which I have done (and obviously made a balls of... (10 Replies)
Discussion started by: rob171171
10 Replies

5. Shell Programming and Scripting

Add unique identifier from file to filetype in directory

I am trying to add a unique identifier to two file extensions .bam and .vcf in a directory located at /home/cmccabe/Desktop/index/R_2016_09_21_14_01_15_user_S5-00580-9-Medexome. The identifier is in $2 of the input file. What the code below is attempting to do is strip off the last portion... (21 Replies)
Discussion started by: cmccabe
21 Replies