Variable names limitation

Do we have any limitation in variable declerations. For instance how
long a variable name can be? is there any name convention do we start a
variable with a number (we tried and see it is not start with a number)
but If you know any other limitation about variable such that could you
share with us
Thank you in advance.

···

--
Posted via http://www.ruby-forum.com/.

Noyan Aydin wrote:

Do we have any limitation in variable declerations. For instance how
long a variable name can be? is there any name convention do we start a
variable with a number (we tried and see it is not start with a number)
but If you know any other limitation about variable such that could you
share with us
Thank you in advance.

AFAIK, it's /[_a-zA-Z][_a-zA-Z0-9]*/ :stuck_out_tongue_winking_eye:

A pretty much ubiquitous convention.

David Vallner