You can use Spreadsheet :: Read , which will delegate the appropriate module to read spreadsheets in various formats such as Excel, OpenOffice and CSV.
On the other hand, given your description of the problem, I think it would be much better for you to use the standard configuration file format:
#!/usr/bin/perl use Config::Std; read_config 'ftp.ini' => my %config; for my $file ( keys %config ) { print "File: '$file'\n"; print "$_: ", $config{$file}->{$_}, "\n" for qw( site protocol remote_name); }
ftp.ini :
[c: \ Documents and Settings \ user \ My Documents \ this.txt]
site = ftp.example.com
protocol = ftp
remote_name = that.txt
Sinan Ünür
source share