On Mon, Oct 14, 2002 at 09:10:56AM -0500, James Edward Gray II wrote: > On Monday, October 14, 2002, at 09:06 AM, Ramprasad A Padmanabhan > wrote: > > >Dear all, > > > > Is there a way I can write > > print "Number of records = ++$records in the db\n"; > > instead of > > print "Number of records = " . ++$records . "in the > >db\n"; > > print "Number of records = ", ++$records, "in the db\n"; > > ....but I doubt this is what you are looking for. What's wrong with the > above choices, if you don't mind my asking?
Other options include: print "Number of records = @{[++$records]} in the db\n"; and http://search.cpan.org/author/JENDA/Interpolation-0.68/Interpolation.pm But neither is necessarily guaranteed to improve the maintainability of your code. You could also wait for Perl 6 ... -- Paul Johnson - [EMAIL PROTECTED] http://www.pjcj.net -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]