Syntactic Confectionery Delight | |
PerlMonks |
Regexp pattern match problemby yorkwu (Novice) |
on Aug 20, 2007 at 06:06 UTC ( [id://633712]=perlquestion: print w/replies, xml ) | Need Help?? |
yorkwu has asked for the wisdom of the Perl Monks concerning the following question:
Hi Monks, I was trying to write a script to know if the pattern in file "input.data" match __DATA__. The script as bellow. Content of file "input.data" The expected result is: The actual result is: I was guessing maybe I should add "\" to deal with "\" in the file "input.data". So I did bellow test. But it still doesn't match! I'm confused. I should mess up some basic concept. Could anyone give me a hand? Thanks in advance! York
Back to
Seekers of Perl Wisdom
|
|