How do you go about getting and setting environment variables within a perl script?
I am using Perl 5.003_7 and windowNT. I want to zip all .dat file from a folder. How do I zip that files. help me.
Hi all,
I'm pretty much looking for two things in this particular example. I'm running a small script which will test if a socket is (22/tcp in this case) is non-responsive or if there is ...
%aList = ('car'=>300,'train'=>150,'truck'=>100,'bike'=>330);
I need to write a program to sort this by the order of key and value respectively without
using the sort functions provided by ...
Hi,
I am using a perl script to dump data from a database into a text file.
The problem is, after running the perl script that dumps the data into the file and opening the file. I realised...
Hi all,
I need to remove the same string from the txt file using perl, how do I do it????
"aaa" already appear once, so it should rmove the duplicate line.
Pls some 1 help???
Just want to know how getting current whole path to current directory, changed in my script with chdir for example...
I am having trouble with a simple problem. How can I check/test if a value is in an array?
@attendees = ("kim","bob","jim","john");
$value = "john"
@numbers= (3,5,6,8);
$check_value...
I have setup an sms gateway. In my setup procmail will send sms's when there are specific words in the subject line. For the sms sending I use Gnokii.
A standard email is too big to be send ...
Hi
I am working create a connection to database using DBI module. but I am getting error "Can't locate DBI.pm in @INC..."
I am working on perl in CYGWIN. I think DBI modules are not instal...
I have a Perl CGI script and I have sub that I'm calling that takes a very long time to run. It takes so long that the web browser times out and the process dies before it finishes.
I need...
I'm having a terrible time with File/Tail.pm with ActivePerl 5.8.8 Build 820. I contacted ActiveState but they haven't responded yet.
I get this error:
D:\>C:\perl\bin\ppm install File::...
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 ...
I have a string that contains a time, e.g. "18:23:32" I would like to compare it to the current time to make sure that this time is keeping current. I am quite new to perl and I have no ide...
Hello,
I am still kinda of new to PERL programming, and need some help with system commands, pipes, and network shares / drives on Windows. I am trying to XCOPY a file to a network drive o...
What is the best way to sort on two columns in a .csv file? Here is an example:
serverone, a1
serverone, cpu
serverone, a2
servertwo, cpu
servertwo, a2
servertwo, a1
etc....
What I...
I have a script and I want to add login sessions to it but I don't want to use cookies. I have already programmed a way to do this but the problem I am having is as follows.
When the user l...
Hi,
Is there a way in perl to provide a file-path in the 'mkdir' command. I want to accept a path the user wants to create, such as 'D:\Test1\Test2', where Test1 does not already exists. I ...
Hi all,
How do I remove double quotes from a string?
Example: I have a string "apple" in a list and I want to replace it with apple but not try to remove the leading and trailing " becaus...
Greetings Perl Experts,
This is not a homework assignment.
I have written the following code.
==Begin code.pl
#!/usr/bin/perl
my @array = "trial.out";
my $element;
for $element(@array...
Hi guys! Hope you are well and can help.
At the moment i have an index.html file that contains hard coded informaton about a directory called 'img', which contains all my images.
Currently...
I have a $variable received from a HTML textarea form. EG:
This
is
a
test
I want to remove the newlines (carrige return line feeds)from it, so that it looks like:
This is a test
I h...
Platform: Windows XP
Perl Distro: Activestate
I'm trying to compile several modules under windows using ActiveState Perl. I"m using the cpan shell. When I do install Net::SSH::Perl its ...
I'm a tech writer and I need to document system properties we have in some XML-like config files for our application. There are too many files to do this manually, and I may have to do it agai...
Hi All,
I have a script written by someone else and I am still learning perl. What the script does is monitor ftp uploads through a pipe and then processes them. The problem is, something i...