Re: how to use "while" with <<EOF?



jidanni@xxxxxxxxxxx <jidanni@xxxxxxxxxxx> wrote:

Gentlemen, the perl docs don't anywhere reveal how to use "while" with
<<EOF.


A here-doc is simply another way of quoting a string.

The docs also don't reveal how to use "while" with a quoted string.

Such a program would run for a very long time...


How do you say this right?:


That depends entirely on what you expect it to do, and you have
not told us what you want to do!


while(<<EOF){
a
b
c
EOF
print;
}sorry.


while ( "a\nb\nc\n" ) {
print;
}sorry.


--
Tad McClellan
email: perl -le "print scalar reverse qq/moc.noitatibaher\100cmdat/"
.



Relevant Pages