Hi,
in my perl script i m using date command.
$prev_date has some value and then in one of the sub-routine, i use
$current_date = `date`;
how can i find the difference between 2 date...
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...
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...
Hi im looking Perl ways to read client hardware ID using browser
whether it is MAC address or anything else.
Thanks in advance
Hi,
I am new to perl. I am working on Debian/Linux
I have a perl file which calculates list of files has age more than 30 mins
And then it mails the list of the file
when I execute...
Hi,
I have a csv file with 10 columns.
I need a Perl script solution to read out the first column of values and use it in an UPDATE statement to an Oracle 10g database Table.
The csv ...
It is much easier to use a system call to mv to move multiple files/directories, but I want to use the Perl module File::Copy to accomplish this. Basically, I need to move the contents of the...
i have aray
@test = ("java", "visual", "pascal", "cobol");
how do i find if the the element visual exists in array or not.
i know to do thru for loop, but do we have any function for ar...
I am writing a client that will connect over the network to a server. The server will send (upon connect) multiple bytes of binary data, I need the client to log all these bytes of data send...
I am trying to get 3 batch files to run in parallel. I am using perl with system commands:
if (-e $Path . $batchs1 && -e $sPath . $batch2 && -e $Path . $batchs3 ){
system($Path . $batch...
What is the best way to get $year, $month, $day from string 20071224 using perl?
Hi, here is the situation
when a user logs in,
1-if it is succesfull the cgi, creates and sends a cookie with the username as the value,
2-then after sending the cookie, it creates a se...
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 ...
Hi,
I am trying to create a conditional statement "if" that will check if a value is in a list of values. Right now, I simply do this:
if ( $myvar == 'VAR0123' || $myvar == 'VAR1234' || ...
Hi,
I am trying to send an email via gmail's smtp server, using Perl MIME:Lite.
Case 1: without proxy server --> error message as shown
Case 2: with proxy server --> no idea how to do thi...
I'm using the following Perl script to create a spreadsheet from a text file. Basically the script works, but it's inserting a little square(carriage return character) as part of the $ACTIVITY...
here is what I am trying to accomplish.
1. Process an ini file (ghost) to search for each one of the headings -> [code]
and build a menu off of these. (so far this looks like it works)
...
i have create a web site which require user login. I want to clear the session information after the user close the browser. could anyone check the code below for me what's wrong with it?
u...
I'd like to calculate the difference between two times from the following time format
("%Y-%m-%d %H:%M:%S")
This is the date time stamp from my database concerning the arrival of the las...
I have the following perl called test3. When run, I got the following error about EOF. Please help. Thanks!
Can't find string terminator "EOF" anywhere before EOF at ./test3 line 5.
...
I have two files fileA and file B with following contents
fileA:
aaple
tomato
orange
pear
fileB:
tomato
cucumber
radish
mango
I need a code that will compare the two files and p...
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...
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 World!
Actually I have two questions, first one: I have a perl script that does a select from a DB2 database and stuffs the data in a variable like this:
---------------------------...
I'm on a FC3 box with DBD-ODBC-1.16, DBI-1.605, unixODBC-2.2.9-1 , freetds-0.82 and perl 5.8.5. I'm struggling on connect Perl on Linux to Microsoft SQL Server 2000. I can successfully acces...