MouseX::Types::Path::Class(3pm) User Contributed Perl Documentation MouseX::Types::Path::Class(3pm)NAME
MouseX::Types::Path::Class - A Path::Class type library for Mouse
SYNOPSIS
CLASS TYPES
package MyApp;
use Mouse;
use MouseX::Types::Path::Class;
has 'dir' => (
is => 'ro',
isa => 'Path::Class::Dir',
required => 1,
coerce => 1,
);
has 'file' => (
is => 'ro',
isa => 'Path::Class::File',
required => 1,
coerce => 1,
);
CUSTOM TYPES
package MyApp;
use Mouse;
use MouseX::Types::Path::Class qw(Dir File);
has 'dir' => (
is => 'ro',
isa => Dir,
required => 1,
coerce => 1,
);
has 'file' => (
is => 'ro',
isa => File,
required => 1,
coerce => 1,
);
DESCRIPTION
MouseX::Types::Path::Class creates common Mouse types, coercions and option specifications useful for dealing with Path::Class objects as
Mouse attributes.
Coercions (see Mouse::Util::TypeConstraints) are made from both "Str" and "ArrayRef" to both Path::Class::Dir and Path::Class::File
objects. If you have MouseX::Getopt installed, the Getopt option type ("=s") will be added for both Path::Class::Dir and
Path::Class::File.
TYPES
Dir
A Path::Class::Dir class type.
Coerces from "Str" and "ArrayRef" via "new" in Path::Class::Dir.
File
A Path::Class::File class type.
Coerces from "Str" and "ArrayRef" via "new" in Path::Class::File.
AUTHOR
NAKAGAWA Masaki <masaki@cpan.org>
THANKS TO
"AUTHOR" in MooseX::Types::Path::Class
LICENSE
This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
SEE ALSO
Mouse, MouseX::Types,
Path::Class,
MooseX::Types::Path::Class
perl v5.14.2 2012-04-01 MouseX::Types::Path::Class(3pm)
Check Out this Related Man Page
Data::Stream::Bulk::Path::Class(3pm) User Contributed Perl Documentation Data::Stream::Bulk::Path::Class(3pm)NAME
Data::Stream::Bulk::Path::Class - Path::Class::Dir traversal
VERSION
version 0.11
SYNOPSIS
use Data::Stream::Bulk::Path::Class;
my $dir = Data::Stream::Bulk::Path::Class->new(
dir => Path::Class::Dir->new( ... ),
);
DESCRIPTION
This stream produces depth or breadth first traversal order recursion through Path::Class::Dir objects.
Items are read iteratively, and a stack of open directory handles is used to keep track of state.
ATTRIBUTES
chunk_size
Defaults to 250.
depth_first
Chooses between depth first and breadth first traversal order.
only_files
If true only Path::Class::File items will be returned in the output streams (no directories).
METHODS
is_done
Returns true when no more files are left to iterate.
next
Returns the next chunk of Path::Class objects
AUTHOR
Yuval Kogman <nothingmuch@woobling.org>
COPYRIGHT AND LICENSE
This software is copyright (c) 2012 by Yuval Kogman.
This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.
perl v5.14.2 2012-02-14 Data::Stream::Bulk::Path::Class(3pm)
I would like to configure my SuSE 7.0 workstation more securely. I have attempted for about two weeks to find a guideline on good practices for the file and directory permissions.........but to no avail.
Does anyone have a guideline that I could use to help me out. I realize that the distros are... (11 Replies)
I am fairly new to HP-UX, so I am not very skilled yet. I am trying to make use of Secure Path. The only documentation I have found on the HP web site shows me how to install it and release notes. I have not found any information on how to actually use it for the SAN storage I have presented. ... (2 Replies)
Guys,
A quick question..
I am tasked with Outputing a Long Dir and Sub Dir with atleast 10 Levels Deep with the Name of Directory, and path and the Chmod (77x) in an excel spreadsheet.
I don't want to do it manually.
I know i can get the listing with ls -R command. for all the files... (2 Replies)
Hi.....
I'm kind of new to c programming in Unix...need help here.
Supposed to write a source code to support Path environment variable for my programming assignment for Spring semester.
but i'm kind of stuck. Could anyone out there assist me?
prompt> /bin/ls
My program could output... (3 Replies)
Hi,
I have a file with the following contents
# Lines that start with a # are comments.
#
# Calling TOAD like this will perform a comparison from command line :
#
# "C:\Program Files\Quest Software\Toad for Oracle 9.6\toad.exe" -c... (2 Replies)
Hi there
I'm new to UNIX scripting; I’m stuck with the following
I have an Oracle SQL script that takes three parameters
1- File Name
2- File Path
3- File creation date
Under UNIX I have a folder where files will be placed frequently and I need to upload those files to Oracle, what I need... (3 Replies)
Hello All,
I am application admin. I need to clear all the temporary files cleared by the applications. I need help/suggestion that is there any way to create a file system such that every Dir created in by any user will have 775 permissions. So, that i can simply clear the temporary file which... (6 Replies)
Hello all,
I have a question. I need to get some information on files in a directory and all sub directories. I need the following information on every file.
Name
Path
Size in bytes
File Type
I have managed to get the first three but cant find out how to get file type.
Any ideas?
... (5 Replies)
Their are lot of files under the dir prod. I would like to get the file name which contain the word hello.
File name firstprog.txt
Dir structure : t01/Admin/prod
I am using the below and does not work
/t01/Admin# grep -l hello /t01/Admin/* ( I am in the Admin dir and grep)
... (6 Replies)
Hello Gurus,
I have a file this
Dir Path 1
Connection pool="somename"; "DataSource Name"="DS name"; Password="pwd"; User Id="uid";some other fields
Dir Path2
Password="pwd2"; User id="uid2"; Connection pool="somename2"; "datasource name"="DS name2";some other fields.
Under each dir... (14 Replies)
Hi,
I would like to know how to grep all the paths in a file having extension .BMP
For e.g.
File Name :
sample.txt
File Content :
xxxxxxxxxxxxxxxxx
xxxxx/root/cdrive/picure.BMP xxxx
xxxxxxxxxxx
xxxxx/root/ddrive/picure.BMP xxxx
xxxxxxxxxxx
Expected Output : ... (4 Replies)
Hi All,
I have Dir which have 2-3 file and i want to change name of the file base on other text file.
Dir : home/XXX/
201.log
203.log
301.log
CR.txt have Below Data
201 ABC1
203 XYZ2
301 PQR3
Not it Want to Change File Name:- home/XXX/
ABC1.log
XYZ2.log
PQR3.log (2 Replies)