Advertisement

Experts have come up with some helpful tips for getting a solution to your problem fast.

 

Welcome! If you have any general questions about Experts Exchange, feel free to ask me.

 
Top Perl Solutions: 201 - 225 of 317
 
# I'm trying determine what the next month will be # I'm using the Date::Manip; module as it I've been using it heavily today, for what would seem to be more complicated matters, but any met...
I have the following code, with give a dividing by zero problem. Obviously, the $fields[1] is not supposed to be zero. It print out a decimal number when direct print out. And it can be added ...
I use one script to pull data from a Cisco router then the second scripts uses the output file of the frist script to output the final file. I wish to combine these into a single script. ...
Follow up to previous question: http://www.experts-exchange.com/Programming/Languages/Scripting/Perl/Q_23785717.html I've attached a comma-delimited text file that I want to check the fou...
I am using the following program to get the values from the pipeline separated file But it is not working as i expected. input file contains : abcd|efd|adfa|adfASF|AsfF|asfA|fasFa|afa...
I have code in perl and I am using strict for it.I need help in defining lexical variable for $array[i] push @array,$op_val1; push @array2,$op_val2 my $i; my $sth=$dbh->prepare("INSERT I...
I am trying to install perl's EV (event loop)  module through CPAN (CPAN> install EV) , but I get hundreds of error messages from CPAN, starting with: ... Checking if your kit is complete....
I need some help with this script. The connection to the database works, the query works and the emailing portion of the script also works. My problem is that the if /while statements do...
I have syntax error from my code when trying to print lines from a file that contain /var/log/ I am trying to use regular expressions to find condition but have trouble with syntax. This has ...
I can reverse the string dog to god by:  perl -wle '$_=reverse "dog";print' I have seen before how I can issue a perl command so it reverse everythin i type >Hello olleH (IE almost as ...
I want to sort multiple fields in an array, some lexically,some numerically. A previous question, http://www.experts-exchange.com/Programming/Languages/Scripting/Perl/Q_20832873.html, is al...
I have the attached code using the DBI module doing a query to MS SQL.  When I pass it: Global Sourcing - IT it works fine. I get the following:   Global Sourcing - IT's USD group number ...
I would like to make a "here document" in perl and then store the result inside of an array instead of a string.  However the text all goes into the first element of the array so I only have $...
ok, I don't know how to write an array really, got a rough idea though. I have a form that sends in some data, that data contains A FileNumber that is only ever 1 to 3 A 4 Digit Year Nu...
Hi - I'm trying to grab a list of files in the same directory that use the prefix, 'NEW_Historical_RCI_DI_' How would I search through the directory and store this list of files in an arra...
Hello : I AM totally new to PERL I have to change some functions in a website written in PERL. Can someone explain me step by step(line by line) what this function does ? especially    $S...
The following script would work fine except that when it comes to the "$Subject" portion. When the receiver opens up Outlook to open the mail, the Subject is shown as part of the body. (e.g....
Hi This similar to the other question I had few hours ago. I need to extract the table names in a list, sort the list and run uniq on it. Now the join example is a more complex and we c...
Hi I need to get a command or script to separate the single table name that is after "=" and ends with the space!! A sample output below Thanks Emad         partialStatement.From...
Hi, I've been having a nasty time coming up with a regex that will match the following: Net::Telnet=GLOB(0x105204b8)->errmsg Net::Telnet=GLOB(0x10520728)->errmsg Net::Telnet=GLOB(0x10095...
Hello i have this $www->get($url);         $www->form_number($i);         $www->field(subject => $subject);         $www->field(message => $message);         $www->field(user => $user);...
on xp pro server pack 2 missing something simple get error : Can't spawn "cmd.exe": No such file or directory at C:\b.pl line 38. system mkdir args failed 65280 at C:\b.pl line 38. ...
Is there a way to do this in perl with same format output on win32 platform? option explicit dim aServer(2) aServer(0) = "server1" aServer(1) = "server2" aServer(1) = "server3" D...
In shell: # a=uname # $a Linux How do I manage that within a perl script? I shall explain a bit more... I have a script where I examine arguments passed to it when run from the comm...
I have a variable containing a string of text. Whats the easiest way of identifying the first word in the string (i.e. the charachters up to but not including the first space)? Thanks