I've tried variations of putc, puts, and print. All fail in different
ways.
--
-- Jim Weirich jim@weirichhouse.org http://onestepback.org
-----------------------------------------------------------------
"Beware of bugs in the above code; I have only proved it correct,
not tried it." -- Donald Knuth (in a memo to Peter van Emde Boas)
n.times returns n, so gsub, expecting a string instead of a number,
croaks at that.
I'm not sure if calling output functions inside a substitution is
something you really want to do... wouldn't something like Jim's
answer, or even " " * 5 make more sense?
Sam
···
On 11/15/05, davidpthomas@gmail.com <davidpthomas@gmail.com> wrote:
I've tried variations of putc, puts, and print. All fail in different
ways.
thoughts? -- dave
--
ara [dot] t [dot] howard [at] gmail [dot] com
all happiness comes from the desire for others to be happy. all misery
comes from the desire for oneself to be happy.
-- bodhicaryavatara
--
-- Jim Weirich jim@weirichhouse.org http://onestepback.org
-----------------------------------------------------------------
"Beware of bugs in the above code; I have only proved it correct,
not tried it." -- Donald Knuth (in a memo to Peter van Emde Boas)