blakee
Programmer
- Jan 18, 2005
- 22
Whats wrong with this code? I'm new at this stuff and I kept reading tutorials and it dosen't seem anything is wrong with it except it dosen't print any text in the foreach loop.. Oh and I'm also on a Windows OS..
#!usr/local/bin/perl
use strict;
$data_file="test.txt";
open(TEST, $data_file) || die("Could not open $data_file");
@raw_data=<TEST>;
close(TEST);
foreach $test (@raw_data)
{
print "$test";
}
#!usr/local/bin/perl
use strict;
$data_file="test.txt";
open(TEST, $data_file) || die("Could not open $data_file");
@raw_data=<TEST>;
close(TEST);
foreach $test (@raw_data)
{
print "$test";
}