in reply to declare string with addition of two variables
You can also make concatenation implicit by getting the sum to evaluate inside interpolating quotes:
Some people hate that, but I think it adds flavor,my $x = "Expected value is ${\($y + 2)}";
After Compline,
Zaxo
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: declare string with addition of two variables
by Fletch (Bishop) on Sep 14, 2006 at 12:25 UTC | |
|
Re^2: declare string with addition of two variables
by phemal (Sexton) on Sep 14, 2006 at 05:41 UTC |