Time for your 3rd Quarter Update! Are you in the running for the 6th Annual Expert Awards? Click the link to find out.

Third Quarter Hot Shots
 

Having problems asking a question? Have a general question about Experts Exchange? Let us know!

 
Top Perl Solutions: 151 - 175 of 306
 
while($line = $log->read) { switch ($line){ case (/EXCHANGE: /){       if ($line !~ /Ordering not allowed/) {         my @linefeed = split('EXCHANGE:',$line);         my ($symbol, $tag, $...
If I do this: echo "Nov 2 08:5" | perl -ple 's/2 /3 /g '    It will echo back...  Nov 3 08:5 BUT if I do this echo "Nov 2 08:5" | perl -ple 's/08 /07 /g ' It doesn't change  and I get ... ...
Hi All, I need to search for all the groups starting with 'abc_' or 'def_' using LDAP in perl. How do I write the filter for it ? Thanks!
Who can explain to me this Perl source code? I am Perl beginner. Sorry if this is a stupid question. Thank you!
In perl i would like to launch x amount of threads concurrently and have them run for y amount of time.  I was trying to use the Parallel::ForkManager module, but I need an outter loop to keep...
The below code gives me: 9 7 8 instead of 9 12 32 7 32 8 unless I substitute gt with >, then it's fine. know the issue?
T     137     jc1235     1.107.3.5 T     277     jc1236     2.0.0.25 T     166     jc1232     2.0.0.25 T     316     jc1231     2.0.0.25 T     202     jc1232     2.0.0.25 I have a file with 4 columns. 1) day which has value T or Y 2) id 3...
I know I am asking basic question in perl, but while reading the documentation and online reference I feel these are getting interchanged, could someone explain me where should use the word me...
Good morning all.... I have been learning Perl for about 2 months now and I guess I am getting there as much as I can however I am really stuck. I have a Perl script called postEvent.pl which...
I have a script that everything seems to be working fine, except for looping through and array. @allservers = ("serve01","serve02","serve03","servw01","servw02","servw03"); If I print th...
I am just learning perl so please bare with me... I have a script that runs as a webpage.  In the script I do a software version check by sending a command to a piece of software.  The soft...
I have code to assign the value to 1 if there is no value in the varible. It works great for anything over 1 but if you enter 0 it defaults to 1.  Please can you tell me how to change the code...
I have a list of servers like so ip_address          fqdn its a list of about 30 servers, each line has an IP address and an FQDN on it.  I need to isolate the IP address. So I starte...
My brain in not functioning today, hence the reason I'm handing this over to someone else with a half functioning brain ;-) I have a file with fixed width pipe separated columns and I need ...
Hi, I'm looking for some advice on what I need to do to provide decent security on a form I created. I need to get the form out there soon to be used. But, spam and form hijacking seem like p...
I'm using the glob function to read through a heirachy of files... I did have it working however when I added mysql I must have done something to the php.ini file and it no longer works any he...
I'm trying to make a generic function that will output all elements of array regardless of dimension. How would you do that? my @ar1 = ("ele1", "ele2", "ele3", "ele4", "ele5"); my @ar2 = ...
Is this the right way of doing this in perl? (I feel I'm still coding too much with a c++ mindset). Let me know what you are thinking, if you are suggesting a different way of doing it, tell m...
I'm revivifying legacy code but don't have time to refactor it, so I'm looking for a hack. Current code is one single (huge) script using strict that declares all its "global" variables using ...
  ____________________________ Batch-1 ____________________________                                                              Risk-1 id                  :  100                       Ba...
There is one more issues suppose if I have something like   'DAY1' => ['NAME', '', 'CHECKING', "$amt"],  that one if the values is empty or null as in the above case the city is null The sc...
Hello Perl experts, Im writting a subroutine for my startup script and I get the titles error. This subroutine is intended to write log entries based on various events that are triggered in...
Hello: I have code that checks , in a loop, a web page, waits for a determined amount of time, then checks the same page, and finally prints out the page if there was a change. What I wa...
when running psexec \\IP -u <username> -p <password> cmd I get: cmd exited on <IP> with error code 1 This does not happen on wndows 2008, Vista etc where the cmd runs succesfully.. ...
Dear Experts, What is the easiest way I can achieve the following. I would like to enter in a url, and print out all links from that url. Thanks