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: 1 - 25 of 2190
 
Hi, i would like to convert a date format into unix timestamp. I searched the whole web but did not find anythin yet. Any sollutions?? tnahx a lot
I'm trying to return an array of "shared" members between two arrays (strings). Now my subroutine seems to work, but I can't read the return array. I suspect I'm passing a pointer to an ...
I have a 4 byte string which I would like to convert to a integer. I'm reading the data from a file and the file contains 4 bytes for the ID number. So I've extracted the 4 bytes as text into ...
I saw something about switch statements, so I tried one.  But it's not working.  Do you know what's wrong? chomp( my $score = <STDIN> ); switch( $score ) {     case [90..100] { print "...
I want to pre-configure a software package that people download from a webserver. For this I'd like to preset some strings inside a binairy application file. Basically what I need is a Perl...
Anyone able to help me? i've got a function in perl which trims spaces (all of them) in a given string(=argument) which looks like : sub trim {    my($string)=@_;    for ($string) {      ...
Let say I have "12345" store in $str. How do I tell how many chars are in $str ?
Hi, I am using the Net::Telnet module and calling $telnet->cmd($command) to invoke a process on a remote 2K machine, from a shell script on linux. The process is invoked fine but the 'cmd' co...
I have a perl script running on a solaris 9 box that if a mail queue hits 5000 a alarm goes off and send out a e-mail and text page. What i want to do is when this number is detected I want...
While reading STDIN I need to be able to break out of the while loop and stop the STDIN from reading the rest of the file if a condition is met. This has to be done from an if statment imbedde...
Hi, I need some help with writting a perl script. Here is what I need to do: 1. I need to pull down a bunch of files from an ftp server on a schedulable basis (mainly daily). The file name...
Hello, Briefly, i have a list of comme files types i accept for upload with: @fichiers_permis      = ('tar\.gz','zip','tar');   then i generate my regular expression: foreach $type (@fich...
if I have a perl script for example test.pl in Windows XP, how do I run the script by just typing "test.pl <arg1> <arg2>" in the command line instead of having to type "perl test.pl <arg1> <ar...
I use the following regex to make every word in a string to make all words have first character uppercase. $str="JB morGan & CO"; $str=uc($str); $str=~ s/(\w+)/\u\L$1/g; in this exampl...
I've a Perl script working perfectly and now I must add: use strict; at the beginning of the script in order to run it correctly in a new server. I get an error: Bareword "break" n...
There is a perl script which takes two command line parameters as input. This script (myscript.pl) has been encrypted using GnuPG tool (i.e. pgp) resulting myscript.pl.asc. When this perl scri...
I have this in my code $sql = "INSERT INTO `contractProducts` (`clientId`,`productId`,`productStatus`,`productBTW`,`productPaymentperiod`,`productRef`,`productDescription`,`productPrice`,`p...
I'm writing a fragment of perl which is being included by the main perl program elsewhere. I want to split it into a few files for maintenance purposes, and include each of those from my "t...
I have the following perl code that copies and renames files with the current date appended to the file name.  I need to modify it to move  and rename the files with the date appended to the f...
I am getting the error message Spooler SubSystem App has encountered a problem and needs to close.  We are sorry for the inconvenience. while trying to print
Experts, I plan to put PERL in my resume. (not changiing jobs right now) Can you put down some questions here which you think u'd ask in an interview with a PERL candidate?? Manav
Hi there, having a problem with perl. I get this error when trying to run any perl script. ### Can't locate strict.pm in @INC (@INC contains: /usr/local/lib/perl5/5.8.0/i686-linux /usr/...
I am new to perl,cgi  I have installed perl 5.6 and when i run a test cgi script i am getting the following.... Can't locate DBI.pm in @INC (@INC contains: C:/perl/lib C:/perl/site/lib .) a...
Hi There, I am attempting to install DBD-Oracle using ppm 4.0 on a Windows XP computer that has ActiveState version 5.10 installed. I could not do this successfully These following are the...
I'm using a perl script to time things with code like $startmain=time; at the beginning and at the end of what I want to time.  Time seems to be limited to a minimum value of seconds, while I ...