[32568] in Perl-Users-Digest

home help back first fref pref prev next nref lref last post

Perl-Users Digest, Issue: 3835 Volume: 11

daemon@ATHENA.MIT.EDU (Perl-Users Digest)
Tue Dec 11 00:09:16 2012

Date: Mon, 10 Dec 2012 21:09:03 -0800 (PST)
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, 10 Dec 2012     Volume: 11 Number: 3835

Today's topics:
        'constant sub with return' oddity (5.10.1) <rweikusat@mssgmbh.com>
    Re: a survey of templates <cwilbur@chromatico.net>
        Digest Administrivia (Last modified: 6 Apr 01) (Perl-Users-Digest Admin)

----------------------------------------------------------------------

Date: Mon, 10 Dec 2012 19:00:39 +0000
From: Rainer Weikusat <rweikusat@mssgmbh.com>
Subject: 'constant sub with return' oddity (5.10.1)
Message-Id: <87txrt4trc.fsf@sapphire.mobileactivedefense.com>

As I've just determined by testing, perl (at least 5.10.1) will inline
a subroutine defined as

sub V() { 0; }

but it won't inline a subroutine defined as

sub V() { return 0; }


------------------------------

Date: Mon, 10 Dec 2012 12:27:09 -0500
From: Charlton Wilbur <cwilbur@chromatico.net>
Subject: Re: a survey of templates
Message-Id: <87a9tl4y36.fsf@new.chromatico.net>

>>>>> "CD" == Cal Dershowitz <cal@example.invalid> writes:

    CD> When there's so many things going wrong in a script, I start to
    CD> lose my moorings on file hierarchies and how to traverse and
    CD> refer to them.  I think it's tricky business, and I'm hoping to
    CD> sort it out in a systematic way through the use of templating.

When there are so many things going wrong in a script, it's a sign that
you've bitten off more than you can chew.  Remove everything in your
script that isn't working, and add *one* thing.  Focus on it until it
works.  Then add the second thing.  Focus on it until it works, and
check to be sure you haven't broken the first thing.

    CD> Ben, I sit there as I'm defining new things on the fly, and I
    CD> say to myself "Ben is going to shake his head at that choice of
    CD> this variable name," but that kind of indicates the problem in
    CD> that I really don't know what I'm doing here and am making it up
    CD> as I go.

You will confuse yourself less, and reveal problems sooner, if you
choose sensible variable names.  

Charlton


-- 
Charlton Wilbur
cwilbur@chromatico.net


------------------------------

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 3835
***************************************


home help back first fref pref prev next nref lref last post