I have to kill a program that I am opening via $pid = open(FH, "program|") or $pid = or open(FH, "-|", "program") However, the program (mosquittt ...
I have to kill a program that I am opening via $pid = open(FH, "program|") or $pid = or open(FH, "-|", "program") However, the program (mosquittt ...
I am using Perl with Ubuntu under Windows 10. I want to use the Perl Config::Tiny module to read filenames and other configuration data. When I read a ...
I am trying to learn file handling in Perl, I want to open a .txt file located in D: drive on the terminal on Windows in read mode, so the code I am u ...
I have data that I obtain from a network service. It is valid for data to have a \\ in it. Also it is valid for data to have a single \ in it. Conside ...
This issue is more or less related to embedded perl in C, perlapio - interoperability with STDIO which I think I have solved for the Windows environme ...
I have an app which accesses a PostgreSQL database and needs to read some large binary data out of it depending on some needed processing. This might ...
For several hours now I am fighting a bug in my Perl program. I am not sure if I do something wrong or the interpreter does, but the code is non-deter ...
I'm running a system command and waiting for output matching a specific pattern, e.g: This will print line 1 and leave the loop but won't exit unti ...
I want to extract some data from a large-ish (3+ GB, gzipped) FTP download, and do this on-the-fly, to avoid dumping then full download on my disk. T ...
The IO::File, IO::Socket::INET modules have some advantages over directly using perl's built-in IO functions, such as having explicit syntax to flush ...
I am rather an XS beginner and I am looking into changing an existing XS module which uses a 15+ year old underlying C library heavily (in fact the mo ...
IO::File->open() doesn't seem to respect use open() in the following program, which is odd to me and seems to be against the documentation. Or mayb ...
I am trying to write some XS code that exposes pieces a library to Perl code as a stream interface that can be written to. The get_stream function bel ...
It looks like there is a symbol in main called '_<-' (without the quotes) in the same fashion as the other things that look like they could be hand ...
I've some values stored in the variables $a,$b,$c. Now I've to load these values into new file (create file & load). I'm new to Perl, how can I do ...
I am trying to read unbufferd data from a pipe in Perl. For example in the program below: iostat spits out data every 10 seconds (five times). You ...
I'm trying to add the PerlIO::eol package as part of my project without installing it, this way all dependencies can be packaged with my script withou ...
This prints 2 times OK; I suppose this is because Perl stores $dir internally as utf8. I there a way to check if PerlIO::fse has an effect on the f ...
I want to redirect the die messages to a separate file so that I can compare that file later to determine what went wrong. But this code gives me err ...
Perl code All the four flags are names of environment variables that are set (I checked using echo $flag1 from the shell). Here the if condition ...