Perl Monk, Perl Meditation | |
PerlMonks |
<DATA> file handle not working with Perl Starwbery 5.12.1by sufi (Initiate) |
on Dec 23, 2010 at 05:07 UTC ( [id://878727]=perlquestion: print w/replies, xml ) | Need Help?? |
sufi has asked for the wisdom of the Perl Monks concerning the following question:
Hi
I new to Perl, I have a problem in using <DATA> file handle in Perl program in windows environment. I want to use data handle(using the data (format: _ _ DATA _ _) from the same script file but it give me an error:
Program:
while(<DATA>){
print if /Norma/;
}
_ _DATA_ _
Steve Blenheim
Betty Boop
Igor Chevsky
Norma Cord
Error description:
Can't locate object method "DeLoach" via package "Karen" (perhaps you forgot to load "Karen"?) at test2.pl line 4.
Back to
Seekers of Perl Wisdom
|
|