Mechanize::How do I get the results back after Submitting a Form.

2007-12-08 Thread newBee
Hello All, I have been having trouble figuring out Mechanize module specially on getting back the results after submitting a form. I am trying to access ancestry dot com to get the results according to the the form that I submit. Fallowing code is written to fill the First Name input field and

Re: interface Perl script with an external website (Pass Values to a web)

2007-11-15 Thread newBee
I have the fallowing html code, and in this code segment i want to fill the field but the problem is instead of name the field as field nameblabla/ they use the input id=blabla/ tag. It will be a great help if someone could guide me on this... div id=treeform class=treeformWide form

learning WWW::Mechanize

2007-11-12 Thread newBee
Hi after going over the FAQ and the examples I decided to write a small script to understand the WWW::Mechanize module. Since Google has one field and two buttons I thought this would be a straight forward one. So I wrote the fallowing script. At the end of the script I thought the script will

Re: interface Perl script with an external website (Pass Values to a web)

2007-11-02 Thread newBee
On Nov 1, 7:39 am, [EMAIL PROTECTED] (Paul Lalli) wrote: On Nov 1, 1:32 am, [EMAIL PROTECTED] (newBee) wrote: I am in the process creating in some queries using a Perl script and want to run the out put of the perl script against another external software. As example lets say I have Perl

interface Perl script with an external website (Pass Values to a web)

2007-11-01 Thread newBee
I am in the process creating in some queries using a Perl script and want to run the out put of the perl script against another external software. As example lets say I have Perl script which takes a query string cleanup all wild characters and run that against the Google, Yahoo, Ask etc. How can

how to print dual key hash..

2007-10-26 Thread newBee
I have the fallowing code segment in my code. I want to print my %termWeightHash to see if i have correct data at the end of the this computation. Since this hash has two keys(I guess way to think that is hash within) I am not sure how to print it.. regular one key has i could print like this...

how to print dual key hash..

2007-10-26 Thread newBee
I have the fallowing code segment in my code. I want to print my foreach $document(@documents){ $valueOfTermD = 0; $powerOfTermD = 0; foreach $term(keys %termWeightHash){ if($termWeightHash{$term}{$document}){ $powerOfTermD =

Trying to figure the Regex Please Help

2007-10-24 Thread newBee
^([a-zA-Z0-9_\-\.]+)@([a-zA-Z0-9_\-\.]+)\.([a-zA-Z]{2,5})$ -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] http://learn.perl.org/

Trying to figureout regex please help

2007-10-24 Thread newBee
^([a-zA-Z0-9_\-\.]+)@([a-zA-Z0-9_\-\.]+)\.([a-zA-Z]{2,5})$ -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] http://learn.perl.org/

Can't figure the regex

2007-10-23 Thread newBee
^([a-zA-Z0-9_\-\.]+)@([a-zA-Z0-9_\-\.]+)\.([a-zA-Z]{2,5})$ Its look like an email address... is it..? it will be a great help if some one could give a breakdown on the this regex. thanks in advance... -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL

Allow user to input data until user press a certain key

2007-10-21 Thread newBee
Sorry my previous entry I didn't have much information, What i want to do is, allow the user to input word until the user enter a certain key to end the standard input. I am not sure how to do this in perl... may be i am not using regex correctly... or may be i am not handling the control

Allow user to input data until user press a certain key

2007-10-21 Thread newBee
Can someone tell me how to allow user to keep enter data until the user hit certain key such as /q/i i was thinking something like this print enter data\n; $userInput = STDIN; while(chomp($userInput) ne /q/i ) { #bla bla bla } Thanks in advance... -- To unsubscribe, e-mail: [EMAIL

Re: Allow user to input data until user press a certain key

2007-10-21 Thread newBee
On Oct 21, 4:08 am, [EMAIL PROTECTED] (Jeremy Kister) wrote: On 10/21/2007 1:05 AM, newBee wrote: $userInput = STDIN; while(chomp($userInput) ne /q/i) { @lineArray = split '\W+', $userInput; foreach $word(@lineArray){ if($DEBUG){print $word\n;} } } while(STDIN

Re: Tony or Anthony

2007-10-10 Thread newBee
a chance to look so I used something like this which did the job / \b(tony|anthony)\b/i .. I think i am going to see the performance difference between that and /tony/i || /anthony/i ... do we have a inbuilt time function in perl..? Thanks newBee -- To unsubscribe, e-mail: [EMAIL PROTECTED

Tony or Anthony

2007-10-09 Thread newBee
Hi Guys... I am new to regular expression and perl. I want right and regular expression to catch Tony or Anthony so I did it something like this.. [tony?anthony]. It will be great if some could tell me how to optimize this to good regular expression. I am writing this in perl. Thanks in advance.