passing array reference from one perl script to another perl scirpt

2008-01-08 Thread Siva Prasad
Hi Gurus, Iam getting problem in accessing the array reference which is passed as command line argument to a perl script from another perl script I have a main perl script I have declared an array as "our @arr=("1","2","3","4"); And I have passed this array reference to another Pe

RE: removing duplicate lines across files.

2008-01-04 Thread Siva Prasad
: Thursday, January 03, 2008 4:04 PM To: Perl Beginners Subject: Re: removing duplicate lines across files. Siva Prasad wrote: > > Hi Gurus, Hello, > I want to remove duplicate lines across files. > > Below is the detailed problem, > > > I have file1

removing duplicate lines across files.

2008-01-03 Thread Siva Prasad
Hi Gurus, I want to remove duplicate lines across files. Below is the detailed problem, I have file1 file2,file3,file4,file5, The lines in file1 are there in file2,file3,file4,file5 I want to remove all the lines which are there in file1 from file2,file3,file4,file5. Can

values of DBI statement handle not getting written into text file

2008-01-02 Thread Siva Prasad
Hi gurus, I have a problem printing values of DBI statement handle into a text file. The detail problem is as bellows: I am sending a query to one of the subroutines of a package and getting the statement handle with return statement If I print the values in statement handle

thumbs nails of file

2007-12-29 Thread Siva Prasad
Hi Gurus, I have some video files with thumbnail images associated with each file. What I need to do is get the thumbnail image and store other folder by name "Images" with same name. Is there any way in perl to get the thumbnail image of the video file. Thanks, Siva <>

how to know whether the cick on the psuh button is success or not

2007-11-22 Thread Siva Prasad
Hi In Win32::IEAutomation If I click on a button, I wanted to know whether the click on the button is successful or not. Below are the details: I wanted to know whether the click with the following function is successful or not $ie->getButton('caption:', "get")->Click;; Af

DBD::mysql::st execute failed: Column count doesn't match value count at row 1 a

2007-11-16 Thread Siva Prasad
Hi Gurus, I am getting the following error while trying to insert into database.I am getting the following only for this table, For all other tables I am able to isnert data

RE: errror while installing DBD::MYSQL.

2007-11-12 Thread Siva Prasad
I am still stuck up with the below problem. Please help me in intalling DBD::mysql on WinXP Thanks PP -Original Message- From: Siva Prasad [mailto:[EMAIL PROTECTED] Sent: Thursday, November 01, 2007 11:09 AM To: 'Tom Phoenix' Cc: 'beginners@perl.org' Subje

RE: errror while installing DBD::MYSQL.

2007-10-31 Thread Siva Prasad
HI Tom, I use correct capital words and also used perl Makefile.pl --help could not figure out where I am wrong? Thanks, PP -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Tom Phoenix Sent: Wednesday, October 31, 2007 8:32 PM To: Siva Prasad Cc

errror while installing DBD::MYSQL.

2007-10-31 Thread Siva Prasad
Hi Gurus, I have installed DBI and when I run the following perl script; --SCRIPT use strict; use warnings; use DBI; my $DSN="DBI:mysql:database=faculte;host=localhost;port=3306"; my $DB_OBJ=DBI->connect($DSN, "root", "sqlroot123"); #my @dr=DBI->installed_drivers; #print "@dr

how to get source of of web page which is hosted on the server (which I dont have access).

2007-10-29 Thread Siva Prasad
HI Gurus, I am opening a web page using win32::IEAutomation and clicking each link on the page and reading data.(This page has 177 links). The above processes occupy more memory, After some time the page is unable to load and the script gives me READY STATE error. I have used Wait

PArsing tables of web page directly on the web.

2007-10-23 Thread Siva Prasad
Hi Gurus, I wanted to parse a PHP page which is on web. I don't have access to server where the PHP page is hosted. So I wanted to get source of that particular page and then parse the source file. Here is the code: ---Code use LWP::UserAgent ; $ua = new LWP::UserA

PHP parsing

2007-10-23 Thread Siva Prasad
Hi Gurus, I have a PHP page I need to click on the links that are there on the php which will navigate me to another PHP page and I need to parse data on them Is there any Perl modules that will server my purpose. Thanks in Advance. PP <>

RE: problem with variable scope

2007-10-22 Thread Siva Prasad
Hi Gurus, I got the mistake which I was doing. Thanks a lot PP. _ From: Siva Prasad [mailto:[EMAIL PROTECTED] Sent: Monday, October 22, 2007 8:01 PM To: 'beginners@perl.org' Subject: problem with variable scope Hi Gurus, I have written a packag

problem with variable scope

2007-10-22 Thread Siva Prasad
Hi Gurus, I have written a package as below. __PACKAGE package parseSite; use strict; use warnings; sub new { my $class = shift; my $Input_file=shift;

parsing website and building xml file

2007-10-18 Thread Siva Prasad
Hi Gurus, I have the webpage as below, COMPUTER COURSES BIOLOGY . . .. . Now I want to parse this webpage and build xml file like below COMPUTER COURSES CS 162

copy site contents into pdf file.

2007-10-11 Thread Siva Prasad
Hi Gurus, I need to copy the contents of the website and make a pdf file. Please check below for detailed explanation. Link1 Link2 If we click on the main link Link1 we get sub links Sublink1 Sublink2 So I have to click on Main link1 copy the content to pdf file

making .pm file as module

2007-10-11 Thread Siva Prasad
Hi Gurus, I have a written a package (and named it as Connection.pm). I am calling this module in a perl script and everything is working fine. Now How can I make the connection.pm as module so that I can install it as other modules that are available in CPAN. Thanks, PP

RE: fileOperations using perl

2007-10-04 Thread Siva Prasad
Hi Jeff, This works thanks a lot. Regards, PP. -Original Message- From: Jeff Pang [mailto:[EMAIL PROTECTED] Sent: Thursday, October 04, 2007 1:39 PM To: Siva Prasad Cc: beginners@perl.org Subject: Re: fileOperations using perl 2007/10/4, Siva Prasad <[EMAIL PROTECTED]>:

fileOperations using perl

2007-10-04 Thread Siva Prasad
Hi Gurus, I am trying to do (read/write/append) operations on file using oops in perl. But I am getting the following error Bareword "FileOperations" not allowed while "strict subs" in use at readwriteapp end.pl line 14. BEGIN not safe after errors--compilation aborted at readwr

RE: How to set environment variable

2007-09-27 Thread Siva Prasad
Hi Vikram, You are not able to access the env variable coz it is not set as you have wished. Do like the following. Set environment variable using export. export HAI=hai and print the from your perl script. The above command sets the environment variable in your system EVN variables and you c

qtp integration with perl

2007-09-17 Thread Siva Prasad
Hi Gurus, I have to develop a test harness that is used to do end-end testing of a application. The gui test harness is already in place. Which is developed in QTP TOOL? The back end automation should be developed perl and this should call the QTP scripts. Is there any way that I ca