Re: Scripting problem when launching links using mech.

2011-04-22 Thread Shlomi Fish
Hi Sean, On Saturday 23 Apr 2011 02:59:12 Sean Murphy wrote: > Hi All. > > I have a script that goes to google. Performs a search. Google does not allow you to do that using WWW-Mechanize and LWP-UserAgent (legally). You should use their web-search API and: http://search.cpan.org/dist/Google-

Re: Embedding Perl in HTML

2011-04-22 Thread David Christensen
On 04/22/2011 11:22 AM, sono...@fannullone.us wrote: On Apr 22, 2011, at 10:21 AM, Agnello George wrote: my $tt = Template->new( INCLUDE_PATH => "/var/template" ) || die "template process failed:$!"; $tt->process("form.tmpl",\%tag) || die $tt->error(); It appears that I'd have to expl

Re: Embedding Perl in HTML

2011-04-22 Thread David Christensen
On 04/22/2011 05:33 PM, sono...@fannullone.us wrote: > I've been working with an older Perl shopping cart script and the placeholders it uses are only accessible on pages that are placed under the cgi-bin directory, Is there documentation for this script on the WWW? If so, what is the URL?

Re: Embedding Perl in HTML

2011-04-22 Thread shawn wilson
On Fri, Apr 22, 2011 at 11:15 PM, David Christensen wrote: > On 04/22/2011 10:11 AM, sono...@fannullone.us wrote: > >>       I realize that this list may not be the best, or even most >> appropriate, place to ask this question, but I'm just so curious that I'm >> losing sleep over it! =;) >>      

Re: Embedding Perl in HTML

2011-04-22 Thread David Christensen
On 04/22/2011 10:11 AM, sono...@fannullone.us wrote: > I realize that this list may not be the best, or even most appropriate, place to ask this question, but I'm just so curious that I'm losing sleep over it! =;) > What is the best way to embed perl in an HTML file that is _not_ located unde

Re: Nature of this list

2011-04-22 Thread John Refior
On Tue, Apr 19, 2011 at 4:31 PM, Randal L. Schwartz wrote: > My biggest problem (I think) is that I'm clearly not my code. If > someone complains about my code, no matter how harshly, *I* don't take > it as an affront to *me*. I just learn from it, and get better. > > So, I project that same lev

Re: Help with indentation

2011-04-22 Thread Jim Gibson
At 10:38 PM -0230 4/22/11, Tiago Hori wrote: Hi List, I have been trying to follow one of code indentation guidelines from wikipedia, but I have some questions that I can find answers, I would appreciate if someone could help me or point me towards better references. So here is something I hav

Help with indentation

2011-04-22 Thread Tiago Hori
Hi List, I have been trying to follow one of code indentation guidelines from wikipedia, but I have some questions that I can find answers, I would appreciate if someone could help me or point me towards better references. So here is something I have been working on: ---

Re: Embedding Perl in HTML

2011-04-22 Thread sono-io
> I don't understand why you involve cgi-bin in your question, I was trying to be concise, and not take up too much space and time on something that may not have been appropriate for this list, but apparently I was more vague than concise. =:\ Sorry. I've been working with an o

Re: Embedding Perl in HTML

2011-04-22 Thread shawn wilson
On Fri, Apr 22, 2011 at 2:55 PM, Dr.Ruud wrote: > On 2011-04-22 19:11, sono...@fannullone.us wrote: > >> What is the best way to embed perl in an HTML file that is _not_ located >> under the cgi-bin directory? > > I don't understand why you involve cgi-bin in your question, but maybe you > are loo

Scripting problem when launching links using mech.

2011-04-22 Thread Sean Murphy
Hi All. I have a script that goes to google. Performs a search. I have a regular expression that gets all the links. The first link in the array I return is ment to open the next page. But it keeps failing with an error stating it is illegal page. When I try and use lwp, it says you cannot use

Re: Embedding Perl in HTML

2011-04-22 Thread Dr.Ruud
On 2011-04-22 19:11, sono...@fannullone.us wrote: What is the best way to embed perl in an HTML file that is _not_ located under the cgi-bin directory? I don't understand why you involve cgi-bin in your question, but maybe you are looking for PLP: http://search.cpan.org/~shiar/PLP/ -- Ruud

Re: Ten Years of Considerate Help

2011-04-22 Thread Shlomi Fish
Hi Casey and List, On Friday 22 Apr 2011 20:39:15 Casey West wrote: > Hi List, > > It's hard for me to accept this mailing list has been around for ten years! > http://www.nntp.perl.org/group/perl.beginners/2001/04/msg1.html > Great. > The catalyst for creating this list was my embarassing d

Re: Nature of this list

2011-04-22 Thread Ian
> (And I haven't read the rest of the thread, but I'm guessing that it > actually didn't work.) > And since that's false, the rest DOESN'T APPLY. IT DOESN'T APPLY TO YOU. > GET IT? YOU don't get it. That is the problem. You think you can insult people on the list and then just walk away. If yo

Re: Embedding Perl in HTML

2011-04-22 Thread Octavian Rasnita
From: I realize that this list may not be the best, or even most appropriate, place to ask this question, but I'm just so curious that I'm losing sleep over it! =;) What is the best way to embed perl in an HTML file that is _not_ located under the cgi-bin directory? I started learning PHP for

Re: Nature of this list

2011-04-22 Thread Randal L. Schwartz
> "Ian" == Ian writes: Randal> If you imply that you have a proven solution, you are lying to Ian> them. I ask Randal> that you don't lie in that way. Ian> http://www.nntp.perl.org/group/perl.beginners/2009/08/msg108718.html Ian> I did NOT lie, nor did I mislead the list in anyway by supply

Re: Nature of this list

2011-04-22 Thread Ian
Randal> If you imply that you have a proven solution, you are lying to them. I ask Randal> that you don't lie in that way. http://www.nntp.perl.org/group/perl.beginners/2009/08/msg108718.html Ian> I did NOT lie, nor did I mislead the list in anyway by supplying code that Ian> did not work. Ian> Ea

Re: Nature of this list

2011-04-22 Thread Randal L. Schwartz
> "Ian" == Ian writes: Ian> Sadly the great work Casey West and Kevin Meltzer did by starting a perl Ian> beginners list was tainted by individuals like Randal Schwartz. I was a Ian> direct target of this bullying Ian> Randal is arrogant and a bully and is the reason why I moved on from th

Re: Nature of this list

2011-04-22 Thread Ian
Sadly the great work Casey West and Kevin Meltzer did by starting a perl beginners list was tainted by individuals like Randal Schwartz. I was a direct target of this bullying Randal is arrogant and a bully and is the reason why I moved on from this list years ago. Ian

Re: Embedding Perl in HTML

2011-04-22 Thread sono-io
On Apr 22, 2011, at 11:20 AM, shawn wilson wrote: > says server side includes to me. > says template toolkit Thanks, Shawn. I'll give these a try, as well as the others you mentioned in your previous email. I hadn't heard of PerlDancer before, but it looks interesting. I ha

Re: Embedding Perl in HTML

2011-04-22 Thread sono-io
On Apr 22, 2011, at 10:21 AM, Agnello George wrote: > my $tt = Template->new( INCLUDE_PATH => "/var/template" ) || die > "template process failed:$!"; > $tt->process("form.tmpl",\%tag) || die $tt->error(); It appears that I'd have to explicitly name the template file in my script. If t

Re: Embedding Perl in HTML

2011-04-22 Thread shawn wilson
On Fri, Apr 22, 2011 at 2:10 PM, wrote: > On Apr 22, 2011, at 10:35 AM, shawn wilson wrote: > >> either you're phrasing things wrong or i'm misunderstanding things. > >        It's probably the former. =:\  I'm looking for a way to add snippets > of perl to my HTML pages, says server side

Re: Embedding Perl in HTML

2011-04-22 Thread sono-io
On Apr 22, 2011, at 10:35 AM, shawn wilson wrote: > either you're phrasing things wrong or i'm misunderstanding things. It's probably the former. =:\ I'm looking for a way to add snippets of perl to my HTML pages, something similar to what PHP offers . At this point, I don't need power

Ten Years of Considerate Help

2011-04-22 Thread Casey West
Hi List, It's hard for me to accept this mailing list has been around for ten years! http://www.nntp.perl.org/group/perl.beginners/2001/04/msg1.html The catalyst for creating this list was my embarassing display on the Perl 5 Porters mailing list on April 9, 2001. http://www.nntp.perl.org/gro

Re: Embedding Perl in HTML

2011-04-22 Thread shawn wilson
On Fri, Apr 22, 2011 at 1:21 PM, Agnello George wrote: > On Fri, Apr 22, 2011 at 10:41 PM,   wrote: >>        I realize that this list may not be the best, or even most >> appropriate, place to ask this question, but I'm just so curious that I'm >> losing sleep over it! =;) >> >>        What is

Re: need help designing a database table (or tables) to hold a hash ( %config) and ( %group)

2011-04-22 Thread shawn wilson
first, this isn't the proper forum. second... On Fri, Apr 22, 2011 at 12:47 PM, Agnello George wrote: > Hi All > > i am creating a script for deployment of websites and i need to create >  hash    %config ( which stores a lot of configurations setting for > each type of website )  ... i have been

Ten Years of Considerate Help

2011-04-22 Thread Casey West
Hi List, It's hard for me to accept this mailing list has been around for ten years! http://www.nntp.perl.org/group/perl.beginners/2001/04/msg1.html The catalyst for creating this list was my embarassing display on the Perl 5 Porters mailing list on April 9, 2001. http://www.nntp.perl.org/gr

Re: Embedding Perl in HTML

2011-04-22 Thread shawn wilson
either you're phrasing things wrong or i'm misunderstanding things. either way, i'll answer as i understand the questions. On Fri, Apr 22, 2011 at 1:11 PM, wrote: >        I realize that this list may not be the best, or even most > appropriate, place to ask this question, but I'm just so curio

Re: Embedding Perl in HTML

2011-04-22 Thread Agnello George
On Fri, Apr 22, 2011 at 10:41 PM, wrote: >        I realize that this list may not be the best, or even most > appropriate, place to ask this question, but I'm just so curious that I'm > losing sleep over it! =;) > >        What is the best way to embed perl in an HTML file that is _not_ > loc

sample problem with mimedefang

2011-04-22 Thread fakessh
hello list hello all "the" guru it's my first post I present to you a problem that I can not solve this alone deals mimedefang and perl I am currently facing this code in mimedefang $gi = Geo::IP->new(GEOIP_STANDARD); $country = $gi->country_code_by_name($Helo); action_add_hea

Embedding Perl in HTML

2011-04-22 Thread sono-io
I realize that this list may not be the best, or even most appropriate, place to ask this question, but I'm just so curious that I'm losing sleep over it! =;) What is the best way to embed perl in an HTML file that is _not_ located under the cgi-bin directory? I started learnin

need help designing a database table (or tables) to hold a hash ( %config) and ( %group)

2011-04-22 Thread Agnello George
Hi All i am creating a script for deployment of websites and i need to create hash%config ( which stores a lot of configurations setting for each type of website ) ... i have been manually eaditing this hash but now the hash has to now be generated from a a database ( mysql ) ... i have