On Mon, 20 Sep 2004, Roime bin Puniran wrote:

> I am new in PERL programming...

Okay -- it's "Perl" for the language, "perl" for the program that runs 
programs written in the language, and "PERL" for nothing. In spite of 
what some of the docs jokingly say, "Perl" doesn't stand for anything, 
so it shouldn't be capitalized as if it's an acronym.

> I have one question to ask..How can i transfer a folder in 2 different 
> machine using Net::FTP...Now, i can transfer a sigle file between 2 
> machine but i am still having problemm to transfer a folder using 
> Net::FTP...Did anybony have any idea?....Please help me......

Would making a tarball out of it be an option?

That's the old-fashioned but proven way to send directories full of 
files around: make a tarball (`tar -cvf files.tar dir/`), send it to the 
remote machine, then unpack it (`tar -zxv files.tar`).

If you're on Windows, a zip archive is roughly equivalent, but I'm not 
sure how that could be driven from Perl (I'm sure it could be done, I 
just don't know what way makes sense). On the other hand, Archive::Tar 
should be able to do it nicely:

<http://search.cpan.org/~kane/Archive-Tar-1.10/lib/Archive/Tar.pm>
 

-- 
Chris Devers

-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
<http://learn.perl.org/> <http://learn.perl.org/first-response>


Reply via email to