[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?
My guess would be that you are creating a UTF-16LE text file on Windows
and trying to read it on your Mac?
John
--
Perl isn't a toolbox, but a small machine shop where you
can special-order certain sorts of tools at low cost and
in short order. -- Larry Wall
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
http://learn.perl.org/