I would like to open a file and print its contents.
I am using this code but all that is printed in a number "1".
my $datafile = "data.db";
open(FILE, "$datafile") || die "I can't open $datafile\n";
@file = <FILE>;
close(FILE);
$data = @file;
print $data;
Any ideas?
Paul Wilson.
(Dont blame me if I'm wrong!)
I am using this code but all that is printed in a number "1".
my $datafile = "data.db";
open(FILE, "$datafile") || die "I can't open $datafile\n";
@file = <FILE>;
close(FILE);
$data = @file;
print $data;
Any ideas?
Paul Wilson.
(Dont blame me if I'm wrong!)