Jump to content

User talk:231013-a/Perl misunderstanding

Page contents not supported in other languages.
From Wikipedia, the free encyclopedia

Possible values

[edit]

I would help you, but i don't quite understand what do you mean by "How do I create the list of possible values for it?"

And it is not possible to have a variable name like $1. It must start with a letter, e.g. $var.

Where do these questions come from? --Amir E. Aharoni (talk) 07:23, 28 May 2009 (UTC)[reply]

By "possible values" I mean the values that a variable can have, e.g. there can be 2, 3 or 4 apples at the table; that means that a variable $apple_count can only have the values "2", "3" or "4".

For example $var_1 can only have the following values: "a", "b" or "c". How do I specify that? --V. (talk) 07:53, 28 May 2009 (UTC)[reply]

Amir, that's just an example explaining what I wish to do. Did you understand what I mean? --V. (talk) 13:28, 29 May 2009 (UTC)[reply]
$var_1 is OK, but i still don't understand the meaning of "possible values". --Amir E. Aharoni (talk) 17:15, 22 June 2009 (UTC)[reply]
Sorry for late reply. I meant (in Russian): список допустимых значений переменной. Terrible translation, wasn't it? :)--V. (talk) 12:56, 1 August 2009 (UTC)[reply]