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.

 
Time Tested Perl Solutions: 476 - 500 of 2190
 
i am Using the 'sample' data attached to:  Write a Perl requestor script check-policy.pl that will send a SOAP message to http://homepages.feis.herts.ac.uk/~3com0109/cgi-bin/policy.cgi. whic...
i want to sleep my perl code for some milliseconds how do i do without installing any perl module
I have a file and need to pull two lines from each group and print them with a tab. I need to just print the lines of alias and mail like: alias=AJones23          mail=ajones@city.oilfi...
Hi experts, I have several files: name1_Apr.csv: 1.6, 1.05, 0.73, name2_May.csv: 2.7, 2.11, 0.88 name3_Jun.csv 1.4, 6.7, 0.2   :   : ----------------------------- How do I...
Hi, I'm trying to figure out this perl syntax for passing a function 'pointer'.     sub test (&@)     {         my ($function, @data) = @_;     } so do the two egyptian hieroglyp...
need a regex that will allow me to store either a word or group of words/spaces into a string. It also needs to truncate and leading and/or trailing whitespaces. example:   my @terms = ( 'te...
I am writing a perl script to check all of the files in a folder and return the name and datestamp of the most recently modified file. I think I have most of these steps correct with the ex...
Part of this php script reads in all text files and stores them into an array. How do I convert this to perl?  what is an equivalent to preg_match in perl? opendir($test_dir); whil...
Scenario:  I receive 2 files onto a solaris box, i want to extract from them the time and date stamp of the files recieved and using this calculate the most recent. I may also wish to put this...
The result: 5917 <- prints from Line 1 0 <- what is actually in $pid variable. I need to carry the value 5917 in $pid to issue a kill statement but System returns 0 The statement  my $pi...
if I split cols of a file on a pipe delimiter. But there are spaces within the col and also within the value. How do I trim the spaces at the end of the value
Ok the script im using, $datadir = 'C:\\my-backups\\backups\\'; $x = '5'; opendir( DIR, $datadir ); @folders = readdir(DIR) ; closedir(DIR); foreach $folder (@folders){   ($dev,$ino...
I have an array (@contents) that contains a large list of records. Each record is in the following format: field1|field2|field3|field4|field5 Using perl and it's standard modules, how to I...
Is there any simple way to connect to a sql server running on windows from a linux m/c using the perl DBI module??? Do i need to download obbc drivers? Any help appreciated..........Also FYI, ...
i would have thought this was easy, but it just doesn't want to work for me. i have an on-the-fly web page that refreshes itself automatically, but *only* if there's new info to be shown. sinc...
I have the following script, which reads lines from file A and adds them to file B, also sorting them: #!/usr/bin/perl -w $dir = 'd:/CodeRelease/webrelease/rmvDate/logs'; $holdir = 'D...
How to: Remove leading and trailing whitespaces Even if it are more then one and only the leading and trailing onces. Not in the middle of it!  
I need to make my output files from my Perl program to be encoded in ANSI. This is due to another program only accepting ANSI encoding (They call it binary??) I have looked at this question...
Hi, i am using Net-Telnet-Cisco to communicate with various switches or routers. I can communicate sucesfully but i face this problem: when a router isnt accessible for any reason the pro...
Hi,   I am trying to parse a message file and extract messages from the file that meet the criteria.  So what I am looking for are certain types of messages that are logged in a file.  Exampl...
The following makefile runs a perl script.  This perl script writes to the same makefile. makefile ... target:  perl script.pl < somefile > makefile             target:  OBJS targ...
I am trying to get a directory listing of all directories that begin with "ui" in a specified directory.  I don't want to recurse down to any of the sub directories.  I already have a piece of...
Here's a snippet of the perl/CGI code I am working with: while ( my $cols = $sth->fetchrow_hashref) {     print "\t<TD>$cols->{Name}<BR></TD>\n";     print "\t<TD><center>$cols->{Town}<BR...
I am running a W2K - SP4 Serverand I installed Active Perl 5.8.2 build 808. LWP was installed when Perl was installed, and I installed Crypt::SSleay (.51) from a ppm session using install http...
I think I'll give this one more try. I think I've gotten close. But I'm still not able to remove the files from the "docs" directory. The "data/filedel.txt" gets stripped of files by running ...