filehandle
How can I use __DATA__ twice?
How can I use __DATA__ twice? #!/usr/local/bin/perl use开发者_运维问答 warnings; use 5.012; while ( <DATA> ) {[详细]
2023-01-31 02:29 分类:问答help extracting both contents of a file and values from the same filename using perl
Sorry, if this to verbose, but I have a perl script that is partly working. I have a regular expression that extracts either foo|bar and a prefix on a string given. But the problem is my strings are a[详细]
2023-01-29 18:19 分类:问答How to delete a certain line in a text file?
Can you help me code a program that deletes a certain line in a text file. I\'m planning to use: fgets to capture a line from text file and store it in an array, but i was confused how does fgets s[详细]
2023-01-29 00:51 分类:问答Perl - Start reading from specific line, and only get first column of it line, until end
I have a text file that looks like the following: Line 1 Line 2 Line 3 Line 4 Line 5 filename2.tif;Smpl/Pix & Bits/Smpl are missing.[详细]
2023-01-27 08:10 分类:问答How to get the name of a file from a file handle in Windows using C?
I\'m trying to retrieve a file name from a given file handle. I\'ve seen that GetFileInformationByHandle could be useful, but the structure it returns does not contain any file name information (http[详细]
2023-01-27 01:56 分类:问答How can I tell a Perl function that takes a file to read from the special ARGV handle?
In perldoc perlvar, I read this: Note that currently \"ARGV\" only has its magical effect within the \"<>\"[详细]
2023-01-22 17:25 分类:问答Create a certain size file and filled with no data on iOS
I\'m developing an iphone app, I need to create a certain size file on filesystem and filled with NO data first, then seek to a offset and write data when get data from somewhere else开发者_JS百科[详细]
2023-01-20 22:54 分类:问答How can I treat many log files as one virtual file in Perl?
I\'ve got multiple access logs in the logs directory, following the naming convention below: access.log.1284642120[详细]
2023-01-16 21:21 分类:问答How can I pass a filehandle to Perl Expect's log_file function?
I feel stupid for asking this, but I\'ve tried a couple things and I\'m not sure where to go with it.[详细]
2023-01-16 12:00 分类:问答How to assure that filehandle.write() does not fail due to str/bytes conversions issues?
I need to det开发者_StackOverflow社区ect if a filehandle is using binary mode or text mode - this is required in order to be able to encode/decode str/bytes. How can I do that?[详细]
2023-01-13 17:35 分类:问答