[33115] in Perl-Users-Digest
Perl-Users Digest, Issue: 4391 Volume: 11
daemon@ATHENA.MIT.EDU (Perl-Users Digest)
Mon Mar 16 16:09:17 2015
Date: Mon, 16 Mar 2015 13:09:03 -0700 (PDT)
From: Perl-Users Digest <Perl-Users-Request@ruby.OCE.ORST.EDU>
To: Perl-Users@ruby.OCE.ORST.EDU (Perl-Users Digest)
Perl-Users Digest Mon, 16 Mar 2015 Volume: 11 Number: 4391
Today's topics:
Re: interior arrows <gamo@telecable.es>
Digest Administrivia (Last modified: 6 Apr 01) (Perl-Users-Digest Admin)
----------------------------------------------------------------------
Date: Mon, 16 Mar 2015 20:09:39 +0100
From: gamo <gamo@telecable.es>
Subject: Re: interior arrows
Message-Id: <me79pm$vri$1@speranza.aioe.org>
El 15/03/15 a las 22:32, Rainer Weikusat escribió:
> Omitting arrows between bracketed subscripts is possibly not such a good
> idea as this may adversely affect legibility. Case in point:
>
> sub get_obj_at
> {
> return $_[0]->[IN_ORDER]->[$_[1]];
> }
>
> versus
>
> sub get_obj_at
> {
> return $_[0][IN_ORDER][$_[1]];
> }
>
You must be right, as usual. In fact, the expresion part
$_[0][IN_ORDER]
doesn't seem valid, because $_[0] could be anything,
i.e. a simple string. I tested the second version and it
works, I don't know if both would fail with the same elegance
or lack of.
--
http://www.telecable.es/personales/gamo/
The generation of random numbers is too important to be left to chance
------------------------------
Date: 6 Apr 2001 21:33:47 GMT (Last modified)
From: Perl-Users-Request@ruby.oce.orst.edu (Perl-Users-Digest Admin)
Subject: Digest Administrivia (Last modified: 6 Apr 01)
Message-Id: <null>
Administrivia:
To submit articles to comp.lang.perl.announce, send your article to
clpa@perl.com.
Back issues are available via anonymous ftp from
ftp://cil-www.oce.orst.edu/pub/perl/old-digests.
#For other requests pertaining to the digest, send mail to
#perl-users-request@ruby.oce.orst.edu. Do not waste your time or mine
#sending perl questions to the -request address, I don't have time to
#answer them even if I did know the answer.
------------------------------
End of Perl-Users Digest V11 Issue 4391
***************************************