http://www.perlmonks.org?node_id=634170


in reply to what would you like to see in perl5.12?

Just a small thing: Have << and >> work on strings.

- tye        

  • Comment on Re: what would you like to see in perl5.12? (bit shift strings)

Replies are listed 'Best First'.
Re^2: what would you like to see in perl5.12? (bit shift strings)
by ikegami (Patriarch) on Aug 21, 2007 at 19:48 UTC
    oh! yes please! I forgot about that limitation, but I've hit up against it before.
Re^2: what would you like to see in perl5.12? (bit shift strings)
by ysth (Canon) on Aug 21, 2007 at 23:07 UTC
    That would be nice, yes. There's a proposal on the books to have a pragma to enable this.
      <joke> There'd have to be a @{^carry} "register" to hold bits left-shifted off the front. </joke>