|
ru.perl- RU.PERL ---------------------------------------------------------------------- From : Ivan Frolcov 2:5020/400 27 Mar 2003 17:01:16 To : Yury Kopyl Subject : Re: Concat HASH. -------------------------------------------------------------------------------- On Thu, 27 Mar 2003 05:46:29 +0000 (UTC), "Yury Kopyl" <hrg@promekbank.ru> wrote: > >> Вопрос - есть ли какая > IF> @hash1{keys %hash2} = values %hash2; >Хм...а точно keys и values выдаст ключи и значения в одном том же порядке? D:\>perldoc -f values values HASH Returns a list consisting of all the values of the named hash. (In a scalar context, returns the number of values.) The values are returned in an apparently random order. The actual random order is subject to change in future versions of perl, but it is guaranteed to be the same order as either the "keys" or "each" function would produce on the same (unmodified) hash. [...] --- ifmail v.2.15dev5 * Origin: Golden Telecom (2:5020/400) Вернуться к списку тем, сортированных по: возрастание даты уменьшение даты тема автор
Архивное /ru.perl/2080e6322d99.html, оценка из 5, голосов 10
|