RE: Save html page using perl

2009-05-22 Thread Sarsamkar, Paryushan
Thanks a lot :) Thanks, Paryushan -Original Message- From: John W. Krahn [mailto:jwkr...@shaw.ca] Sent: Friday, May 22, 2009 2:42 PM To: Perl Beginners Subject: Re: Save html page using perl Sarsamkar, Paryushan wrote: > Hi, Hello, > I have a URL, which displays different cont

Save html page using perl

2009-05-22 Thread Sarsamkar, Paryushan
Hi, I have a URL, which displays different content at different time. Now I want to save the page as html page to a particular location. How can I do that using perl? Thanks, Paryushan

perl2exe and DBI, DBD::Oracle modules

2009-03-10 Thread Sarsamkar, Paryushan
Hi All, I have one perl script which connects to oracle db and run some queries and get the job done. The initial code is as followed - --code--- #!/usr/bin/perl use strict; use warnings; use DBI; use DBD::Oracle; --code--- Then I have used perl2exe to generate a file so as to exe

RE: Accepting default value for user input

2009-03-02 Thread Sarsamkar, Paryushan
Ohh ... sorry ... after rethinking over it ... I think it converts the $normal to lower case before comparison Please ignore my mail earlier Thanks, Paryushan -Original Message- From: Sarsamkar, Paryushan [mailto:psars...@ptc.com] Sent: Monday, March 02, 2009 6:18 PM To: beginners

RE: Accepting default value for user input

2009-03-02 Thread Sarsamkar, Paryushan
...@gunnar.cc] Sent: Monday, March 02, 2009 5:44 PM To: beginners@perl.org Subject: Re: Accepting default value for user input Sarsamkar, Paryushan wrote: > I did not understand meaning of this line :( below. I only understood > that it will exit while loop if the input has either yes or no.

RE: Accepting default value for user input

2009-03-01 Thread Sarsamkar, Paryushan
anks, Paryushan -Original Message- From: Gunnar Hjalmarsson [mailto:nore...@gunnar.cc] Sent: Saturday, February 28, 2009 3:35 AM To: beginners@perl.org Subject: Re: Acepting default value for user input Chas. Owens wrote: > On Fri, Feb 27, 2009 at 11:07, Gunnar Hjalmarsson wrote: >

Acepting default value for user input

2009-02-27 Thread Sarsamkar, Paryushan
Hi All, I would like to accept some user inputs (using ), but it might be easier for a user if I can provide the default value, so that they just have to press ENTER. How can I do that? I've played around with but I cannot make it work exactly as I'd like. E.g. Do you want to do th

RE: Exception Handling in perl

2009-02-27 Thread Sarsamkar, Paryushan
Thanks... My bad... I did not realize to use print instead of just "die"ing :) Thanks, Paryushan -Original Message- From: David Shere [mailto:dsh...@steelerubber.com] Sent: Friday, February 27, 2009 7:31 PM To: Sarsamkar, Paryushan Cc: beginners@perl.org Subject: Re:

Exception Handling in perl

2009-02-27 Thread Sarsamkar, Paryushan
Hi All, Can we handle exceptions in PERL programs? For example - Here if it fails to copy then can I handle the exception and perform the next steps in my script? I tried removing "die" but then it does not complain and I wont be able to come to know if that is copied or not. (Is there anyt

How to handle pop up to enter authentication credentials

2009-02-24 Thread Sarsamkar, Paryushan
Hi All, While running my perl script (which run some commands in my application) I get a authentication popup which is java applet and I would like to handle that to enter user name and password so that rest of the command gets executed. Is there any way to do that? Thanks, Paryushan

Running perl scripts on remote machine

2009-02-11 Thread Sarsamkar, Paryushan
Hi All, I have a team of 4 people, and have some perl scripts written to make our life easy J Now if my team mates want to run the scripts, then they have to install perl on their machine (also the modules required for the scripts), then download perl scripts on their machine and then run those

RE: Reading file and changing contents which are not in one line

2009-02-08 Thread Sarsamkar, Paryushan
Thanks ... Thanks, Paryushan -Original Message- From: Rob Dixon [mailto:rob.di...@gmx.com] Sent: Friday, February 06, 2009 9:23 PM To: Perl Beginners Cc: Sarsamkar, Paryushan Subject: Re: Reading file and changing contents which are not in one line Sarsamkar, Paryushan wrote: > Hi

Reading file and changing contents which are not in one line

2009-02-05 Thread Sarsamkar, Paryushan
Hi All, I have one xconf file whose contents are as follows. I actually want to search for a property and change its value. Now what happens in my code is while reading the file, each line is stored in $_ so actually the line in my file is slit up in 2 or more lines, so I can not find the prope

How do I print something out in color on windows cmd?

2009-02-01 Thread Sarsamkar, Paryushan
I wanted to print some text on windows cmd in different colors, below is the code that I am using which works fine on unix but not on windows L #!/usr/bin/perl use strict; use warnings; use Term::ANSIColor; print color("red"), "Stop!\n", color("reset"); print color("green"), "Go!\n", c

Using / of unix and \ of windows for copying files

2009-01-18 Thread Sarsamkar, Paryushan
Hi All, I want to write a single Perl script to copy some files from one machine to another. Those can be windows or unix. Is that possible to have one script to do it? The script that I have written is as follows which do the job for windows to windows. The problem here is if user says tar

RE: How and from where to install perl 5.10 on unix (solaris) m/c?

2009-01-15 Thread Sarsamkar, Paryushan
...@gmail.com] Sent: Thursday, January 15, 2009 1:14 PM To: Perl beginners Subject: Re: How and from where to install perl 5.10 on unix (solaris) m/c? 2009/1/15 Sarsamkar, Paryushan : > Hi All, > > > > I would like to install Perl 5.10 on UNIX (Solaris) machine. There is > 5.0 and 5

How and from where to install perl 5.10 on unix (solaris) m/c?

2009-01-14 Thread Sarsamkar, Paryushan
Hi All, I would like to install Perl 5.10 on UNIX (Solaris) machine. There is 5.0 and 5.6 version of Perl on that machine, but it does not have DBI module that I want. Can anyone please help me in this regard? Thanks, Paryushan