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

Re: Recommended file-copying method

Thread Previous | Thread Next
Johan Vromans
July 7, 2013 14:58
Re: Recommended file-copying method
Message ID:
Mark Overmeer <> 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 Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at | Group listing | About