Re: how to use "while" with <<EOF?
- From: Tad J McClellan <tadmc@xxxxxxxxxxxxxx>
- Date: Fri, 23 Jan 2009 22:31:28 -0600
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/"
.
- Follow-Ups:
- Re: how to use "while" with <<EOF?
- From: jidanni
- Re: how to use "while" with <<EOF?
- References:
- how to use "while" with <<EOF?
- From: jidanni
- how to use "while" with <<EOF?
- Prev by Date: Re: how to use "while" with <<EOF?
- Next by Date: Re: inputting the ephemerides
- Previous by thread: Re: how to use "while" with <<EOF?
- Next by thread: Re: how to use "while" with <<EOF?
- Index(es):
Relevant Pages
|