Linux and UNIX Man Pages

Linux & Unix Commands - Search Man Pages

perl::critic::policy::modules::requireendwithone(3pm) [debian man page]

Perl::Critic::Policy::Modules::RequireEndWithOne(3pm)	User Contributed Perl Documentation  Perl::Critic::Policy::Modules::RequireEndWithOne(3pm)

NAME
Perl::Critic::Policy::Modules::RequireEndWithOne - End each module with an explicitly "1;" instead of some funky expression. AFFILIATION
This Policy is part of the core Perl::Critic distribution. DESCRIPTION
All files included via "use" or "require" must end with a true value to indicate to the caller that the include was successful. The standard practice is to conclude your .pm files with "1;", but some authors like to get clever and return some other true value like "return "Club sandwich";". We cannot tolerate such frivolity! OK, we can, but we don't recommend it since it confuses the newcomers. CONFIGURATION
This Policy is not configurable except for the standard options. AUTHOR
Chris Dolan "cdolan@cpan.org" Some portions cribbed from Perl::Critic::Policy::Modules::RequireExplicitPackage. COPYRIGHT
Copyright (c) 2005-2011 Chris Dolan and Imaginative Software Systems. All rights reserved. This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself. The full text of this license can be found in the LICENSE file included with this module. perl v5.14.2 2012-06-07 Perl::Critic::Policy::Modules::RequireEndWithOne(3pm)

Check Out this Related Man Page

Perl::Critic::Policy::Modules::PerlMinimumVersion(3)	User Contributed Perl Documentation   Perl::Critic::Policy::Modules::PerlMinimumVersion(3)

NAME
Perl::Critic::Policy::Modules::PerlMinimumVersion - Enforce backward compatible code. AFFILIATION
This policy is part of Perl::Critic::More, a bleeding edge supplement to Perl::Critic. DESCRIPTION
As Perl evolves, new desirable features get added. The best ones seem to break backward compatibility, unfortunately. This policy allows you to specify a mandatory compatibility version for your code. For example, if you add the following to your .perlcriticrc file: [Modules::PerlMinimumVersion] version = 5.005 then any code that employs "our" will fail this policy, for example. By default, this policy enforces the current Perl version, which is a pretty weak statement. This policy relies on Perl::MinimumVersion to do the heavy lifting. If that module is not installed, then this policy always passes. AUTHOR
Chris Dolan <cdolan@cpan.org> COPYRIGHT
Copyright (c) 2006-2008 Chris Dolan This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself. The full text of this license can be found in the LICENSE file included with this module. perl v5.16.3 2014-06-10 Perl::Critic::Policy::Modules::PerlMinimumVersion(3)
Man Page

6 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

Policy Manager

I have searched all over the SCO website and can't seem to find an answer to this error message. Has anyone seen the following error, and if so what steps do I need to take to fix it? I don't really want to reload the entire OS if I don't have to. LOGIN: ERROR- Failed to initialize policy... (1 Reply)
Discussion started by: mikeinmi
1 Replies

2. Solaris

Wanted: old/broken USIII CPU Modules

Hello, I am looking for faulty X6990A, X7000A, X7009A, X7064A, X7310A CPU Modules. The background is that I have recently got some non-working X7009A with various errors, I was able to repair some by swapping out CPUs but still have 3 more modules which are defenately "cooked". I would... (0 Replies)
Discussion started by: codeangels
0 Replies

3. Post Here to Contact Site Administrators and Moderators

vBulletin Exclude Forums from "Get New Posts" Feature

First I would like to say you run an awesome site. I use it pretty much everyday... I am a member of a local Jeep Club Virtual Jeep Club - Powered by vBulletin and we run vBulletin Version 3.7.0. You have a feature we would like to add. In "User CP" -> "Edit Options" you have: Exclude... (3 Replies)
Discussion started by: Ikon
3 Replies

4. Shell Programming and Scripting

Using Perl to Rename File

Hi, Can someone help me with a perl file to rename some files please? I can do it with regular command line using the below code, but I need to include this in another script and the other script is perl. I know nothing of perl. for file in C* do newfilename=`echo $file | cut -c8-21-`... (8 Replies)
Discussion started by: bbbngowc
8 Replies

5. UNIX for Dummies Questions & Answers

[Solved] Installing Multiple Perl Modules at Once

How could one install multiple Perl modules at once. I tried and get this at the cli: perl -MCPAN -e'install Crypt::DES Digest::CRC Digest::MD4 IO::Pty IO::Socket::SSL WWW::Mechanize Crypt::PasswdMD5 Net::Write' Can't locate object method "PasswdMD5" via package "Crypt" at -e line 1. ... (0 Replies)
Discussion started by: metallica1973
0 Replies

6. Post Here to Contact Site Administrators and Moderators

Bits Club link on main page

Hi, I noticed that the Bit Club is no longer accessible from the main page. It used to be in the Members Only Forum (I think, can't really remember.) Was this intentional? Regards, Ni2 (3 Replies)
Discussion started by: ni2
3 Replies