in reply to Re: Re: Why doesn't % interpolate?
in thread Why doesn't % interpolate?
There's limited value in having hashes interpolate directly; it's not as useful as interpolation of scalars and arrays. It would be very annoying though, as you would not be able to write
printf "%d %s %f\n", $int, $str, $float;
because that would try to interpolate three hashes.
However, it's still relative simple to interpolate a hash:
print "@{[%hash]}";
Abigail
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: Why doesn't % interpolate?
by Anonymous Monk on Apr 19, 2003 at 20:16 UTC | |
by Abigail-II (Bishop) on Apr 19, 2003 at 20:35 UTC | |
by Anonymous Monk on Apr 19, 2003 at 21:18 UTC | |
by Abigail-II (Bishop) on Apr 19, 2003 at 23:45 UTC | |
by Anonymous Monk on Apr 19, 2003 at 23:53 UTC |