develooper Front page | perl.perl5.porters | Postings from July 2013

Re: Recommended file-copying method

Thread Previous | Thread Next
From:
Johan Vromans
Date:
July 7, 2013 14:58
Subject:
Re: Recommended file-copying method
Message ID:
m2vc4m5se0.fsf@phoenix.squirrel.nl
Mark Overmeer <mark@overmeer.net> writes:

> Copy is like clone(), but on file-system level.  When you accept that a
> file is just a (complex) data-type like any other,
> $file->copy($destination) is the obvious syntax.

In this case, it would be $file->store($destination) since it is a move
from internal to external storage.

Nevertheless, Path::Class is about manipulating file names, not file
data. A copy method doet not belong here.

-- Johan

Thread Previous | Thread Next


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About