Linux and UNIX Man Pages

Linux & Unix Commands - Search Man Pages

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

Perl::Critic::Policy::Modules::ProhibitAutomaticExportatUser3Contributed Perl DocuPerl::Critic::Policy::Modules::ProhibitAutomaticExportation(3pm)

NAME
Perl::Critic::Policy::Modules::ProhibitAutomaticExportation - Export symbols via "@EXPORT_OK" or "%EXPORT_TAGS" instead of "@EXPORT". AFFILIATION
This Policy is part of the core Perl::Critic distribution. DESCRIPTION
When using Exporter, symbols placed in the @EXPORT variable are automatically exported into the caller's namespace. Although convenient, this practice is not polite, and may cause serious problems if the caller declares the same symbols. The best practice is to place your symbols in @EXPORT_OK or %EXPORT_TAGS and let the caller choose exactly which symbols to export. package Foo; use base qw(Exporter); our @EXPORT = qw(foo $bar @baz); # not ok our @EXPORT_OK = qw(foo $bar @baz); # ok our %EXPORT_TAGS = ( all => [ qw(foo $bar @baz) ] ); # ok CONFIGURATION
This Policy is not configurable except for the standard options. AUTHOR
Jeffrey Ryan Thalhammer <jeff@imaginative-software.com> COPYRIGHT
Copyright (c) 2005-2011 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::ProhibitAutomaticExportation(3pm)

Check Out this Related 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)
Man Page

5 More Discussions You Might Find Interesting

1. 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

2. Shell Programming and Scripting

Perl IO vs GLOB symbols

Hi, Can someone please clarify how we are able to use both IO and GLOB symbols of a package variable interchangeably? Please consider the following code: open(FH,"myfile") || die "Unable to open file myfile:$@"; my $glob_var = *main::FH{GLOB}; my $io_var = *main::FH{IO}; print $glob_var... (0 Replies)
Discussion started by: srinivasan_85
0 Replies

3. Shell Programming and Scripting

redirecting symbols

Can anyone please tell me what the following do 1. < 2. << Thanks Calypso (1 Reply)
Discussion started by: Calypso
1 Replies

4. UNIX for Dummies Questions & Answers

hp ux practice

hi i am new in unix.i have installed linux in my pc,but i want to practice and be expatise in hp ux.but i have no hp server for do it.how could i practice hp ux?please help and give suggestion. (1 Reply)
Discussion started by: dipanjan123
1 Replies

5. UNIX for Dummies Questions & Answers

UNIX Exercise

Hi, I am learning unix. I want to practice few small excercises. Please suggest me some goor URL to practice. Thanks in advance. (1 Reply)
Discussion started by: stew
1 Replies