Amer Neely <> wrote:
> John Bokma wrote:
>> "Trudge" <> wrote:
>>
>>> print <<EndOfText;
>>> Why doesn't this work?
>>> EndOfText
>>
>> Put the cursor just after the t and press return.
>>
>> Configure your editor to trim tailing spaces/tabs. (Textpad can do
>> this).
>>
>
> Did both. Still get the same results.
C:\Documents and Settings\John\My Documents>eot.pl
Why doesn't this work?
C:\Documents and Settings\John\My Documents>type eot.pl
print <<EndOfText;
Why doesn't this work?
EndOfText
C:\Documents and Settings\John\My Documents>
You're sure there is a newline after EndOfText?
Might be that you have accidently pressed a key combination that inserts a
hidden character in your terminator. I would delete EndOfText (twice), and
type it in again (once), and copy it.
--
John Experienced Perl programmer:
http://castleamber.com/
Perl help, tutorials, and examples:
http://johnbokma.com/perl/