I am reading in a file with standard IO :
@report = <FILENAME>
I have a flag set for the start of the information I want to extract:
~m/DATASTART/g
What I want to do is to know the curre...
I dont understand why there is one more $SIG(CHLD) function inside the while loop . is it necessary?
use POSIX ":sys_wait_h";
sub zombie_reaper {
while ( waitpid( -1, WNOHANG ) > 0 )
{ ...
I'm having an issue wherein I can't get Perl's Net::SMTP module to send to multiple addresses.
Whichever address I put in the first "To:" entry is sent correctly, but I can't get CC to work.
...
Hello,
I tried launching vi from a perl script using the "system" function and backgrounding it with:
#!/usr/bin/perl
system "vi &";
1;
However, I got the following error messag...
Hi experts,
I have q few scripts that all need the variables declared with use vars qw( $q $db $html ..........
Now since the variables are more than 300 and all the scripts use the same v...
Hello!
I have a litle problem. I have a formmailscript and som of the mail that I got contains a lot of strange characters insted of the swedish å,ä,ö. Can some one tell me how to replace tho...
How do I redirect STDERR and STDOUT to a log file. I want to log all output, both HP-UX output and Perl output to a common log File. I don't want to use back ticks, since I'm not intereste...
hi guys,
I was wondering whether there is a script that allows the determination of the encoding type of the browser (Chinese, Japanese, etc) and also
a script to change the encoding type ...
$a=1
$b=2
how do I swap $a and $b in a "one liner"?
I a file with over 1000 lines. I want to delete an entire line if I find a certain word on it, "word". I'm fairly new to perl. In unix shell i would just:
g/word/d
What is the sytax in ...
I've searched the net, and couldn't find anything about a problem I'm having with Net::SMTP.
Could you suggest something or direct me somewhere about this problem ? Ultimately I'm looking to...
Problem/Requirements:
I cannot use Active Directory to manage quotas and limit utilization, so I need script that would provide one feature - report disk utilization by user/group.
Details ...
Greetings Perl Experts,
This is not a homework assignment. I am attempting to accomplish the following:
I have 3 patterns that I need to grep for in gzipped files in the directory.
For 2/3...
i have a script that searchs some files and prints out the lines that contain both of two key words but i only get a print out when i have the case as it is in the file, sometimes these key wo...
How can I install and use Term::Readkey module on the Windows XP?
I Copied it to the direcory c:\Perl\lib\Term
But when I run my programm ,I received an error:
Can't locate loadable o...
How do I use "s/search/replace/gi" or something alike to search data after doing a split();?
The code explained: it opens a socket, reads a website, uses split to take out certain data and ...
I have a file on my ftp website and I would like for it to be accessible by a specific person where the login and password would be in the script they use on the browser such as the following:...
Hi, I need to check whether my file contain any ASCII character thru perl script, how do I do it???
Hi,
I'll try to be as clear as possible.
I have a 710 RTF documents that ALL have embedded word/excel/PDF/MSG files in them.
I need a way to extract all of these documents en mass and...
I need a Perl script to do the following...
1. I have a collection of about 100000 files located in a windows directory called C:\AppFiles.
2. I would like to organize these 100000+ file...
I have the following code and need a regex that will pick out the 0% ( I want to be able to check the value of just this one table). I don't want to get any of the other "percent values". Ke...
I am coding application using Perl Catalyst framework which uses DBIx::Class for database manipulation. I also have a table of users which are ordered in some kind of a tree. My Postgres table...
We have a Perl script that successfully sends emails to various distribution lists etc. However, we are now trying to send to an address that resolves as an Outlook email folder, with no succe...
I am using the debian server and through which Ii automatically got a .csv report which shows me a no like 45, 5, 65 etc.Now What I want that the csv report that I am getting should be coloure...
I have this code
$newfh = IO::Socket::SSL->start_SSL( ...);
*STDIN = \*{ $newfh };
*STDOUT = \*{ $newfh };
and it's working fine, hence after session is over, the code
open(STDIN, '<...