Re: LWP: How to make sure login was successful

2006-01-09 Thread Peter Scott
On Mon, 09 Jan 2006 23:54:29 +0530, Ankur Gupta wrote: > I am writing a LWP program. > I need to login to 10 different sites and extract information out of them.. > Each site has its own username/password. > > I am writing a common module which will do the job of logging in. > I am doing all sorts

Re: How to run a batch file

2006-01-09 Thread swayam panda
HI, for $i (keys %hash) where is %hash ? or it's %sites Swayam - Original Message - From: "The Roopak Times" <[EMAIL PROTECTED]> To: Sent: Tuesday, January 10, 2006 12:54 AM Subject: How to run a batch file Hi All how can i run a batch file by a perl script. i'm also

Re: LWP: How to make sure login was successful

2006-01-09 Thread JupiterHost.Net
I also need to make sure the login was successful. Check the response code, if it asks you to login again then you did not login properly. -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

RE: regex...

2006-01-09 Thread Timothy Johnson
When you use the pipe character as your delimiter for the m// operator, you're screwing up the use of the pipe character as the "or" operator in your regex. You'll either have to escape the pipe character (E.g. m|(A\|B)|) or use a different delimiter. -Original Message- From: Tom Alliso

Re: regex...

2006-01-09 Thread Tom Allison
Tom Allison wrote: I'm trying to capture the base URL and "everything after that" into two arguements for all web page elements related to href and src properties in tags. EG: http://www.google.com/";> would return 'www.google.com' and '/' So I tried this: $string =~ m|(?:href|src)\W+(?:http

Re: How to run a batch file

2006-01-09 Thread Tom Allison
The Roopak Times wrote: Hi All how can i run a batch file by a perl script. i'm also getting a compilation error in following program. i have output of ping commnad in a text file and i want to replace the IP Address with the hostname. error is:- Global symbol "%sites " requires explicit packag

regex...

2006-01-09 Thread Tom Allison
I'm trying to capture the base URL and "everything after that" into two arguements for all web page elements related to href and src properties in tags. EG: http://www.google.com/";> would return 'www.google.com' and '/' So I tried this: $string =~ m|(?:href|src)\W+(?:http://)?([^/]*)(/[^'"]*)

Re: How to add Text::CVS Module

2006-01-09 Thread Chris Devers
On Mon, 9 Jan 2006, Gerald Wheeler wrote: > I do not have access to a "C" compiler, etc.. > I am running perl 5.6.1 on Solaris (Unix) > > How can I import Text::CVS into my existing perl 5.6.1 installation.. > > A step by step example would be great... probably to much to ask > for.. I assum

How to add Text::CVS Module

2006-01-09 Thread Gerald Wheeler
I do not have access to a "C" compiler, etc.. I am running perl 5.6.1 on Solaris (Unix) How can I import Text::CVS into my existing perl 5.6.1 installation.. A step by step example would be great... probably to much to ask for.. Thanks Jerry -- To unsubscribe, e-mail: [EMAIL PROTECTED] For

How to run a batch file

2006-01-09 Thread The Roopak Times
Hi All how can i run a batch file by a perl script. i'm also getting a compilation error in following program. i have output of ping commnad in a text file and i want to replace the IP Address with the hostname. error is:- Global symbol "%sites " requires explicit package name at network.pl line

IPTables::IPv4 - delete_entry problems

2006-01-09 Thread jdurick
I am having a slight problem when I delete a rule that has been appended to the iptables ruleset via IPTables::IPv4 (kernel: 2.6.14-gentoo-r2)- I think the IPTables::IPv4 perl module has been written for 2.4, not sure if that is an issue or not . Other simple append_entry and delete_entrys work

Re: ^M

2006-01-09 Thread Dr.Ruud
[EMAIL PROTECTED]: > I have to process some files with more than 10 lines. At the end > of each line is the sign ^M. How could I remove it. DOS2UNIX(1) NAME dos2unix - convert ASCII files from DOS's CR/LF to UNIX's LF SYNOPSIS dos2unix [-p] [file ...] DESCRIPTION When called

LWP: How to make sure login was successful

2006-01-09 Thread Ankur Gupta
I am writing a LWP program. I need to login to 10 different sites and extract information out of them.. Each site has its own username/password. I am writing a common module which will do the job of logging in. I am doing all sorts of error catching such as whether internet is up or not, the url i

RE: One Question

2006-01-09 Thread Larsen, Errin M HMMA/IT
> -Original Message- >From: Gomez, Juan [mailto:[EMAIL PROTECTED] >Sent: Monday, January 09, 2006 7:48 AM >To: beginners@perl.org >Subject: One Question > > >Good Morning all!!! > Good Morning, Juan, > >I have working on several shell scripts using KSH >but i like to know is there can b

One Question

2006-01-09 Thread Gomez, Juan
Good Morning all!!!     I have working on several shell scripts using KSH but i like to know is there can be a way to use Perl/tk to make them run like a inside of a menu?     thanks guys         Armando Gomez Guajardo Process EngineerWork Ph   956 547 6438 Beeper    956 768 4070  

RE: ^M

2006-01-09 Thread Manoj Thakkar, Noida
open in VIM nd write %s/^m// it will remove all the ^m in vim Cheers Manoj From: swayam panda [mailto:[EMAIL PROTECTED] Sent: Mon 1/9/2006 5:22 PM To: [EMAIL PROTECTED]; beginners@perl.org Subject: Re: ^M Hi. If u will open the file in VIM u

Re: ^M

2006-01-09 Thread swayam panda
Hi. If u will open the file in VIM u will get the new line character as ^m. Correct me if i am wrong - Original Message - From: <[EMAIL PROTECTED]> To: Sent: Monday, January 09, 2006 3:50 PM Subject: ^M Hallo, I have to process some files with more than 10 lines. At th

Re: ^M

2006-01-09 Thread Xavier Noria
On Jan 9, 2006, at 11:20, [EMAIL PROTECTED] wrote: I have to process some files with more than 10 lines. At the end of each line is the sign ^M. How could I remove it. If that's a regular text file and you are in a Unix machine run this: perl -pi.bak -e 's/\015//' filename It cleans

Re: ^M

2006-01-09 Thread Muthukumar
>> I have to process some files with more than 10 lines. At the end of each line is the sign ^M. How could I remove it. $ perl -i .bak -npe 's/\r\n/\n/g' -- Muthukumar | Mail: [EMAIL PROTECTED] | www: http://geocities.com/kmuthu_gct/

^M

2006-01-09 Thread Matthias . Haemmerle
Hallo, I have to process some files with more than 10 lines. At the end of each line is the sign ^M. How could I remove it. Mit freundlichen Grüssen /with best regards Matthias Hämmerle T-Systems Business Services GmbH TCO IT CC IT BP-Competence Center OSS Development Reporting

RE: Reading contents of file

2006-01-09 Thread Dhanashri Bhate
>>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 th

RE: Reading contents of file

2006-01-09 Thread anand kumar
Hi I have tried the way u explained, Thanks for that But I have few new problems . The code after the modification is as below: open IN, "r1.dat"; open OUT, ">r1.txt"; $/=undef; $line=; while($line=~m/([123]?[\.\s]*[a-z\\=\.]+)/cig) { $book=$1; print $book,"\n"; $t_book=$book; $t_