From: "perl.org" <[EMAIL PROTECTED]>
> On Wed, 14 Jul 2004 22:49:42 +0200, Jenda Krynicky wrote
> >
> > And does the language-that-should-not-be-named support this?
> >
> > ($x, $y) = some_function( $some, $params);
>
> Sure, a method can return an array (or a Hash, depending on your
> object types). It's just generally considered bad programming
> practice, like storing multiple values in a single database column.
I did not ask whether it supports the equivalent of
@ary = some_function( $some, $params);
$x = $ary[0];
$y = $ary[1];
And yeah I understand it's bad practice. It confuses the old C
programmers used to call "function" something that doesn't return
anything, but changes an array whose address the "function" got as a
parameter. Bleargh.
Jenda
===== [EMAIL PROTECTED] === http://Jenda.Krynicky.cz =====
When it comes to wine, women and song, wizards are allowed
to get drunk and croon as much as they like.
-- Terry Pratchett in Sourcery
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
<http://learn.perl.org/> <http://learn.perl.org/first-response>