Hi,
Thanks Chad,
I have learnt a lot from this list, and just wanted to tell Hridyesh that if
the questions are proper chances of getting a valuable response are more.
Anyways, I'm unsubscribing from the list now, I better google for some time
to get my doubts cleared that receiving such emails!
Hi Hridayesh,
First of all, give a meaningful subject!
We can pass a value from one perl program to another, the simplest case
being, a.pl returns a value which is accepted by b.pl as a command line
argument! But, you need to describe exactly what u want to do! And what you
have tried till now.
that many ppl are discouraged to use the mailing
list and thus devoid of its use.
if u r uncomfortable by the way the ques is asked, u may very well choose to
stay silent
-Original Message-
From: Dhanashri Bhate [ mailto:[EMAIL PROTECTED]
mailto:[EMAIL PROTECTED]
Sent: Thursday
that many ppl are discouraged to use the mailing
list and thus devoid of its use.
if u r uncomfortable by the way the ques is asked, u may very well choose to
stay silent
-Original Message-
From: Dhanashri Bhate [ mailto:[EMAIL PROTECTED]
mailto:[EMAIL PROTECTED]
Sent: Thursday
only subject part in
your mailand then try to understand what is written in the mail
Dhanashri Bhate wrote:
Hi Hridayesh,
First of all, give a meaningful subject!
We can pass a value from one perl program to another, the simplest case
being, a.pl returns a value which is accepted by b.pl
Hi All,
I'm trying to automate a test case where from a site map page,
I need to get all the links and verify that clicking on the links is
successful, for each link.
Here's the code I've written and it works well, ( below is the relevant
part of the code ( I have used strict, warn))
Hi,
The page shows 3 forms, ( 2 for Search and one for language selection ).
You will first need to decide which form you want to use, and then issue
submit_form function with the fields you mentioned.
Something like below (untested! :) )
$browser-submit_form (
form_number = 1,
Hi,
my $month = (STDIN);
When you are taking the input from STDIN, the value of $month has \n in the
end,
Use chomp $month; before using the value,
Dhanashri
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
http://learn.perl.org/
Hello,
Search on CPAN shows these.. see what modules are relevant to you!
http://search.cpan.org/search?query=Qmailmode=all
Dhanashri
-Original Message-
From: Henry Chen [mailto:[EMAIL PROTECTED]
Sent: Tuesday, April 11, 2006 2:19 PM
To: beginners@perl.org
Subject: Qmail and PERL
How
Hello All,
Is there anything as 'static variables' in Perl?
I have a utilities.pl file which has functions commonly used in other perl
programs.
One of these function needs to create a temporary file in the current
directory, process it and then delete it.
Since this function can be called by
Thanks! This is what I was looking for!
-Original Message-
From: Thomas Bätzler [mailto:[EMAIL PROTECTED]
Sent: Tuesday, April 11, 2006 3:09 PM
To: beginners@perl.org
Cc: [EMAIL PROTECTED]
Subject: RE: Static variables in Perl?
Hi,
Dhanashri Bhate [EMAIL PROTECTED] asked:
[...]
I can
Hi Irfan,
Take a look at http://search.cpan.org/search?query=msgboxmode=all
Dhanashri
-Original Message-
From: Rob Coops [mailto:[EMAIL PROTECTED]
Sent: Tuesday, March 07, 2006 4:26 PM
To: Irfan J Sayed
Cc: beginners@perl.org
Subject: Re: msgbox in perl script
Hi Irfan,
Could you
Hi,
Give the sample data and then only one can tell what kind of regex you need.
If your data is simple, just fields delimited by you don't need to write
regex, you can just work with split. Read the data lines one by one, and
for each line use split to get the fields in an array.
Also remember
Here the problems are :
1) The new line character '\n' cannot be detected.
Well, I'm not getting exactly what your problem is, I'm afraid!
2)I am not able to print the unmatched data i.e in the above example '45'
doesn't match the regex in the while loop so this cannot be printed in the
Hi Anand,
You know where its going wrong then change it :)
Ok, I haven't gone into the regex etc. but I see these 2 major problems:
1. $line=IN; should be also there inside the while loop, to make the
program get the next line in the file, and hence eventually come out of the
loop when it
be identified by the
function .
the output is:
bookGenesis 45. eith 1 chron..
here the loop does'nt get repeated for 1 chron.
Please help in this regard
Dhanashri Bhate [EMAIL PROTECTED] wrote:
Hi Anand,
Yo! u know where its going wrong then change it :)
Ok, I haven't gone
-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
Sent: Thursday, December 22, 2005 1:41 AM
To: beginners@perl.org
Subject: RE: WWW::Mechanize, save images from a page
Ok perhaps it was towards flippant of me to ask about regard to domain
reputation. I'll own that.
Hello,
DB If I do as you have mentioned above, $mech-success is False.
DB I tried to get the complete the URL by concatenating the $imageref-base
and
DB $imageref-url. And then issue get on this complete url.
DB
DB my $imageurl = $imageref-url ;
DB my $imagebase =
. this is emailed to the list).
[EMAIL PROTECTED] (Dhanashri Bhate) writes:
I tried using the find_image function to get the reference of the image (
as
shown in the script below ).
But do not understand how I can save that image in a file.
I didn't know how to do it. But in looking at the doc
. this is emailed to the list).
[EMAIL PROTECTED] (Dhanashri Bhate) writes:
I tried using the find_image function to get the reference of the image (
as
shown in the script below ).
But do not understand how I can save that image in a file.
I didn't know how to do it. But in looking at the doc
To: beginners@perl.org
Subject: re: WWW::Mechanize, save images from a page
(I had tried to reply via nntp news which didn't work. I just now
subscribed to
the emailing list. this is emailed to the list).
[EMAIL PROTECTED] (Dhanashri Bhate) writes:
I tried using the find_image function to get
Well,
All I have to say is that my basic understanding of perl language and how to
download a link may be very little, and probably I do need a tutor as you
said!
But I'm not here to spoil any domain reputation. My query was a genuine one!
And I'm really surprised to get this reply :(
Anyway,
Hi All,
I am currently automating some UI tests with the help of WWW::Mechanize
module.
I need to save images on a webpage.
I tried using the find_image function to get the reference of the image ( as
shown in the script below ).
But do not understand how I can save that image in a file.
DB I am currently automating some UI tests with the help of WWW::Mechanize
DB module.
DB I need to save images on a webpage.
DB print Found the image, reference is : $imageref\n;
if you have URL in $imageref, what is problem with saving ?
$mech-get($imageref);
and save_contents() aka you'll
Dhanashri Bhate would like to recall the message, WWW::Mechanize, save
images from a page.
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
http://learn.perl.org/ http://learn.perl.org/first-response
DB I am currently automating some UI tests with the help of WWW::Mechanize
DB module.
DB I need to save images on a webpage.
DB print Found the image, reference is : $imageref\n;
if you have URL in $imageref, what is problem with saving ?
$mech-get($imageref);
and save_contents() aka you'll
Hi,
The 500 Cannot connect error usually comes if you're behind a firewall.
Try this, On command propmt run the commands:
set HTTP_proxy= yourproxy :port
set HTTP_proxy_user=username
set HTTP_proxy_pass=password
Or go to My Computer-properties-advanced-environment variables-user
variables and
Hello!
I am trying to write a perl script using WWW:::Mechanize, to download a
dictionary file from a server.
The file is a zip file. The program given below (error checks have been
purposely removed),
This program runs without any errors/warnings, and i can see the file
downloaded in the
to download a zip file?
Importance: High
On Nov 7, 2005, at 11:53, Dhanashri Bhate wrote:
I am trying to write a perl script using WWW:::Mechanize, to
download a
dictionary file from a server.
The file is a zip file. The program given below (error checks have
been
purposely removed
The difference is in the sizes of these files, the File downloaded
via the
script is a little bigger (about 20 KB) than the File downloaded
manually
with a browser (the file sizes are in MBs)
That comment was the key.
I bet a beer this is a newline issue.
THANKS A MILLION XAVIER!
Hello All,
The following code snippet is of a program I've written to download a
dictionary file from a server. The file to be downloaded is a zip..
Kindly see the code below, (error checkings etc are purposely removed from
the script, to keep the message small).
The program runs without
PM
To: Dhanashri Bhate
Cc: beginners@perl.org
Subject: Re: CPAN module for file upload/download
On Mon, 24 Oct 2005, Dhanashri Bhate wrote:
Could anyone please suggest what module is available on CPAN for this?
Take a look at WWW::Mechanize.
--
Chris Devers
--
To unsubscribe, e-mail: [EMAIL
Hello All!
We have a website, which allows me to upload or download dictionary file.
I am trying to write a perl program to automate the tests for this file
upload/download functionality.
Actually on CPAN I looked at the modules by name HTTP, some looked useful
( URI::HTTP/HTTPS,
- grover mitchell wrote:
- Hi,
-
- I am trying to use system to run a command on a remote machine.
-
- system ssh, $remote_host[0], sudo, -u, nobody,
- /usr/bin/remote_command, --arg1, $arg1, --arg2, $arg2;
-
- The problem I run into is that perl will ssh into the
- remote host and
-
Hello,
pls don't mis-understand.
There are perl gurus in this list as well as pther beginners like me , and they
will surely help, but first at least show that you have taken some effort to
learn Perl!
If you say that you want a new job and someone should help you with the
interview
Hi,
Well, i do have Active State Perl installed on my machine.
I am trying to install Apache's http perl framework test suite!
- -Original Message-
- From: Tim Johnson [mailto:[EMAIL PROTECTED]
- Sent: Monday, August 01, 2005 11:01 AM
- To: Anthony.leung; Dhanashri Bhate
- Cc: Perl
Yes! din't work though!
- -Original Message-
- From: Anthony.leung [mailto:[EMAIL PROTECTED]
- Sent: Sunday, July 31, 2005 5:30 PM
- To: Dhanashri Bhate
- Cc: Perl-Beginners (E-mail); Perl-Tips (E-mail)
- Subject: Re: Perl framework for windows-prob in makefile
-
-
- No expert but from
Hi!
I'm trying to get Perl framework installed on windows.
But the problem is in one of the makefiles...
don't know if this is the right place to ask this question, but could not find
any info anywhere else! :(
in a makefile the char \ means line continuation,
but if i have a macro in the
U can use module XML::Parser
- -Original Message-
- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
- Sent: Monday, July 25, 2005 2:46 PM
- To: beginners@perl.org
- Subject: xml::simple
-
-
-
- Hello,
-
- I've just made a simple script using xml::simple,
- and I am stuck on
- I am a bit confused in understanding regular
- expressions w.r.t the First Match and All Matches.
Case 1
Regular Expression: .
First match: Regular expressions are powerful!!!
All matches: Regular expressions
- -Original Message-
- From: Larsen, Errin M HMMA/Information Technology Department
-
- Hi Dhanashri,
-
Thanks for responding Errin, but the question was from Perl [EMAIL PROTECTED]
, not from me! :)
- tell us more about this 'APP'? Windows or UNIX (or other)? Is the - 'APP'
a
- -Original Message-
- From: Chris Devers [mailto:[EMAIL PROTECTED]
- Sent: Wednesday, July 13, 2005 5:44 AM
- To: Perl
- Cc: Perl Beginners List
- Subject: Re: Pass a value to Perl script
-
-
- On Tue, 12 Jul 2005, Perl wrote:
-
- I have this perl script which is taking value from
Hello John,
Thank you very much!
I made changes as per your inputs and it worked,
Thanks again,
Dhanashri
- -Original Message-
- From: Moon, John [mailto:[EMAIL PROTECTED]
- Sent: Friday, July 08, 2005 4:21 PM
- To: Dhanashri Bhate; beginners@perl.org
- Subject: RE: Query about ssh
Hello All,
I have a query about using ssh programmatically.
I tried using both system and exec, but didn't work. I mean, I wanted some
processing to happen on the remote machine to which i connect with ssh, which
is not happening.
I have copied the code below.
Kindly help or suggest any
44 matches
Mail list logo