Skip to main content
Stack Overflow
  1. About
  2. For Teams
Filter by
Sorted by
Tagged with
1 vote
1 answer
264 views

I'm running a Perl script where everything appears to execute correctly, but it crashes immediately after calling exit 0;. Whether I run the script normally or with perl -d, the crash still happens. ...
0 votes
0 answers
83 views

#include "EXTERN.h" #include "perl.h" #include "XSUB.h" #ifdef AMBIGUOUS_WIDTH_IS_WIDE #include "unicode_table_ambiguous_is_wide.h" #else #include "...
sid_com's user avatar
  • 25.4k
5 votes
1 answer
198 views

Currently I am developing an ASP.NET application that for legacy reasons needs to execute some Perl scripts. For this I wrote a small C++ library that uses the embedded Perl API. This library has one ...
Marcel V.'s user avatar
  • 304
4 votes
1 answer
250 views

I have the following challenge: bind a code written in Go with Perl (5.12.2) In the past I use CGO + XS and it works as a charm, however my input was a string and the output, a boolean. Now I need to ...
Tiago Peczenyj's user avatar
1 vote
1 answer
155 views

I am having some trouble with DBD-Oracle, when an SQL-statement has some problem and DBD-oracle inserts marker <*> at the error-offset via sv_insert. With setting NLS_LANG=.AL32UTF8, the error-...
0 votes
1 answer
153 views

I am using Perl with YAML::XS to write YAML output. Specifically, this YAML output is a list of the contents of other YAML files. I'm doing so, for example, like this: use YAML::XS qw(LoadFile ...
Xophmeister's user avatar
  • 9,249
3 votes
1 answer
158 views

I wonder if this is a bug or feature of Text::CSV_XS. When the last line in my CSV is a comment, it will be parsed as a line containing data (yielding undef or ""). How to repodruce: $ cat ...
Jens's user avatar
  • 73.4k
1 vote
1 answer
109 views

I have an 8MB CSV file. Using Spreadsheet::Read it takes 10 seconds to read: my $book = ReadData ( 'file.csv' ); my @rows = Spreadsheet::Read::rows($book->[1]); # first sheet foreach my $i (2 .. ...
h q's user avatar
  • 1,560
1 vote
0 answers
63 views

I have a project with several macros to help me write Perl functions, and basically "convert" C structs into Perl hashes. Some of these hashes nest each other, but I'll get to the point. My ...
3 votes
1 answer
142 views

I would like to insert and remove elements into an existing Perl array passed into a XSUB. perlapi has av_push, av_pop, av_fetch, av_store and friends for array manipulation. I was hoping for ...
drclaw's user avatar
  • 2,513
2 votes
1 answer
292 views

I have Perl XS code which calls a function from an external C library which returns char ** (array of strings). The XS code will eventually return back to Perl an array ref with all the string results ...
bliako's user avatar
  • 1,211
2 votes
1 answer
192 views

This is the relevant part of XS, which should convert an Perl string from UTF-8 to codepoints (unsigned 32-bit integers): UV * text2UV (SV *sv, STRLEN *lenp) { STRLEN len; // char *str = SvPV(...
3 votes
0 answers
118 views

I am seeing subtle crashes, which I think is down to the following XS code: void tiff_ReadRawStrip (tif, strip, size) TIFF *tif uint32_t strip ...
DobbyTheElf's user avatar
2 votes
1 answer
77 views

So I'm calling C code from inside mid pattern (using (?{ and sometimes (??{) from Perl. Anyway I want to get the values of named captures the same way as using $+{name}. Is this possible?
2 votes
1 answer
270 views

I'm using XS to create a Perl Module which uses a C library. For testing purposes, I've created a test library which has two simple functions: void kzA() (does a simple printf) void kzB(int i, char *...
Kzwix's user avatar
  • 173

15 30 50 per page
1
2 3 4 5
...
12

AltStyle によって変換されたページ (->オリジナル) /