I am a beginner in PERL..learning the basics..using Strawberry Perl on Windows Vista
I created a text file 'fragment.txt' and saved it in the same directory..
I have used the following code to open the file
$proteinfilename = 'fragment.txt';
$protein = <PROTEINFILE>;
print " here is the protein:\n\n";
but the output I get is:
readline() on closed filehandle PROTEINFILE at C:\strawberry\perl\bin\
+trial1.pl line 4
here is the protein:
Use of uninitialized value $protein in print at C:\strawberry\perl\bin
+\trial1.pl line 7
I face the same problem with trying to open any other file as well..