Variable division, assignment and sprintf in one line
- From: iaccounts@xxxxxxxxxx (Steve Bertrand)
- Date: Wed, 28 Nov 2007 14:26:22 -0500
Hi again all,
Is there a way that one can use sprintf on a variable and assign the
value back to the variable without having the leading $var= ?
$var = sprintf ("%.2f", (($var /=1024) /=1024)))
I've got a hash of hashrefs of hashrefs and I'd rather not specify the
variable name on the left and right hand side if possible.
Tks,
Steve
.
- Follow-Ups:
- Re: Variable division, assignment and sprintf in one line
- From: Jenda Krynicky
- Re: Variable division, assignment and sprintf in one line
- From: Gunnar Hjalmarsson
- Re: Variable division, assignment and sprintf in one line
- From: Aaron Priven
- Re: Variable division, assignment and sprintf in one line
- Prev by Date: Re: fixed list combinatorics
- Next by Date: Re: fixed list combinatorics
- Previous by thread: How to add commas to a number?
- Next by thread: Re: Variable division, assignment and sprintf in one line
- Index(es):
Relevant Pages
|