Here is a code snippet
open(SOURCE, $input) || die "Cannot Open $input: $!\n";
while( <SOURCE> )
{
chomp($File = $_);
open(FILE, $File) || die "Cannot Open $File: $!\n";
$inputString = <FILE>;
print "$inputString\n";
But for some reason the inputString is empty, even though I made sure the file it was reading is not...what's going on??
I am new to Perl please help!
open(SOURCE, $input) || die "Cannot Open $input: $!\n";
while( <SOURCE> )
{
chomp($File = $_);
open(FILE, $File) || die "Cannot Open $File: $!\n";
$inputString = <FILE>;
print "$inputString\n";
But for some reason the inputString is empty, even though I made sure the file it was reading is not...what's going on??
I am new to Perl please help!