Testing DNS performance – perl script

1 Star2 Stars3 Stars4 Stars5 Stars (No Ratings Yet)
Loading...

Use the perl script below to check your DNS performance. Make sure to replace the search string and your DNS provider IP address.

Read More

Modifying perl config by hand – just modify Config.pm

1 Star2 Stars3 Stars4 Stars5 Stars (No Ratings Yet)
Loading...

The post below will show you how to generate the Config.pm Then if you still need configuration changes (for example proxy) just modify the file by hand. To initially configure perl cpan. Make note of the config file & directory, for example below its /user/.cpan/CPAN/MyConfig.pm

Now you can just modify the Config.pm by hand, […]

Read More

perl how to change from string to a number

1 Star2 Stars3 Stars4 Stars5 Stars (No Ratings Yet)
Loading...

Below you can asee a subrutine that will cause perl to undrtsnad this as numbers foreach (@full_cpu_data) {         $_ =~ s/K//;         @cpu_data = split(':', $_);         @cpu_data  = map { $_ += 0 } @cpu_data;            push @cpu_plot, { cpu => @cpu_data[3], core => @uptime[6], disk => @disk[4] };         $i++; }  

Read More

Capturing Linux network statistics – perl script

1 Star2 Stars3 Stars4 Stars5 Stars (No Ratings Yet)
Loading...

Capture Linux network statistics Example capture output is below.

Perl script source is below

Read More

Compiling DBD driver for informix

1 Star2 Stars3 Stars4 Stars5 Stars (No Ratings Yet)
Loading...

Contents 1 DBD::Informix Install Procedure 1.1 General Information 1.2 Informix Client SDK Download Info 1.3 Misc Links 1.4 Environment Information 1.5 Build Procedure DBD::Informix Install Procedure General Information The majority of the procedure must run as user informix. Only the make install runs as root. Make sure that the IP/hostname of the build server is […]

Read More

Emailing an attachment in perl

1 Star2 Stars3 Stars4 Stars5 Stars (No Ratings Yet)
Loading...

How to Email Attachments in Perl Below as a small snipped that can be used to email attachments

Read More

Show installed perl modules

1 Star2 Stars3 Stars4 Stars5 Stars (No Ratings Yet)
Loading...

To list all installed perl modules

Read More