filehandle
Problem with piped filehandle in perl
I am trying to run bp_genbank2gff3.pl (bioperl package) from another perl script that gets a genbank as its argument.[详细]
2023-01-11 05:12 分类:问答List all currently open file handles? [duplicate]
This question already has answers here: Closed 12 years ago. Possible Duplicate: check what files are open in Python[详细]
2023-01-09 18:53 分类:问答OSX Custom extension icon Association
I\'m trying to get my application to display an icon for a custom file extension using the following code:[详细]
2023-01-09 05:55 分类:问答Ensure a file is not changed while trying to remove it
开发者_如何学GoIn a POSIX environment, I want to remove a file from disk, but calculate its checksum before removing it, to make sure it was not changed. Is locking enough? Should I open it, unlink, c[详细]
2023-01-07 03:18 分类:问答UTF-8 encoding on filehandle in Perl
I\'m applying UTF-8 encoding to STDIN and STDOUT. However how do I make sure that I apply UTF-8 encoding to the file that I pass to my code below (<> will read from a file instead of STDIN if a tex[详细]
2023-01-05 18:59 分类:问答Perl: getting handle for stdin to be used in cgi-bin script
Using开发者_C百科 perl 5.8.8 on windows server I am writing a perl cgi script using Archive::Zip with to create on fly a zip that must be download by users: no issues on that side. The zip is managed[详细]
2023-01-04 06:42 分类:问答Is there a perl module that can start a process and return the three main I/O handles to that process?
In perl, I often need to run a child process, send some input to it, and then read its output. There are a number of modules to do this, but they all seem to require you to pass in pre-existing variab[详细]
2023-01-04 01:19 分类:问答How can I store and access a filehandle in a Perl class?
please look at the following code first. #! /usr/bin/perl package foo; sub new { my $pkg = shift; my $self = {};[详细]
2023-01-03 00:51 分类:问答Parse lines of integers in C
This is a classical problem, but I can not find a simple solution. I have an input file like: 1 3 9 13 23 25 34 36 38 40 52 54 59[详细]
2023-01-02 20:13 分类:问答How can I tell if a filehandle is empty in Perl?
For example: open (PS , \" tail -n 1 $file | grep win \" ); I want to find whether thefile handle is empty or no开发者_运维技巧t.You can also use eof to check whether a file handle is exhausted. H[详细]
2022-12-29 23:14 分类:问答