Skip to content

Instantly share code, notes, and snippets.

@altmind
Created March 16, 2012 17:43
Show Gist options
  • Save altmind/2051375 to your computer and use it in GitHub Desktop.
Save altmind/2051375 to your computer and use it in GitHub Desktop.
irb(main):015:0> (a,b)="c/d".split("/")
=> ["c", "d"]
(a?,b?)="c/d".split("/")
SyntaxError: (irb):16: syntax error, unexpected ',', expecting ')'
(a?,b?)="c/d".split("/")
^
from /usr/bin/irb:12:in `<main>'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment