18 мая 2011 г. 21:28 пользователь Denis Evdokimov <[email protected]> написал: >> sub foo { return undef } >> if (@bar = foo()) { ... } > > Мне кажется, что функция, от которой ждут массива, должна всегда > возвращать массив.
If no EXPR is given, returns an empty list in list context, the undefined value in scalar context, and (of course) nothing at all in a void context. -- Денис Ибаев -- Moscow.pm mailing list [email protected] | http://moscow.pm.org
