Re: embedding a CGI script in a HTML page?

2008-12-15 Thread Sean Davis
On Sun, Dec 14, 2008 at 10:01 PM, Adam Jimerson vend...@charter.net wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Mike Williams wrote: On Sun, Dec 14, 2008 at 1:28 PM, Adam Jimerson vend...@charter.net wrote: On Dec 12, 12:47 pm, sdav...@mail.nih.gov (Sean Davis) wrote: Are you

Re: embedding a CGI script in a HTML page?

2008-12-15 Thread Mike Williams
On Mon, Dec 15, 2008 at 7:50 AM, Adam Jimerson vend...@charter.net wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Dermot Paikkos wrote: -Original Message- http://www.template-toolkit.org/ Mike Looking at the website and the documentation, still reading through it, I'm

RE: embedding a CGI script in a HTML page?

2008-12-15 Thread Dermot Paikkos
-Original Message- http://www.template-toolkit.org/ Mike Looking at the website and the documentation, still reading through it, I'm still not sure how to mix this with my CGI scripts to make them look like the rest of the site even though Konqueror supports the object

Re: embedding a CGI script in a HTML page?

2008-12-15 Thread Adam Jimerson
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Dermot Paikkos wrote: -Original Message- http://www.template-toolkit.org/ Mike Looking at the website and the documentation, still reading through it, I'm still not sure how to mix this with my CGI scripts to make them look like the

Re: embedding a CGI script in a HTML page?

2008-12-15 Thread Adam Jimerson
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Mike Williams wrote: On Sun, Dec 14, 2008 at 1:28 PM, Adam Jimerson vend...@charter.net wrote: On Dec 12, 12:47 pm, sdav...@mail.nih.gov (Sean Davis) wrote: Are you talking about this,

Re: embedding a CGI script in a HTML page?

2008-12-15 Thread David Dorward
Adam Jimerson wrote: I'm not trying to put perl code into the page, they way I have it now is I have the page generated by my CGI script inside another page that is using my CSS. I've tried to have my CGI script directly handle my CSS but it didn't work due to its limited support for CSS. So

Re: embedding a CGI script in a HTML page?

2008-12-15 Thread Sean Davis
On Sun, Dec 14, 2008 at 1:28 PM, Adam Jimerson vend...@charter.net wrote: On Dec 12, 12:47 pm, sdav...@mail.nih.gov (Sean Davis) wrote: You cannot put perl in a webpage the way that you do with PHP. However, there are a number of template engines written for and in perl that give you similar

Re: embedding a CGI script in a HTML page?

2008-12-15 Thread Greg Jetter
On Monday 15 December 2008 3:50:24 am Adam Jimerson wrote: Dermot Paikkos wrote: -Original Message- http://www.template-toolkit.org/ Mike Looking at the website and the documentation, still reading through it, I'm still not sure how to mix this with my CGI scripts to

Re: embedding a CGI script in a HTML page?

2008-12-15 Thread Adam Jimerson
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Mike Williams wrote: Your first question was: Is it possible to embed a CGI scrip into a HTML page? Now you say: I'm not trying to put perl code into the page You will get better answers if you start with clearer questions. I'm sorry

Re: embedding a CGI script in a HTML page?

2008-12-15 Thread Mike Williams
On Mon, Dec 15, 2008 at 1:48 PM, Adam Jimerson vend...@charter.net wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Mike Williams wrote: Your first question was: I'm sorry I guess I should have been more specific in my question, I never wanted to try and put perl code ino my HTML

Can I tie deep hash / Data::Dumper keys order ?

2008-12-15 Thread Panda-X
Hello, I have a hash tree, which sub- and sub-sub-sub ( and whatever ) items inside are all hashes. and the next step I dealing with this hash tree is to use Data::Dumper to dump it out. What I hope that the Data::Dumper result can keep the order as what I declared at very first. Is that anyway

Re: counter program by using closure

2008-12-15 Thread Richard
John W. Krahn wrote: Richard wrote: John W. Krahn wrote: You want something more like this: sub counter { my $count; my $clear = `clear`; my $counting = 'EOF'; %s | Counting...| |

Re: Can I tie deep hash / Data::Dumper keys order ?

2008-12-15 Thread Chas. Owens
On Mon, Dec 15, 2008 at 04:18, Panda-X exilepa...@gmail.com wrote: Hello, I have a hash tree, which sub- and sub-sub-sub ( and whatever ) items inside are all hashes. and the next step I dealing with this hash tree is to use Data::Dumper to dump it out. What I hope that the Data::Dumper

Re: function is executing or not

2008-12-15 Thread Jenda Krynicky
From: irfan.sa...@cognizant.com I have several subroutines/functions in Perl script. I just wanted to know how to check whether specific function/subroutine in my Perl script is really executing or not. And if it is executing then what is the exit status of that function. Have a look at

Re: piece of Perl code needed for tracking clicks

2008-12-15 Thread Jenda Krynicky
From: Mark Tarver dr.mtar...@ukonline.co.uk I have a very simple request. I want to know how many people click on a link. So what I want is a piece of Perl that writes this to a file. It can just be a tally mark like ! placed in the file. I cannot place anything on the target page

Re: Can I tie deep hash / Data::Dumper keys order ?

2008-12-15 Thread Jenda Krynicky
From: Panda-X exilepa...@gmail.com I have a hash tree, which sub- and sub-sub-sub ( and whatever ) items inside are all hashes. and the next step I dealing with this hash tree is to use Data::Dumper to dump it out. What I hope that the Data::Dumper result can keep the order as what I

Re: counter program by using closure

2008-12-15 Thread David Schmidt
You might want to look into fork http://perldoc.perl.org/functions/fork.html http://www.tutorialspoint.com/perl/perl_fork.htm On Mon, Dec 15, 2008 at 3:40 PM, Richard rich.j...@gmail.com wrote: John W. Krahn wrote: Richard wrote: John W. Krahn wrote: You want something more like this:

Re: Split not acting the way I want it to

2008-12-15 Thread Todd
Another fun way is to use `reverse' and `numeric/string conversion' as below. perl -le 'print 0+reverse int 0+reverse 1.2.3.45' 45 Best regards, Todd -- To unsubscribe, e-mail: beginners-unsubscr...@perl.org For additional commands, e-mail: beginners-h...@perl.org http://learn.perl.org/

Re: counter program by using closure

2008-12-15 Thread Richard
David Schmidt wrote: You might want to look into fork http://perldoc.perl.org/functions/fork.html http://www.tutorialspoint.com/perl/perl_fork.htm thank you.. I was experimenting w/ forks but I definitely need to understand forking better. thanks!! -- To unsubscribe, e-mail:

Sorting an array by a substring of its members

2008-12-15 Thread Christopher Yee Mon
I have an array of strings whose members consist of a number followed by a comma followed by a text string e.g. 1,fresh 2,testurl I want to sort by descending numerical order according to the number part so I made this sort subroutine sub by_counter_field { my($a, $b) = @_; $a =~

Re: Sorting an array by a substring of its members

2008-12-15 Thread Brian Tillman
I'm probably missing something, but what's wrong with?: sort {$b = $a} @array; On Dec 15, 2008, at 6:33 PM, Christopher Yee Mon christopher.yee...@gmail.com wrote: I have an array of strings whose members consist of a number followed by a comma followed by a text string e.g. 1,fresh

Re: Sorting an array by a substring of its members

2008-12-15 Thread John W. Krahn
Christopher Yee Mon wrote: I have an array of strings whose members consist of a number followed by a comma followed by a text string e.g. 1,fresh 2,testurl I want to sort by descending numerical order according to the number part so I made this sort subroutine sub by_counter_field {

Re: Sorting an array by a substring of its members

2008-12-15 Thread Christopher Yee Mon
well if the contents of the array are '1,fresh' and '2,testurl' I think that'll try to do a numerical sort on the pair of strings which wouldn't do anything. I have tried { $b = $a } and it didn't work. I want the sort to take the two strings and sort the strings but only sort by the numerical

Re: Sorting an array by a substring of its members

2008-12-15 Thread John W. Krahn
Brian Tillman wrote: I'm probably missing something, but what's wrong with?: sort {$b = $a} @array; Nothing, unless you have, as you really should, warnings enabled: $ perl -le' use warnings; my @array = ( 1,fresh, 2,testurl ); @array = sort { $b = $a } @array; print for @array; ' Argument

Re: Sorting an array by a substring of its members

2008-12-15 Thread Mr. Shawn H. Corey
On Mon, 2008-12-15 at 20:33 -0500, Christopher Yee Mon wrote: I have an array of strings whose members consist of a number followed by a comma followed by a text string e.g. 1,fresh 2,testurl I want to sort by descending numerical order according to the number part so I made this sort

Re: Sorting an array by a substring of its members

2008-12-15 Thread Christopher Yee Mon
hmm. i just tried it and it worked. I guess it's one of those situations. thanks Christopher John W. Krahn wrote: Christopher Yee Mon wrote: I have an array of strings whose members consist of a number followed by a comma followed by a text string e.g. 1,fresh 2,testurl I want to sort

Re: Sorting an array by a substring of its members

2008-12-15 Thread Rob Dixon
Christopher Yee Mon wrote: I have an array of strings whose members consist of a number followed by a comma followed by a text string e.g. 1,fresh 2,testurl I want to sort by descending numerical order according to the number part so I made this sort subroutine sub by_counter_field