Dear friend!

2009-10-26 Thread Pat Rice
Dear friend,I am willing to give you a big surprise. I found a website:  www.ollsu.com last week. They mainly sell phones , laptops, tvs ,digital cameras and motorbikes. I ordered a tv . now I have got the product after 5 days. Its quality is very good.By the way, they only sell new and original pr

form generator Perl... (The Holy Grail)

2008-10-22 Thread Pat Rice
Hi all I'm wondering whats the best tool (preferably) open source, To use to generate HTML forms in Perl that I can link in to a database after, with optimistically code that is generated in a readable way. The holy grail would be: - type out the form names for each value. - press the button or r

physical document Managment

2008-10-20 Thread Pat Rice
Hi all I'm wondering if anyone had come accross a system in perl that can handle physical documents that are scanned in to a system and OCR them and put them into a database. I know its a bit much to ask. but I don't want to reinvent the wheel, if you know what I mean. implementing this in perl wo

Apache not running perl

2008-10-08 Thread Pat Rice
HI all getting the following when i try and run this in Apache Error GETing http://commit.website.com/commit_emea.html: Can't connect to commit.vmware.com:80 (Bad hostname 'commit.website.com') at /var/www/cgi-bin/commitCountries2.pl line 21 Troubleshooing done line 21 is just $agent->get('http:

Sending SMS

2008-09-22 Thread Pat Rice
Hi all I'm just wondering whats the best way to send an SMS thought perl ? Has any one experience of doing such a task ? I'm looking at CPAN and finding: SMS-Send Net-SMS any recommendations ? also and ideas about connecting up a gsm phone and making it talk with perl, for sending SMS Thanks in

Re: Question on Perl

2008-08-27 Thread Pat Rice
Hi ya I put mine in if statements, then you can turn them of and on globally if(debug == 1){ print "$bla" } hope that helps Pat On Wed, Aug 27, 2008 at 3:47 PM, Jeff Pang <[EMAIL PROTECTED]> wrote: > >> Message du 27/08/08 16:31 >> De : [EMAIL PROTECTED] >> A : beginners@perl.org >> Copie à : >>

Outlook with perl

2008-08-18 Thread Pat Rice
Hi all Just wondering is there any way we can talk to outlook using perl, as in to look at a users inbox and then do an action on that ? for example send a mail from a users mail. And no before you ask, I'm not trying to write another spamming application :) Pat -- To unsubscribe, e-mail: [EMAIL

counting number of multiple occurances in a row

2008-08-15 Thread Pat Rice
hi I would like know how to count multiple occurances in a sql query. eg. row would be: tom, tom , tom, john,pat,pat and this would produce tom 3 john 1 pat 2 I've tried this but I am only gettting 1 back select count(*) from commitCurrent where company =(select distinct company from commitCur

parsing a tree like structure

2008-06-26 Thread Pat Rice
Hi all I'm wondering if there is a nice way to parse this data, as in is there any module that could handle this type of data, as in the was it is presented? so that I can repeat is itn a tree like structure in HTML ? so I can pic out the tree like structure and replicate it in some way so that I

Re: reading in a file, line by line by picking certian lines

2008-06-22 Thread Pat Rice
Hi all Thanks for all the help with this, going to have some fun implementing it :) Thanks Pat -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] http://learn.perl.org/

reading in a file, line by line by picking certian lines

2008-06-20 Thread Pat Rice
Hi all I am looking at a way of reading a line doing a regex to find the specific line then pick out the line, sudo code would be some thing like the following: read in line check regex if regex is correct {jump 10 lines print the output } any ideas on jumping the 10 lines, how do I ign

regex on the fly on LWP

2008-06-13 Thread Pat Rice
hi all I want to know if there is a way of puilling out line by line, a www::Mechanize or LWP so at the moment I'm doing: 1 #!/usr/bin/perl 2 3 # Include the WWW::Mechanize module 4 use WWW::Mechanize; 5 6 7 HTTP::Response; 8 15 16 $url = "

Re: Parsing HTML file

2008-06-04 Thread Pat Rice
Hi try html trees on cpan there is also html tables, but I haven't used it. Trees can take a while to understand but it seems to be pretty good. Pat On Mon, Jun 2, 2008 at 12:10 PM, Jeff Peng <[EMAIL PROTECTED]> wrote: > On Mon, Jun 2, 2008 at 5:56 PM, Purohit, Bhargav > <[EMAIL PROTECTED]> wro

Re: cgi ordering a table with sql

2008-05-30 Thread Pat Rice
Thanks Gunnar,Jenda And everyone else that responded, its was great to get it working. Its one of thoese ones were you spend time staring at the code saying that it should work, but it dosent. Thanks :) Pat -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROT

Re: cgi ordering a table with sql

2008-05-29 Thread Pat Rice
#$sortby = "Account"; 43$sth->execute($sortby); 44 45 my $data = $sth->fetchall_arrayref; 46 47 48$dbh->disconnect; 49$data; 50} On Mon, May 19, 2008 at 8:50 PM, Gunnar Hjalmarsson <

cgi ordering a table with sql

2008-05-19 Thread Pat Rice
hi all I'm trying to achieve the following a table that when I click on the top link I will chance the ORDER BY value in the table. eg |fruit | boxes | |orange | 10| |apples | 5 | so if fruit was a link and I clicked it I would change my select statement to order by fruit, if I clicked o

database Cgi query's

2008-05-12 Thread Pat Rice
lHi All ooking to done some work whit CGI forms in perl, primarily connecting to a database and inserting, deleting and showing values in a database, While looking not to reinvent the wheel, whats out there that I can easily use that would do this for me ? looking at the CGI module... but I think

html trees Can't call method "as_text" on unblessed reference

2008-05-01 Thread Pat Rice
Hi all getting the following error with html trees, I think its due to not using a global variable. but when I try an "our" variable for the tree object I still hit the same issue, i htnk my problem is getting the orignal object. Any ideas Can't call method "as_text" on unblessed referenc

Troubleshooting SQL server

2008-04-14 Thread Pat Rice
Hi all I'm looking for some good ideas on trouble shooting SQL. as in I have wrote thsi code, but I wondering if there is any way we can a debug level, so that it would tell me if the query failed. eg. my $sql = q/SELECT Account,Last_Name,First_Name,Email_Address FROM prospects WHERE Email_Addre

Net::SSH::Perl log in

2008-03-14 Thread Pat Rice
Hi all I'm trying to do the following as a test to get perl to log in to an ssh server. Before anyone asks the password has been changed, but was correct for log in. Code below Thanks in advance. Pat 1 #!/usr/bin/perl 2 use Net::SSH::Perl; 3 4 $scon = Net::SSH::Perl->new

lwp & post

2008-02-22 Thread Pat Rice
Hi all I am atempting to get a log in with post, I have loooked in the from and it uses post, hence using the post to log in, Where I'm confused is when i print the $response->content I get the orignal page back, but what I want to do is log in. Idealy I want to get through this log in page and get

ordering data in a table!

2008-02-20 Thread Pat Rice
Hi all I'm using htm templates to display this data, but what I would like to be able to sort the infromation, by clicking on the title of the header on the coloum. eg to sort by CPU. is there any easy!! way of doing this ? as in a inbult way of doing this sorting by clicking on the link. eg Mas

Re: A way to comment out a block of code

2008-01-16 Thread Pat Rice
I always use an if debug option like below, its so handy, so that you can put all your debug output here. you can do different levels here too to make things really funky :) Pat On Jan 16, 2008 7:17 AM, Jeremy Kister <[EMAIL PROTECTED]> wrote: > On 1/15/2008 3:09 PM, S.A. Birl wrote: > > Sometime

how do do work on a whole bunch of arrays in parrel

2007-11-05 Thread Pat Rice
hi all I would like to know how to do the following I have a whole bunch of arrays eg var1 var2 var3 var4 var5 var6 var7 and I need each of them to be processed, in the one foreach loop, eg foreach var(@var1, @var2, @var3, @var4, @var5, @var6){ Do somthing here on each var } is this pass

cgi Pain!!!

2007-10-05 Thread Pat Rice
hi all have the following problem I cannot for the life of me get the following working: 28 testing the header 29 print header; 30 print start_html("Thank You"); 31 print h2("Thank You"); 32 33 my $i; 34 foreach $i (@vmsupportTest) 35 { 36print

running cgi off the command line works, but running on the browser fails with a 500 error

2007-09-27 Thread Pat Rice
Hi all Error 500 error is the follwoing [Thu Sep 27 16:26:56 2007] [error] [client 10.16.153.99] Prototype mismatch: sub main::head: none vs ($) at /var/www/cgi-bin/srHandler4.cgi line 7 [Thu Sep 27 16:26:57 2007] [error] [client 10.16.153.99] [Thu Sep 27 16:26:57 2007] srHandler4.cgi: Error 500 o

forms LWP

2007-09-21 Thread Pat Rice
Hi all I'm looking for direction here again. Basically what I want to do is the follwoing, 1. create a web from to take in a number 2. then use this number to create LWP download of a web page 3. I regex out the bits that I want and then place the regexed out info, into a drop down box so that

Re: adding data to a file before it gets regexed

2007-09-14 Thread Pat Rice
Thanks all for the help I'm havng a go wrighting it at the moment Pat On 9/13/07, Moon, John <[EMAIL PROTECTED]> wrote: > > From: John W. Krahn [mailto:[EMAIL PROTECTED] > Sent: Thursday, September 13, 2007 2:01 PM > To: Perl beginners > Subject: Re: adding data to a file before it gets regexed >

Re: adding data to a file before it gets regexed

2007-09-13 Thread Pat Rice
On 9/13/07, Andrew Curry <[EMAIL PROTECTED]> wrote: > > But whats your end goal? What is it going to do at the end? > > -Original Message- > From: Pat Rice [mailto:[EMAIL PROTECTED] > Sent: 13 September 2007 14:16 > To: Chas Owens > Cc: beginners@perl.org &

Re: adding data to a file before it gets regexed

2007-09-13 Thread Pat Rice
s Owens <[EMAIL PROTECTED]> wrote: > > On 9/13/07, Pat Rice <[EMAIL PROTECTED]> wrote: > > hi all > > I have the following problem. > > I'm trying to read the a file in line by line. using a for each > statment, > > but I want to modify each line as it com

adding data to a file before it gets regexed

2007-09-13 Thread Pat Rice
hi all I have the following problem. I'm trying to read the a file in line by line. using a for each statment, but I want to modify each line as it come in so that I can add the file name that I am looking in to the line. eg. looing in file1.txt we have the line "hello world" I want to do the fo

html template and tables

2007-08-30 Thread Pat Rice
Hi all I'm trying to do the following: Print out the table from an array using HTML teplates. I'm not sure of the sintax of how to get this table to display, I dont like posting code here, but I'm kinda stuck and I dont know if I am going in the right direction to do what I want to do. my main pr

problem with regex in a while loop.

2007-08-24 Thread Pat Rice
Hi all, I'm trying to get the follwoing to work: what I am aiming to do is the following: 1. Read a file 2. Regex the df file and look for the line which contains "Used". Problem: - part 1 reads the file, confirmed, because I output this to the screen - Part 2 Is where the problem is, as I connot