Read (and write) RTF files with C++ / Qt

I am looking for a simple C++ library for tokenizing and parsing RTF (Rich Text Format) files. I am planning to edit them with Qt's QTextEdit. More the Formatting preserved the better -- but...

How can I copy a file in Perl and maintain its timestamp?

I am using the File::Copy module to copy a file in Perl: #! /usr/bin/perl -w use File::Copy; copy("somefile.log", "copiedfile.log"); I would like to preserve timestamps (particularly the...

Is there a Python equivalent to Perl's Data::Dumper for inspecting data structures?

Is there a Python module that can be used in the same way as Perl's Data::Dumper module? Edit: Sorry, I should have been clearer. I was mainly after a module for inspecting data rather than...

How can I validate a website URL in Perl?

I need a regular expression or module for validating the website URL using Perl.

How can I install Perl modules without root privileges?

I am on a Linux machine where I have no root privileges. I want to install some packages through CPAN into my home directory so that when I run Perl, it will be able to see it. I ran cpan, which...

perlbrew and local::lib at the same time?

So far I have been using the system perl (on Ubuntu 10.10) and I was using local::lib to install CPAN modules in my private directory ~/perl5 As I am trying to use perlbrew it seems that they...

How to investigate " Attempt to free unreferenced scalar"

A Perl script (which uses a load of locally-written modules, and is under active development) has just started producing sporadic " Attempt to free unreferenced scalar: SV 0xa6e685c, Perl...

Install GD Library on RedHat machine for twiki

My ultimate goal is to run a twiki website for my research group. I have space on RedHat server that is running Apache, etc., but upon which I do not have root access. Since I cannot install perl...

How can I restore my Perl environment and modules to a known state on Mac OS X?

I am an old time Perl hacker but I have basically given up on my Mac because I usually can't install anything with cpan. Something in the dependency list usually fails with meaningless (to me)...

Can't locate loadable object for module DBD::Oracle in @INC : Cygwin

I am using cygwin on windows to compile perl modules. I was able to install perl DBI through cpan later I installed DBD , it aslo said successfully installed. cpan[1]> install DBD::Oracle Going...

Missing expression after unary operator '-'. At line:1 char:2

I am facing a peculiar issue in PowerShell 2.0. I am not an expert in PS, but occasionally write/edit few scripts to work with Nagios monitoring tool. Requesting help form Nagios experts. Your...

How can I specify the version of Python that Perl's Inline::Python module is using?

I am running Debian squeeze and perl v5.10.1 and I have two versions of python installed: $ pyversions -i python2.5 python2.6 Python::Inline uses python2.5 obvoiusly: $ perl use...

image::magick not installing with cpan in perl v5.14.2 from dwimperl

I am attempting to rebuild my development/test environment on a new laptop running windows7 32 bit. imageMagick is one of the modules I had installed in an (ancient) version on my old laptop. I...

Python cgi.FieldStorage() is empty on form submission

I have the following directives in my Apache 2 virtual host configuration: <Directory /var/www/foo_test> Options MultiViews +ExecCGI AddHandler cgi-script .py AllowOverride All...

How can I build a Perl distribution with DIst::Zilla and use Carton for dependencies?

I have a perl distribution I have built with Dist::Zilla, and so I do not have to contaminate my installed Perl's lib with the dependencies, I have used Carton to manage them. Things work great in...

How to make Win32::OLE work on 64bit MS OFFICE installation

I have two PCs, one has MS Office 2013 32bit installed and another MS Office 64bit installed. I have Perl code that is using Win32::OLE Perl module to manipulate XLS spreadsheets. The code is...

How can I inspect the file system of a failed `docker build`?

I'm trying to build a new Docker image for our development process, using cpanm to install a bunch of Perl modules as a base image for various projects. While developing the Dockerfile, cpanm...

How to install perl module on RHEL?

I need to install perl-Expect, so, I executed: # yum install -y perl-Expect Error: Package: perl-Expect-1.21-14.el7.noarch (epel) Requires: perl(IO::Pty) >= 1.03 Error: Package:...

Resolving circular dependency between ExtUtils::MakeMaker and Test::Harness

I'm trying to compile git 2.5.2 on RHEL6 into my home directory and it requires a perl module ExtUtils::MakeMaker. ExtUtils::MakeMaker isn't installed in the standard locations and installing...

How can I safely clean up root's .cpan folder?

I have a development class Linux server which has been used for a great deal of Perl code creation and testing. On this machine is a /root folder, part of the / partition, and in there is a .cpan...

Changing default download directory in Chrome Webdriver

Can anyone let me know how can I change the default download location for Chrome using Selenium-Perl. I am using Chrome Webdriver and the Perl module Selenium::Remote::Driver. I got code for Java...

Failed during install WWW::Curl::Easy in cpan

I am installing perl module "WWW::Curl::Easy" but it's getting error I also use by fource install but it's getting same error. why this is happend plz help me out. I used these command in cpan ...

How can I format a number as currency in Perl?

How I can format this for example: 100000 as 1000.00 and 90 as 0.90 using Perl? I found and try with some modules like Locale::Currency::Format and Number::Format, but nothing work :/ With...

How to include conditionally Perl modules and libraries, as well as Global variables from them

I am developing a Perl script. Inside I use various moudules: use Module::One; use Module::Two; ... I also use global variables from these modules: $GLOBAL_1 = 1; $GLOBAL_2 = 1; ... Let's say...

ImportError: libf77blas.so.3: cannot open shared object file: No such file or directory Raspberry Pi3

I have a Raspberry Pi3 and my goal is to run several python3 scripts there as a dedicated server. So far, I have installed with pip3 the following...

How to force cpanm to use HTTPS insted of Using HTTP for installing dependencies

Hi I am trying to install perl modules using cpanm.But my firewall is not letting the cpanm to use http. Even when I am forcing it to use https using the --mirror option, its still uses http to...

How do I install php-curl in CentOS 8?

How do I quickly install php-curl on CentOS 8? It doesn't seem to be available in the base software repository, or even Not available at EPEL either. Update: [[email protected] ~]# dnf repolist ...

github/git Checkout Returns 'error: invalid path' on Windows

When I attempt to checkout a repository from github I get the error: error: invalid path 'configs/perl-modules/DIST.64/perl-HTML-Tree-1:5.03-1.el6.noarch.rpm' I suspect the issue is that the...

How to set a ClientID in Perl module Net::MQTT::Simple (MQTT interface)?

I would like to use the Perl module Net::MQTT::Simple to send MQTT messages to a MQTT server. This is a simple MVP script based on the CPAN documentation of Net::MQTT::Simple: #!/usr/bin perl use...

Nginx unit not working with django (ModuleNotFoundError: No module named 'encodings')

I keep getting: ModuleNotFoundError: No module named 'encodings' in the unit error logs when trying to add new configuration. Fatal Python error: Py_Initialize: Unable to get the locale...