Skip to content

Instantly share code, notes, and snippets.

@maxmanders
Created August 14, 2013 15:23
Show Gist options
  • Save maxmanders/6232120 to your computer and use it in GitHub Desktop.
Save maxmanders/6232120 to your computer and use it in GitHub Desktop.
╭─maxmanders@hedgehog ~ ‹ruby-1.9.3›
╰─$ 1=act
╭─maxmanders@hedgehog ~ ‹ruby-1.9.3›
╰─$ 2=ual
╭─maxmanders@hedgehog ~ ‹ruby-1.9.3›
╰─$ actualvariable=100
╭─maxmanders@hedgehog ~ ‹ruby-1.9.3›
╰─$ echo ${actualvariable}
100
╭─maxmanders@hedgehog ~ ‹ruby-1.9.3›
╰─$ eval "echo \$${1}${2}variable"
100
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment