See if this helps.....
my $newVar = TEST->testObj();
foreach my $key (keys % { $newVar } ) {
print "$key\n";
}
package TEST;
sub testObj {
#Setup Basic Class
my $class = shift;
my $self = {};
#Create info in hash
$self->{ONE} = "1";
$self->{TWO} = "2";
$self->{THREE} =...
When you create the object, are you using bless? Or are you just returning a ref to a hash?
------------------------------
The beatings will stop when morale improves!!!!!
Hello All,
I am trying to use the Net::Telnet module to connect to UNIX machines and gather information about kernel parameters, file systems, applications, patch levels and so on.
Here is the issue:
I get varying output each time I run my script. It seems like the Net::Telnet module is...
It is my understanding that the PERL DBI does not work well on HP. This guy says he solved the issue. Maybe.. maybe not.
Hope this helps.
http://www.mail-archive.com/dbi-users@perl.org/msg18687.html
------------------------------
The beatings will stop when morale improves!!!!!
Well this depends on the platform. HP does not have a built in -ls function in find from what I can see. You will have to use the -exec command with find.
AIX - find /tmp/junk -name test.txt -ls
196 28 -rwxr-xr-x 1 user users 25241 Mar 12 2001 /tmp/junk/test.txt
This should work with...
Okay,
I have been tasked with getting information about HP and AIX systems without using SAM or SMIT. I will be writing my little utility in Perl. Basically I need a way to get everything about OS,Processor,Memory,Paging,and disks. I am familair with iostat,mount,swlist,uname and vmstat. I am...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.