Re: How can I evaluate within a string

2002-10-14 Thread Paul Johnson
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 > >

Re: How can I evaluate within a string

2002-10-14 Thread Jeff 'japhy' Pinyan
On Oct 14, Ramprasad A Padmanabhan said: >Is there a way I can write >print "Number of records = ++$records in the db\n"; Well, you can use the @{[ ... ]} trick: print "2 + 3 = @{[ 2 + 3 ]}\n"; or you can use the Interpolate module (found on CPAN), which allows you to use

Re: How can I evaluate within a string

2002-10-14 Thread James Edward Gray II
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 "Nu

How can I evaluate within a string

2002-10-14 Thread Ramprasad A Padmanabhan
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"; Thanks Ram -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EM