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

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