Skip to content

Instantly share code, notes, and snippets.

@textarcana
Created June 30, 2010 14:48
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save textarcana/458748 to your computer and use it in GitHub Desktop.
Save textarcana/458748 to your computer and use it in GitHub Desktop.
<portal> given the variable: $a = "asdf"
*** javs (~jjoaquin@unaffiliated/javs) has quit: Ping timeout: 240 seconds
<portal> it creeps me out that $a++ isn't the same as $a+=1 [10:47]
<portal> the first gives "asdg", the second gives the number 1
<vovcia> quite natural
*** morphic (~morphic@189.34.52.141) has joined channel #perl
<anno> ++ is magical for strings, += isn't
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment