~ubuntu-branches/ubuntu/quantal/libfile-fu-perl/quantal

« back to all changes in this revision

Viewing changes to lib/File/Fu/Base.pm

  • Committer: Bazaar Package Importer
  • Author(s): gregor herrmann, Jonathan Yu, Salvatore Bonaccorso, Ryan Niebur, gregor herrmann
  • Date: 2010-03-06 20:02:11 UTC
  • mfrom: (1.1.1 upstream)
  • Revision ID: james.westby@ubuntu.com-20100306200211-tj6mzzjkofmp8kg3
Tags: 0.0.7-1
[ Jonathan Yu ]
* New upstream release
* Standards-Version 3.8.4 (no changes)
* Rewrite control description

[ Salvatore Bonaccorso ]
* debian/control: Changed: Replace versioned (build-)dependency on
  perl (>= 5.6.0-{12,16}) with an unversioned dependency on perl (as
  permitted by Debian Policy 3.8.3).

[ Ryan Niebur ]
* Update jawnsy's email address

[ gregor herrmann ]
* debian/control: Changed: (build-)depend on perl instead of perl-
  modules.
* Add /me to Uploaders.
* Convert to source format 3.0 (quilt).
* Add patch to fix a spelling mistake.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
package File::Fu::Base;
2
 
$VERSION = v0.0.6;
 
2
$VERSION = v0.0.7;
3
3
 
4
4
use warnings;
5
5
use strict;
230
230
} # end subroutine chmod definition
231
231
########################################################################
232
232
 
 
233
=head2 rename
 
234
 
 
235
Calls the builtin rename() on the $path and returns a new object with
 
236
that name.
 
237
 
 
238
  $path = $path->rename($newname);
 
239
 
 
240
=cut
 
241
 
 
242
sub rename :method {
 
243
  my $self = shift;
 
244
  my ($name) = @_;
 
245
 
 
246
  rename($self, $name) or
 
247
    croak("cannot rename '$self' to '$name' $!");
 
248
  return($self->new($name));
 
249
} # end subroutine rename definition
 
250
########################################################################
 
251
 
233
252
=head1 Stat Object
234
253
 
235
254
The stat() and lstat() methods both return a File::stat object.