in reply to Reading XLS file using Perl

"Sorry update: I want to copy a .xls to another .xls file i tried"

If you simply want to create a copy of file you don't need to read and parse it.

#!/usr/bin/perl use strict; use warnings; use File::Copy; copy("source.xls","target.xls") or die "Copy failed: $!"

File::Copy.

Replies are listed 'Best First'.
Re^2: Reading XLS file using Perl
by Anonymous Monk on Feb 12, 2014 at 17:03 UTC
    Speaking of exceptions Path::Tiny also uses File::Copy :)
    $ perl -le " use Path::Tiny qw/ path /; path( 1 )->copy( 666 ) " copy failed for 1 to 666: No such file or directory at -e line 1.

      This is news to me, looks useful. Thanks.