perl_99_monk has asked for the wisdom of the Perl Monks concerning the following question:
can i convert the file to unix format before tarring it up ? Any other ideas??? Thanksopen(FilesToPut, "test.txt") or die "can't open test.txt: $!"; my $tar = Archive::Tar->new(); while (<FilesToPut>) { chomp; $tar->add_files($_); } $tar->write('test.tar'); }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Dos to Unix conversion
by Roy Johnson (Monsignor) on Nov 18, 2005 at 19:53 UTC | |
|
Re: Dos to Unix conversion
by planetscape (Chancellor) on Nov 19, 2005 at 06:10 UTC | |
|
Re: Dos to Unix conversion
by pileofrogs (Priest) on Nov 18, 2005 at 19:46 UTC | |
by sauoq (Abbot) on Nov 18, 2005 at 22:18 UTC | |
by Muoyo (Novice) on Nov 18, 2005 at 19:57 UTC | |
by perl_99_monk (Novice) on Nov 18, 2005 at 20:21 UTC | |
by Muoyo (Novice) on Nov 20, 2005 at 13:08 UTC |