LoginSignup
0

More than 5 years have passed since last update.

substr の引数がでかいとき

Last updated at Posted at 2012-12-26
$ perl -e 'print substr "abc", 2**32-1'
c

ここも32ビット符号付き整数として処理されるぽいですね。 (64ビット環境なのだけど...)

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0