Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 9 Nov 2011 01:32:00 +0000 (UTC)
From:      Sunpoet Po-Chuan Hsieh <sunpoet@FreeBSD.org>
To:        ports-committers@FreeBSD.org, cvs-ports@FreeBSD.org, cvs-all@FreeBSD.org
Subject:   cvs commit: ports/devel Makefile ports/devel/p5-true Makefile distinfo pkg-descr pkg-plist
Message-ID:  <201111090132.pA91W0id002085@repoman.freebsd.org>

next in thread | raw e-mail | index | archive | help
sunpoet     2011-11-09 01:32:00 UTC

  FreeBSD ports repository

  Modified files:
    devel                Makefile 
  Added files:
    devel/p5-true        Makefile distinfo pkg-descr pkg-plist 
  Log:
  - Add p5-true 0.18
  
  Perl's require builtin (and its use wrapper) requires the files it loads to
  return a true value. This is usually accomplished by placing a single
  
      1;
  
  statement at the end of included scripts or modules. It's not onerous to add but
  it's a speed bump on the Perl novice's road to enlightenment. In addition, it
  appears to be a non-sequitur to the uninitiated, leading some to attempt to
  mitigate its appearance with a comment:
  
      1; # keep require happy
  or:
      1; # Do not remove this line
  or even:
      1; # Must end with this, because Perl is bogus.
  
  This module packages this "return true" behaviour so that it need not be written
  explicitly. It can be used directly, but it is intended to be invoked from the
  import method of a Modern::Perl-style module that enables modern Perl features
  and conveniences and cleans up legacy Perl warts.
  
  WWW: http://search.cpan.org/dist/true/
  
  Revision  Changes    Path
  1.4655    +1 -0      ports/devel/Makefile
  1.1       +31 -0     ports/devel/p5-true/Makefile (new)
  1.1       +2 -0      ports/devel/p5-true/distinfo (new)
  1.1       +22 -0     ports/devel/p5-true/pkg-descr (new)
  1.1       +7 -0      ports/devel/p5-true/pkg-plist (new)



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201111090132.pA91W0id002085>