02-08-2002
Can you recommend any commercial software?
10 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
I have linux box setup and connected to a cable modem via a hub which is shared with other win98 pcs. I need to set up the linux box with dhcp.
I have two issues:
First: For some reason, every time I activate the eth0 interface, it seems to deactivate itself after some time all by itself.... (1 Reply)
Discussion started by: alam
1 Replies
2. UNIX for Dummies Questions & Answers
Ok, I'm kind of in between newbie and experienced somewhere. I'm an advanced computer user but only have a little experience with linux and a lot of problems with it. Currently I'm using Linux-Mandrake 8.0 (I know, I know, but let's not go into the many reasons why it's not even close to the best... (2 Replies)
Discussion started by: Nazo
2 Replies
3. UNIX for Dummies Questions & Answers
Hi
I'm using Linux, in the directory /root/my
there is a.out. but when I try to run it , the
shell indicate "bash:a.out: command not found"
but I AM working in this directory. if I use
"./a.out" , it works perfectly.
can any body tell me how to do a permanent set up so that
I can use... (5 Replies)
Discussion started by: dell9
5 Replies
4. Linux
I am a new learner of linux, my friend told me that it is very good
to learn linux, so I dropped the idea of deleting it but now I faced
a problem again , how am I going to set my computer to connect to my ISP and other computers?? (1 Reply)
Discussion started by: terrychen0804
1 Replies
5. SuSE
Hey,
I was wondering if anybody could help me setup my PhpMyAdmin on my SUSE linux 9.1 machine. I want to use it to access MySQL server instead of the defualt MySQLCC-Console Manager.
I have not tried yet but i have done a such and it's installed in one of the folders.
I would like to point... (15 Replies)
Discussion started by: sybella1
15 Replies
6. Shell Programming and Scripting
Hi,
I just want to know if it's possible to set the UID bit for a script, so that it executes not as a owner of process, but owner of the script.
i.e
script tesh.sh owned by 'user1', 'file1' owned by user1 has 700 permisssions
`who am i`
rm -v /tmp/file1
user 2 need to execute test.sh, ... (2 Replies)
Discussion started by: braindrain
2 Replies
7. Red Hat
We have two machines, prod and uat. The TERM variable in both machines are different
prod
echo $TERM
vt100
UAT
echo $TERM
xterm
I have checked the .profile file and could not find any entry ? There are some scripts on the box which are run by Autosys scheduler they seem to run in... (1 Reply)
Discussion started by: amit1_x
1 Replies
8. Red Hat
Friends ,
Can I set two hostname in a Linux server at a time ?
I want to give two hostname of my Linux server , is it possible to do ?
Plz inform .. .. (2 Replies)
Discussion started by: shipon_97
2 Replies
9. UNIX for Dummies Questions & Answers
I'm having a problem regarding the encoding of my files in Linux and AIX.
I have a file which can be viewed both in Linux and AIX (via NetApp mount). When I checked the encoding, they have difference.
In Linux, the file is encoded as ISO-8859 text. (checked by using "file" command).... (1 Reply)
Discussion started by: Jin_
1 Replies
10. UNIX for Dummies Questions & Answers
Hi All,
I have a file (lets say filenames.txt) which contains a list of file names.
Is there a way I can append a prefix to the filenames as below,
Thanks much for your help
Freddie (3 Replies)
Discussion started by: dsfreddie
3 Replies
LEARN ABOUT DEBIAN
package::new
Package::New(3pm) User Contributed Perl Documentation Package::New(3pm)
NAME
Package::New - Simple base package from which to inherit
SYNOPSIS
package My::Package;
use base qw{Package::New}; #provides new and initialize
DESCRIPTION
The Package::New object provides a consistent constructor for objects.
I find that I always need these two methods in every package that I build. I plan to use this package as the base for all of my CPAN
packages.
RECOMMENDATIONS
Sane defaults
I recommend that you have sane default for all of your object properties. I recommend using code like this.
sub myproperty {
my $self=shift;
$self->{"myproperty"}=shift if @_;
$self->{"myproperty"}="Default Value" unless defined $self->{"myproperty"};
return $self->{"myproperty"};
}
use strict and warnings
I recommend to always use strict, warnings and our version.
package My::Package;
use base qw{Package::New};
use strict;
use warnings;
our $VERSION='0.01';
Lazy Load where you can
I recommend Lazy Loading where you can.
sub mymethod {
my $self=shift;
$self->load unless $self->loaded;
return $self->{"mymethod"};
}
USAGE
CONSTRUCTOR
new
my $obj = Package::New->new(key=>$value, ...);
initialize
You can override this method in your package if you need to do something after construction. But, lazy loading may be a better option.
BUGS
Log on RT and contact the author.
SUPPORT
DavisNetworks.com provides support services for all Perl applications including this package.
AUTHOR
Michael R. Davis
CPAN ID: MRDVT
DavisNetworks.com
http://www.DavisNetworks.com/
COPYRIGHT
This program is free software licensed under the...
The BSD License
The full text of the license can be found in the LICENSE file included with this module.
SEE ALSO
Building Blocks
base, parent
Other Light Weight Base Objects Similar to Package::New
Package::Base, Class::Base, Class::Easy, Object::Tiny
Heavy Base Objects - Drink the Kool-Aid
Moose, (as well as Moose-alikes Moo, Mouse), Class::Accessor, Class::Accessor::Fast, Class::MethodMaker, Class::Meta
Even more
Spiffy, mixin, SUPER, Class::Trait, Class::C3, Moose::Role
perl v5.14.2 2011-12-03 Package::New(3pm)