Tagged Questions
0
votes
1answer
34 views
XMLin not parsing XML properly
I have an XML as follows in $response_xml
<string xmlns="http://schemas.microsoft.com/2003/10/Serialization/"><?xml version="1.0" ...
1
vote
0answers
15 views
How to use Perl HTML::TableExtract with rowspans and also spans within cells
I apologize for the length here, but I thought it made sense to include my small amount of progress in addition to a description of my problem!
I want to extract data from some html pages that have ...
1
vote
1answer
32 views
Nested Packages
Sorry for the base question, but how can I nest Packages/Modules in Perl? I am writing a Sudoku solver to become used to Perl and I would like to logical divide my code into pieces:
Piece 1: Utils
...
0
votes
2answers
53 views
perl optional command line argumnet
I am new to perl and wish to know the following logic if it works in perl :-
I have to execute a command using perl script with some arguments and I need to prepare that
arguments list, some of the ...
2
votes
2answers
77 views
Multilevel 'do' in Perl?
This question may look simple, but I am thinking on this over past some days, I couldn't find the answer.
I have multilevel scripting architecture (the code is shown below)
CallingScript.pl (Include ...
0
votes
0answers
21 views
How to open and grab a window over TopLevel window
I want to open a window inside a toplevel window and until that window is opened I should not be able to move back to any previously opened window. Here is my code:
$mw = MainWindow->new; # This ...
0
votes
2answers
38 views
Perl module Image::EXIF causes error message
I like to understand why this perl module is always creating this error message:
In my script I do many things with the exif information of some pictures, that works fine.
Here my minimized script:
...
2
votes
2answers
109 views
Inline::C build failure
I am using active perl 5.14.2. Here I am trying to use a windows C library in my perl code using Inline::C
use strict;
use Inline C => DATA =>
CCFLAGS => '-std:C99 -Tx86-coff -Zi ...
4
votes
3answers
73 views
How to check today is Monday in Perl ?
How can I check if today is Monday in Perl?
What modules needs to be installed?
Can anyone help me with an example?
0
votes
1answer
30 views
Perl module to allow for 'make' options
I was wondering if there is some kind of Perl module/package that allows for simple make-like functionality.
For example, is there something that can wrap a function that receives an input and an ...
2
votes
2answers
53 views
Perl module hierarchy and build requirement
If have a Module that depends on Unicode::GCString and Text::LineFold - both are in Unicode::LineBreak. Should I put Unicode::GCString and Text::LineFold as requires in the Build.PL file or simply ...
0
votes
2answers
308 views
Can't locate local/lib.pm in @INC at /usr/share/perl/5.14/CPAN/FirstTime.pm
I am trying to use Perl the first time on my system which is Ubuntu 12.04. I have Perl v.5.14.2 installed.
I looked up how to install Perl modules, so I started as follows:
$ perl -MCPAN -e shell
...
2
votes
2answers
92 views
Perl: How to replace a variable by its value
Suppose, if a table has a column called test and inside test I have written a row as "Dear $name, Hello" where $name is a variable. I need to select this row for which I'm doing
my $test = ...
0
votes
1answer
47 views
read a mail from outlook from a sub folder
I am able to read a mail from the inbox. My actual requirement is to fetch a mail from a subfolder in Outlook by comparing the subject of the mail with a predefined text.
use Mail::Outlook;
use ...
1
vote
0answers
36 views
Error Initializing OpenSSL module in perl
Hi I am a newbie to perl. How to create a pkcs7 signature in perl .Any Example code would be helpful. I tried to use OpenCA::OpenSSL. I got error initializing OpenCA::OpenSSL instance.
Thanks in ...
0
votes
1answer
41 views
How can I use HTML::Template without creating separate files for each template?
The normal way of using HTML::Template is as follows:
main file:
my $template = HTML::Template->new(filename => 'secret.tmpl');
$template->param(SECRET_MESSAGE => $bar);
print ...
1
vote
0answers
20 views
Attributes exchange using Net::OpenID::Consumer
my $csr = Net::OpenID::Consumer->new(
ua => LWP::UserAgent->new,
consumer_secret => '123456xXx',
required_root => "http://www.myopenidsample.net/",
);
my ...
0
votes
0answers
37 views
How to store the selected value in Tkx::combobox to a variable using perl
I've been playing around Tkx package in perl.
I'm successful in creating a combo box with set of values. However I'm not able to find a way to retrieve the selected value from the drop down box.
...
4
votes
2answers
107 views
How to use a module in Perl
Guys im really confused on how to use a module i just installed in Perl.
I installed a Corelist module in Perl. And i want to display all the modules that came with Perl 5.006. But there is a hint in ...
0
votes
0answers
54 views
How to search a text in zipped files using perl
I need to search for a string in a zip archive containing multiple text files. How can I use perl Archive::Zip to do that? Also, what other module can it, if any?
My basic requirement is to find a ...
0
votes
1answer
19 views
How to check if one module is already opened in a Perl/Tk application
In a Perl/Tk MainWindow, in the menu bar, if I click on an option, then I can open same module twice, thrice etc. But if it is already opened, then it should not open again. Any idea how to do that?
...
1
vote
0answers
40 views
Inline::CPP/Inline::C - debug code
I'm trying to use some proprietary C++ code in a Perl module.
I have seen it is easy to debug if something goes wrong at compiling time by just enabling the BUILD_NOISY flag.
In my case the problem ...
2
votes
2answers
92 views
Can't locate object method “new” via package “IO::Socket::SSL”
Can anybody throw me a bone on this one?
Can't locate object method "new" via package "IO::Socket::SSL" at Services/IMAP/Client.pm line 136.
if ( $use_ssl ) {
135 require ...
-3
votes
0answers
40 views
perl unit testing on perl package
I need some clarification on the discussion happened on Feb 10, 2009 on the topic Perl build, unit testing, code coverage:
A complete working example. I also in need of the unit testing on perl ...
0
votes
2answers
66 views
How do I create a multi-module distribution?
I want to create my own Perl module, but the problem is that it contain multiple .pm files. The structure is:
lib
├── A_Z.pm
└── T_test
├── A.pm
├── B.pm
├── C.pm
├── D.pm
└── ...
2
votes
1answer
50 views
How to Take input of “Ctrl s” or “Ctrl 1” in PERL
Actually I am trying to take input from user until he presses "Ctrl + 1" or "Ctrl + D" or "Ctrl + s" or "Esc" or "End" or "F7" {keyboard buttons}
How can i let my perl code know about this, whenever ...
0
votes
1answer
44 views
Curses::UI::Grid module
This is first example from perldoc
use Curses::UI;
my $cui = new Curses::UI;
my $win = $cui->add('window_id', 'Window');
my $grid =$win->add(
'mygrid', 'Grid'
-rows => 3,
-columns ...
0
votes
3answers
46 views
How to merge 2 lines in perl script
I am trying to write a Perl script that will transform the input
( name
( type ....
)
)
into the output
( name ( type ... ) )
I.e. all these lines matching ( ) are merged into a ...
0
votes
1answer
36 views
Cairo Perl module installation issue
I am trying to install Cairo Perl module locally, but it is throwing me error.
$ /testdir/bin/perl -I /testdir/perl-5.14.0/lib Makefile.PL
Package cairo was not found in the pkg-config search path.
...
0
votes
1answer
16 views
Cant Locate Image/Info.pm Module Error
I'm trying to get the resolution,width,height of the images in the specific file.
I have the following code.
#use strict;
use Image::Info qw(image_info dim);
use File::List;
#perl2exe_include ...