[EMAIL PROTECTED] wrote:
I have a program with a line like
while (<FILE>) {
if (/stuff/i) {
print;
}
}
When I run the program, and I replace "stuff" with only one character,
like "d", it works exactly as I expect. But if instead of using "d", I
use "da" or "date" (which I know are in FILE, because it's a text file
I made) nothing prints on the screen. I've also tried to have it print
to another file, and that's turned out blank too.
What am I doing wrong?
You are making a weird claim, without presenting any Perl code that
supports the claim.
Please post a short but _complete_ program, that illustrates the issue
you are experiencing. Make use of the __DATA__ token, so people can just
copy and run your program.
--
Gunnar Hjalmarsson
Email: http://www.gunnar.cc/cgi-bin/contact.pl
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
http://learn.perl.org/