GID::IO - IO functions of GID, like dir() and file()
version 0.004
use GID::IO; my $dir = dir('/home/foo'); my $file = $dir->file('bar.txt'); my $other_file = file('some','path','foobar.txt'); my $tempdir = tempdir; my $tempfile = tempfile; my $other_tempfile = $tempdir->tempfile; $other_tempfile->spew('I will disappear'); $file->touch; my $subdir = $dir->mkdir('foobar'); $subdir->rmrf; $dir->files(sub { print "Filename in $dir: $_\n"; }); print "$dir not empty" unless $dir->rm; $file->rm;
See GID::File and GID::Dir
Torsten Raudssus <torsten@raudss.us>
This software is copyright (c) 2012 by Torsten Raudssus.
This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.
To install GID::Manual, copy and paste the appropriate command in to your terminal.
cpanm
cpanm GID::Manual
CPAN shell
perl -MCPAN -e shell install GID::Manual
For more information on module installation, please visit the detailed CPAN module installation guide.