Lance Prais wrote:
#open a file with the filehandle
open WORKFLOW, ..\\..\\workflow.txt or die Cannot open Workflow $!\n;
my $data = WORKFLOW for (1..21);
while # loop through the workflow.txt
chomp; #a)
my $line=$_;
print STDERR \nline: $line;
}
The above code is
#open a file with the filehandle
open WORKFLOW, ..\\..\\workflow.txt or die Cannot open Workflow $!\n;
my $data = WORKFLOW for (1..21);
while (WORKFLOW){# loop through the workflow.txt
chomp; #a)
my $line=$_;
print STDERR \nline: $line;
}
The above code is reading a txt file