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 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 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...
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
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 ...
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) {
...
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...
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 "...
Let say I have "12345" store in $str.
How do I tell how many chars are in $str ?
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...
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...
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...
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...
I have this type of data repeated over 100 times that I need to extract and write to a .csv file.
(Just the numbers not the headers)
CAUCPSCT
KEY (CELL_NUMBER)
...
Hi,
Can someone give me some decent instructions on how to install the PadWalker portion of Epic when using Eclipse?
I have found some examples, but there must be a simple set of steps s...
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 all this is my first question on this board.
I have a data log file which needs splitting.
the data file consists of the following data:
Fri Nov 30 16:52:25 2007 | <hostname> | <ip_addre...
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'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...
In the Perl code below I'm removing carriage return characters, but I need to also remove blank lines.
#!/opt/perl/bin/perl
open(IN,"InputFile.txt") || die("Can't open file");
open(OUT,...
Dear colleagues,
I am running ActivePerl v5.10 on Windows XP Pro. I have been trying to connect to MySQL v5 with no success. I have been getting the following error:
-----------
perl d...
This is close, but it deletes everything =).
$BACKUP_DIR = "/var/www/backup";
# Read directory (ignoring . and ..)
opendir(DIR,"$BACKUP_DIR") || die "opendir $BACKUP_DIR failed";
@file...
i have a zip file test.zip this zipped file contians plenty of zip file
how to unzip test.zip using perl
I'm trying to get this part of a perl script to work.
$excludezone = "com\.ru";
if($domain2=~ m/\\$exclude_zone/ ) {
print "sorry $exclude_zone tld is not allowed";
}
I basically...
I would like to send an email from a perl script. This email should have a message body and also attach a file. This is what I am currently trying.
$mail_command = "uuencode $filename $fil...