in reply to Re: Why doesn't % interpolate?
in thread Why doesn't % interpolate?

Okay, I can change the post to say "why was % selected as a sigil given that it was a printf meta character and would cause interpolation problems?". I don't think the answer to that is short-sightedness.

The reason for % not interpolating has got to be something other than "because printf would be harder to use". chromatic's answer seems to provide a better explanation.

Update: What I meant to say is that if Larry wanted hashes to interpolate, he could've easily done so without having a major problem with printf (either by chosing another sigil for hashes or by changing printf's meta character).

Replies are listed 'Best First'.
Re: Why doesn't % interpolate?
by Abigail-II (Bishop) on Apr 19, 2003 at 20:38 UTC
    I never claimed that was the reason they don't interpolate. But it is a reason to not start interpolating them now.

    Abigail

      Sorry if I misread your comment in Re: Why doesn't % interpolate? which stated:
      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.

      Update: Sorry, that was very rude of me.