02-19-2008
Thanks for your help
Thank you for your detailed response. I appreciate your time and it looks like I have a long ways to go before I am going to be able to write effective scripts. Would you be able to recommend textual material I could reference through this learning process ?
Thanks again
10 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
what does this symbol ~ represent in unix for example....
If i create directories called personal and lab and lab5 and the command chmod 776~/lab5 is issued. What results would i expect to get. basically i know that chmod 776 would prevent others from executing the files in the directory but... (2 Replies)
Discussion started by: BigTool4u2
2 Replies
2. Shell Programming and Scripting
Hi ,
i have few doubts about the braces and spaces which are quite often used:
for instance:
when i try the belo command it will not work
export variable= cat filename
rather when i try the cat command without any space it works fine
export variable=cat filename
and... (3 Replies)
Discussion started by: ahmedwaseem2000
3 Replies
3. Shell Programming and Scripting
Many scripts are executed in the following way.
. /scriptname
Even when the file does not have execute permission, it can be executed this way. How does this work? (6 Replies)
Discussion started by: krishmaths
6 Replies
4. Solaris
this post is related to the arrangements of libraries in a solaris-8 distribution.
i want to build external packages on solaris-8
i need to know why libraries are scattered in a solaris distribution among different below mentioned directories,
please tell me whats the importance ??
/lib... (3 Replies)
Discussion started by: mobydick
3 Replies
5. AIX
Hello... I am getting ready to create a bunch of groups for several of our servers all of which are running Aix 5.3. We really want to keep people away from using the root login and as such the systems have been hardened using aixpert and if it is absolutely needed people must su -.
There are... (1 Reply)
Discussion started by: dgaixsysadm
1 Replies
6. Shell Programming and Scripting
What is the Significance of '{}' \; in UNIX? (2 Replies)
Discussion started by: Shell_Learner
2 Replies
7. Shell Programming and Scripting
What is the significance of the forward slash(/) while specifying a directory?
cp -av /dir/ /opt/
and
cp -av /dir /opt
Does effectively the same job it seems? (2 Replies)
Discussion started by: proactiveaditya
2 Replies
8. Solaris
What is the significance of pfiles?
What is the use of it and how and where to use it?:wall: (2 Replies)
Discussion started by: varunksharma87
2 Replies
9. Shell Programming and Scripting
Hi
I was trying to understand what ':-' means when used with variables
echo ${x:-10}
if
Thanks (4 Replies)
Discussion started by: zulfi123786
4 Replies
10. UNIX for Dummies Questions & Answers
I'm taking a LINUX and UNIX class and we are using bash as the shell in terminal. On my mac-book I use zsh only because my professor had a pretty cool start-up file for it.
It has benefited me in becoming familiar with different shells. However, I'm having a hard time understanding the purpose... (4 Replies)
Discussion started by: syregnar86
4 Replies
LEARN ABOUT DEBIAN
perl::critic::policy::modules::requireexplicitpackage
Perl::Critic::Policy::Modules::RequireExplicitPackage(3pUser Contributed Perl DocumentatPerl::Critic::Policy::Modules::RequireExplicitPackage(3pm)
NAME
Perl::Critic::Policy::Modules::RequireExplicitPackage - Always make the "package" explicit.
AFFILIATION
This Policy is part of the core Perl::Critic distribution.
DESCRIPTION
In general, the first statement of any Perl module or library should be a "package" statement. Otherwise, all the code that comes before
the "package" statement is getting executed in the caller's package, and you have no idea who that is. Good encapsulation and common
decency require your module to keep its innards to itself.
There are some valid reasons for not having a "package" statement at all. But make sure you understand them before assuming that you
should do it too.
The maximum number of violations per document for this policy defaults to 1.
CONFIGURATION
As for programs, most people understand that the default package is "main", so this Policy doesn't apply to files that begin with a perl
shebang. If you want to require an explicit "package" declaration in all files, including programs, then add the following to your
.perlcriticrc file
[Modules::RequireExplicitPackage]
exempt_scripts = 0
Some users may find it desirable to exempt the load of specific modules from this policy. For example, Perl does not support Unicode module
names because of portability problems. Users who are not concerned about this and intend to use "UTF-8" module names will need to specify
"use utf8;" before the package declaration. To do this, add the following to your .perlcriticrc file
[Modules::RequireExplicitPackage]
allow_import_of = utf8
The "allow_import_of" configuration option takes multiple module names, separated by spaces.
IMPORTANT CHANGES
This policy was formerly called "ProhibitUnpackagedCode" which sounded a bit odd. If you get lots of "Cannot load policy module" errors,
then you probably need to change "ProhibitUnpackagedCode" to "RequireExplicitPackage" in your .perlcriticrc file.
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::RequireExplicitPackage(3pm)