develooper Front page | perl.golf | Postings from August 2002

Rotating Sequences question

From:
Julien Quint
Date:
August 26, 2002 07:43
Subject:
Rotating Sequences question
Message ID:
20020826141539.GA4761@houdini.imag.fr
Hi all,

I have a question about the Rotating Sequences problem from Terje
(http://terje.dev.webon.net/golf/rot.html). Should the newline at the end
of each input line be discarded, or should it be kept? If it is kept, then
there is a blank line at the end of the output, e.g.

> ./rotate.pl
Rene Decartes once said,
"I think, therefore I am."
"R
Ie
 n
te
h 
iD
ne
kc
,a
 r
tt
he
es
r 
eo
fn
oc
re
e 
 s
Ia
 i
ad
m,
..
"

>

Pom



nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About