Touch - touch a file


Touch documentation  | view source Contained in the Touch distribution.

Index


NAME

Top

Touch - touch a file

VERSION

Top

Version 0.01_01

SYNOPSIS

Top

    use Touch;

    my $self = "somefile";
    touch($myself)  # file created or atime and mtime modified
       or die "touch() failed: $!";

FUNCTIONS

Top

touch EXPR

Updates the access and modification times of the file indicated by EXPR to the current time.

TODO

Top

There are a lot of additional options that surely would be nice to have. They include:

Ability to touch based on a FILEHANDLE or a DIRHANDLE on systems with the futimes() C library function.
Ability to set just access or modification times.
Ability to indicate the time and date to use.
Ability to set times based on another existing file, filehandle, or dirhandle.
Ability to set times to the nanosecond level on system that support it.

AUTHOR

Top

Steve Peters, <steve at fisharerojo.org>

BUGS

Top

Please report any bugs or feature requests to bug-touch at rt.cpan.org, or through the web interface at http://rt.cpan.org/NoAuth/ReportBug.html?Queue=Touch. I will be notified, and then you'll automatically be notified of progress on your bug as I make changes.

SUPPORT

Top

You can find documentation for this module with the perldoc command.

    perldoc Touch

You can also look for information at:

* AnnoCPAN: Annotated CPAN documentation

http://annocpan.org/dist/Touch

* CPAN Ratings

http://cpanratings.perl.org/d/Touch

* RT: CPAN's request tracker

http://rt.cpan.org/NoAuth/Bugs.html?Dist=Touch

* Search CPAN

http://search.cpan.org/dist/Touch

COPYRIGHT & LICENSE

Top


Touch documentation  | view source Contained in the Touch distribution.