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: 201 - 225 of 2190
 
I need to extract a filename from a path string $str="C:\foo\bar.jpg"; or $str="/usr/foo/bar.jpg"; basically anything after the last \ or / How can this be accomplished?
Trying to implement mget since it is not a built in function in the NET::FTP library but I keep running into problems.  This is what I have: my($ftp,$pattern) = @_; foreach my $file ($ftp-...
Hello, I'm just learning perl and it is quite useful. I have the following perl script: As you can see if that line has letters in it I'd like it to print the offending line # out and conti...
This is what I need to do: I have many files like this: c:\dir\pippo-red.html c:\dir\paperino-yellow.html c:\dir\pluto-red.html c:\dir\gastone-green.html I have a HTML2TXT.EXE progra...
I  have the following perl.  But, when I run the perl, I got the following error.  Please help. #!/usr/local/bin/perl sqlplus system/manager\@myserver; syntax error at ./test2 line 2,...
Hello Experts,  I am looking for some tips and possibly examples in creating a perl or a shell script that would run off my cygwin env to analyze csv files and replace for ex: the column 5 w...
I was able to run the perl script, but notice numerous Argument "wait"  isn't numeric in numeric gt <>> at contact.pl line 16. Now  pim.vol contains contacts, calendar, etc, so maybe the conta...
I need a perl script to copy everything in a  folder that contains files and folders to a new folder. Orig folder        C:/Program Files/Application/Data/Backups/ Dest folder        I:\...
How do I urlencode a string in Perl?   For example I wnat to pass another url as a parameter in the querystring so I need the urlencode version of this: http://www.somewhere.net/hithere.cgi
I need a easy way to compare two files, I have a small perl script that I works for this but doesn't work when the cases are different in the files, tried putting in to ignore the case but d...
Hi, In Perl, I know how to parse a file line by line, but how does one do a similiar operation with a string variable in a program. Lets assume I have a string like :-  "Name: Test   City...
Can I use awk or perl or other utility to make one output entry for a line starting with a date and 3 following lines with a filled parameter? so it looks like this?: 02-01-2008 03:34:50 20...
Hi, If I use LWP to POST to a form to for example http://www.google.com/post.pl, How do i let LWP auto redirect if http://www.google.com/post.pl redirects to http://www.google.com/post_new...
Hi all, I'm adapting a proxy script I got from:http://www.accordata.de/downloads/port-proxy/index.html This script can be used for port forwarding but is written for TCP connections only. ...
I am a complete nowise and would greatly appreciate help with a script. I have a file which needs to be split into multiple file based on the error code. Each record begins with REPORT: ...
Hi all, I'm trying to get Crypt-SSL to work with client certificates without much success. I am using Crypt-SSL 0.53 fetched from http://theoryx5.uwinnipeg.ca/ppms/Crypt-SSLeay.ppd and can ...
Dear Experts - My control file will have the following string -- start file = hfossm.txt  : ms_hfossm.dat  : ms_hfossm.token  : ms_hfossm.dsc file = hfospsm.txt : ms_hfospsm.dat : ms_hfo...
Expert provided excellent solution(see attached code) for reading information from map file and writing this information to a makefile.  Note:  Perl script gets invoked from the makefile that ...
Hello all I am trying to write a script that can search through a file from begining to end. As it steps through the file it will look  for the following string....."Flushing". When the s...
Is there a PERL module that will allow my pc to communicate through USB?  I'm trying to copy a script that I have; it that communicates by serial port.  I want to add an optional feature that ...
This code is a result from earlier question: http://www.experts-exchange.com/Programming/Languages/Scripting/Perl/Q_23233585.html There's a problem - script is initiating 2 of the batch jo...
How can I remove html tags from a string but replace with the same number of dummy or padding characters that were removed so the string length is the same? im currently doing - $word_str...
Hi, when i run my sendmail.pl script from xyz server, it runs fine and sends the email. but when i run from different server "abc", it give me following error: Can't call method "mail" on ...
When writing a c-shell script, I use "cat file1 file2 file3 > results_file" to concatenate files 1 through 3 to results_file. What is an easy way to do this in Perl? I want to give the names f...
I'v put the following values in a hash with the key $Info{$_->{stand_id}} = {totaldays => $totaldays, stand =>$rowref1->[0]->[0], standinfo => $standinfo, max_space => $rowref2->[0]->[2], max...