Advertisement

635 organizations, including eBay, Ericsson and Lockheed Martin, now work smarter with Corporate Accounts. Save up to 42%

 

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

 
Time Tested Perl Solutions: 651 - 675 of 1245
 
using system command, how can I output to text file. system("dir \\server_name\folder\242*.txt/b  > BADGES.TXT");
dos2unix does not work for me, so I like to try do this inside perl. I need to remove the "^M" at end of each line. how  could I do this in perl?
How do i read STDIN from sendmail ? i'm trying to pipe the message through the sendmail alias file like: help:       |/usr/local/bin/help.pl All attemps to read are failed, like: #!/usr/...
How do I find the time difference between two times which are in this format using Perl ? 00:05 00:30 ie. 00:30 - 00:005.
Looking at the CPAN pages, I can find a lot of Excel tools.  But most of them create a new spreadsheet. I need to fill in info on an existing spreadsheet template. What is the best way to d...
Hi. I have an internet gateway setup as follows: Ubuntu Linux (Dapper) Webmin (for configuring iptables etc) DHCP Server NAT Masquerading iptables firewall. I need to be able to r...
my $Book = $Excel->Workbooks->Open($abs_path) || die "Error: File can not be opened $gFile \n"; Can't call method "Open" on an undefined value for the above line I printed the $abs_path and...
have a perl script my_script.pl which I invoke under C-shell on Linux (brand new Linux install and its not about the script since it has no problems on another server). I invoke it by typing ...
PERL What is this symbol mean in perl use Net :: FTP // what is use and :: mean my $TRUE=1     // what is my mean if (not -e $writetofile) //what -e mean here foreach $morse1 ...
Is there any way to convert attached code snippet to a perl version that does basically the same thing?
Hi! I need to replace some text in all the files (txt) in a given folder, the string i need to replace are <citation valid="true"> and <citation valid="false"> I need to replace...
I use the following code to read a list of contents from a directory [code] @files = <$in/*>;      foreach (@files) {         } [/code] I know it's easy to filter one file type by placin...
I may have found a bug in date::manip version 5.54 where the business time function returns an incorrect value. I have changed the configuration in (I only have one) /usr/lib/perl5/vendo...
what is difference between chop and chomp
Is there a typeid equivalent in Perl? I am using Perl version 5.8x and I ideally would like to find out what type of variable I am dealing with, e.g. int string etc.., but especially what t...
HI I've been fiddling with perl for the last couple of days and am completely bit bamboozled by its intricacies - I'm finding this pretty hard as a perl newbie, and unfortunately my boss ha...
Hi everyone, I'm currently working on a way to parse out a web server log file and I've managed to put together the regular expression that pulls each field that is delimited by space. I h...
hi Im trying to call GnuPG from perl to encrypt a file. Problem I have is that with GPG being interactive I cant just encrypt the file, i need to send it some further information. Anyone...
Hello.  I think this is a simple question, but I'm not sure on the syntax of the command within Perl (or better way of doing it).  Here's the setup: I have multiple sets of files that get u...
how do i install  perl with module XML::Simple on linux ,windows and solaris or from where i can downlaod perl with which version which will have module XML::SIMPLE , Thnks
I would like to call a c-shell script from my perl script.How can I do the same?What is the syntax?
I'm having a problem installing a module (Net:SMTP) using CPAN. Below is what I am trying, and the error I get at the bottom. I'll also need anything that is a prerequisite for Net::SMTP (...
Hi,    Help needed related to the below perl script. It is using SFTP to tranfer files, but i dont find any login info. Is it trying to transfer from one server to another or on the same s...
I like to write a print to write a long line into a file. I also lile my code to be readable, something like:   print "aslkdjaskdja           askdjladsjladj"; is there a line continuation...
What is the use of: umask 0000; and what is it doing??