in reply to I don't use printf enough
Funnily enough, I think for many cases I would write that as
print 'text text ', $obj->method1(), ' more text ', $obj->method2(), ' blah blah ', $obj->method3();
I would only use printf if I needed to apply special formatting to the method returns.
My main reasons for this choice are that
Adding 'and more text', $obj->method2.5 is easy, and commenting out one part likewise.
The absence of a newline, is because i always have -l enabled.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re2 (-l): I don't use printf enough
by bbfu (Curate) on Oct 23, 2003 at 04:03 UTC | |
by BrowserUk (Patriarch) on Oct 23, 2003 at 12:56 UTC | |
by jmcnamara (Monsignor) on Oct 23, 2003 at 13:38 UTC | |
by bart (Canon) on Oct 23, 2003 at 13:40 UTC | |
by demerphq (Chancellor) on Oct 23, 2003 at 17:12 UTC | |
by dragonchild (Archbishop) on Oct 25, 2003 at 02:42 UTC |