[EMAIL PROTECTED] (Randal L. Schwartz) writes:
> So is that something we've agreed, that lvalue subs are *always*
> scalars? That'd mean we can move on to the various implementation
> details. :)
Err, I for one would like to see *any* data types lreturn-able.
If a subroutine can return a list, why not an array or hash?
my (@names, @ranks, @others);
sub select_container ($description) {
switch ($description) {
case /name/i { lreturn @names }
case /rank/i { lreturn @ranks }
lreturn @others
}
}
while (<>) {
push select_container, $_;
}
Damian
- Re: RFC 132 (v1) subroutines should be... Nathan Wiger
- Re: RFC 132 (v1) subroutines should be... Damian Conway
- Re: RFC 132 (v1) subroutines should be abl... Damian Conway
- Re: RFC 132 (v1) subroutines should be... Chaim Frenkel
- Re: RFC 132 (v1) subroutines should be able to return a... Randal L. Schwartz
- Re: RFC 132 (v1) subroutines should be able to ret... Johan Vromans
- Re: RFC 132 (v1) subroutines should be able to... Randal L. Schwartz
- Re: RFC 132 (v1) subroutines should be abl... Johan Vromans
- Re: RFC 132 (v1) subroutines should be... Nathan Torkington
- Re: RFC 132 (v1) subroutines shou... Johan Vromans
- Re: RFC 132 (v1) subroutines should be abl... Damian Conway
- Re: RFC 132 (v1) subroutines should be... Johan Vromans
- Re: RFC 132 (v1) subroutines shou... Chaim Frenkel
- Re: RFC 132 (v1) subroutines ... Johan Vromans
- Re: RFC 132 (v1) subroutines ... Chaim Frenkel
- Re: RFC 132 (v1) subroutines ... Johan Vromans
- Re: RFC 132 (v1) subroutines ... Chaim Frenkel
- Re: RFC 132 (v1) subroutines shou... Damian Conway
- Re: RFC 132 (v1) subroutines should be able to ret... David L. Nicol
- Re: RFC 132 (v1) subroutines should be able to return a... David L. Nicol
- Re: RFC 132 (v1) subroutines should be able to ret... Johan Vromans
