Re: Regex for accepting text and HTML *entities*

2004-09-08 Thread Chris Welch
On Wed, 08 Sep 2004 00:43:44 +0200, Gunnar Hjalmarsson [EMAIL PROTECTED] wrote: Chris Welch wrote: I have a form and someone submits weird stuff that probably shouldn't be in there (but you never know.) This has to be writted to a DBM database/ filehandle. The weird stuff needs to be

RE: Month-Year Links....

2004-09-08 Thread Bob Showalter
Greg Schiedler wrote: Perl v5.6.1 Trying to easily create some variable based on the current month and links to the two previous months. The filename(s) are based on two digit months MM--Filename. I have the filename part working but I need some guidancd on creating the MM-. I

CGI parameter question

2004-09-08 Thread Sean Davis
I have the following html and CGI subroutine that handles it (uses HTML::Template). I would like to reload the page, switching to another page when the user changes the pull-down menu. This works fine. However, as you can see, there is another parameter, name, that I is included with

Exchange + any method in Perl for sending mails.

2004-09-08 Thread Anas Perwez
Hi, Any pointer to any Perl module which has got methods to send mail using MS outlook credentials. Is there any such method in Win32::OLE ?? Basically I want to write a basic script for sending mail (using exchange of course ) Thanks -- To unsubscribe, e-mail: [EMAIL PROTECTED] For

Re: CGI parameter question

2004-09-08 Thread William McKee
On Wed, Sep 08, 2004 at 09:18:17AM -0400, Sean Davis wrote: I would like to be able to have the page switch and any other visible parameters on the page be persistent and visible to the user. I would also like to be able to use the reset button for the form to reset the values. Hi

Re: CGI parameter question

2004-09-08 Thread William McKee
On Wed, Sep 08, 2004 at 11:06:58AM -0400, Sean Davis wrote: Thanks for the clarification. This is as I suspected and not hard. I guess I have to do reset on my own, then, as well? Not sure what you mean by do reset. I have had problems where smart browsers cached form values that made it

Re: CGI parameter question

2004-09-08 Thread Sean Davis
Another good point to know. I will try something like that. Sean On Sep 8, 2004, at 11:11 AM, William McKee wrote: On Wed, Sep 08, 2004 at 11:06:58AM -0400, Sean Davis wrote: Thanks for the clarification. This is as I suspected and not hard. I guess I have to do reset on my own, then, as well?

PHPerl

2004-09-08 Thread Octavian Rasnita
Hi all, Is there a way to embed Perl programs in html like PHP can do? I heard that Perl can be used in ASP files, but I am wondering if there is an Apache module for that task. It would be cool to exist such a thing... Thanks. Teddy -- To unsubscribe, e-mail: [EMAIL PROTECTED] For

Re: PHPerl

2004-09-08 Thread Sean Davis
http://perl.apache.org/embperl/ On Sep 8, 2004, at 11:56 AM, Octavian Rasnita wrote: Hi all, Is there a way to embed Perl programs in html like PHP can do? I heard that Perl can be used in ASP files, but I am wondering if there is an Apache module for that task. It would be cool to exist such a

RE: PHPerl

2004-09-08 Thread Hanson, Rob
There is embperl like was mentioned. Also Mason is very popular and well documented. Rob -Original Message- From: Octavian Rasnita [mailto:[EMAIL PROTECTED] Sent: Wednesday, September 08, 2004 11:57 AM To: [EMAIL PROTECTED] Subject: PHPerl Hi all, Is there a way to embed Perl

Re: PHPerl

2004-09-08 Thread Chris Devers
On Wed, 8 Sep 2004, Octavian Rasnita wrote: Is there a way to embed Perl programs in html like PHP can do? I heard that Perl can be used in ASP files, but I am wondering if there is an Apache module for that task. Basically, you're asking about templating systems for Perl. You have several to

Re: PHPerl

2004-09-08 Thread William McKee
On Wed, Sep 08, 2004 at 06:56:37PM +0300, Octavian Rasnita wrote: Is there a way to embed Perl programs in html like PHP can do? I heard that Perl can be used in ASP files, but I am wondering if there is an Apache module for that task. Check out Apache::ASP[1]. ASP is a technology, not a

Re: PHPerl

2004-09-08 Thread Chris Devers
On Wed, 8 Sep 2004, William McKee wrote: On Wed, Sep 08, 2004 at 06:56:37PM +0300, Octavian Rasnita wrote: Is there a way to embed Perl programs in html like PHP can do? I heard that Perl can be used in ASP files, but I am wondering if there is an Apache module for that task. Check out

Re: PHPerl

2004-09-08 Thread William McKee
On Wed, Sep 08, 2004 at 12:41:37PM -0400, Chris Devers wrote: Be aware though that Apache::ASP doesn't seem to be used nearly as widely as some of the other template frameworks. Good point, Chris. I certainly have never used it... While on the subject of ASP support, I believe that there used

Re: HINT: regex coach

2004-09-08 Thread Jose Alves de Castro
On Wed, 2004-09-08 at 10:17, Ing. Branislav Gerzo wrote: Hi, many of us need sometime fast help with regex. I recently found on the web really nice and easy program. Maybe someone of you already know it, for those, who don't it is REGEX COACH, download it from:

Re: CGI.pm : Handling Carriage Returns from textarea()

2004-09-08 Thread Robert Page IV
On Sep 6, 2004, at 8:52 PM, Sean Davis wrote: White space (including carriage returns) is ignored by HTML, generally. Try surrounding your text output by the pre tag (preformatted text). Does this do what you want? Do I do this within the textarea() form? This does not seem practical if

Re: CGI.pm : Handling Carriage Returns from textarea()

2004-09-08 Thread Robert Page IV
Gunnar: I have attached the CGI script: weekly.pl. The subroutine save_weekly() captures the 'executive summary' and 'details' values entered into the textarea via $summary = param('executive summary') and $details = param('details'). For Debug purposes, I print $summary and $detail. I may make

Re: Correction! CGI.pm : Handling Carriage Returns from textarea()

2004-09-08 Thread Robert Page IV
Gunnar: I have attached the CGI script: weekly.pl. The subroutine save_weekly() captures the 'executive summary' and 'details' values entered into the textarea via $summary = param('executive summary') and $details = param('details'). For Debug purposes, I print $summary and $detail. I may make

Re: CGI.pm : Handling Carriage Returns from textarea()

2004-09-08 Thread Robert Page IV
Sean: I added pre('executive summary') and pre('details') to the save_weekly() subroutine and this worked! Thank you very much. I am weary about the fact that HTML tags are permitted inside PRE. Apparently, , and must either not be present or handled somehow according to

Re: CGI.pm : Handling Carriage Returns from textarea()

2004-09-08 Thread Robert Page IV
I found a solution to PRE. It is XMP.. From http://www.frc.ri.cmu.edu/~mcm/tags.html, XMP ... /XMP Like PRE but HTML tags aren't interpreted (except for /XMP) Robert Page On Sep 8, 2004, at 10:21 PM, Robert Page IV wrote: Sean: I added pre('executive summary') and pre('details') to the

HINT: regex coach

2004-09-08 Thread Ing. Branislav Gerzo
Hi, many of us need sometime fast help with regex. I recently found on the web really nice and easy program. Maybe someone of you already know it, for those, who don't it is REGEX COACH, download it from: http://www.weitz.de/regex-coach/ Notes: The Regex Coach is a graphical application for

RE: create connection from html form into insert MySQL data script

2004-09-08 Thread Maxipoint Rep Office
-Original Message- From: Eduardo Vázquez Rodríguez [mailto:[EMAIL PROTECTED] Sent: Wednesday, September 08, 2004 2:02 AM To: Maxipoint Rep Office Cc: Charles K. Clarkson; [EMAIL PROTECTED] Subject: Re: create connection from html form into insert MySQL data script I think he is from

Using reference or throw valuables to sub ?

2004-09-08 Thread Bee
Say I have an array that carries at least 2mb data or 70mb max, but in my code, I want to throw this array to another sub ( within the same package )for further operations . so, which one I would better to use and what's the reason ? gosub [EMAIL PROTECTED] or gosub @array Is that if I

Re: Using reference or throw valuables to sub ?

2004-09-08 Thread Flemming Greve Skovengaard
Bee wrote: Say I have an array that carries at least 2mb data or 70mb max, but in my code, I want to throw this array to another sub ( within the same package )for further operations . so, which one I would better to use and what's the reason ? gosub [EMAIL PROTECTED] or gosub @array Is that

Re: Using reference or throw valuables to sub ?

2004-09-08 Thread Jenda Krynicky
From: Bee [EMAIL PROTECTED] Say I have an array that carries at least 2mb data or 70mb max, but in my code, I want to throw this array to another sub ( within the same package )for further operations . so, which one I would better to use and what's the reason ? gosub [EMAIL PROTECTED] or

regex on the command line

2004-09-08 Thread Errin Larsen
Hi Perl-Buddies, I'm wondering how to get a regex into my code at run-time. I mean in a command line like this: # my_perl_program foo(\w|and|or)+bar foobar.txt and in my code I want to be able to search the foobar.txt file with the regex found in the quotes. So if I assign the above to a

RE: regex on the command line

2004-09-08 Thread Bob Showalter
Errin Larsen wrote: Hi Perl-Buddies, I'm wondering how to get a regex into my code at run-time. I mean in a command line like this: # my_perl_program foo(\w|and|or)+bar foobar.txt and in my code I want to be able to search the foobar.txt file with the regex found in the quotes. So if

RE: Using reference or throw valuables to sub ?

2004-09-08 Thread Thomas Bätzler
Bee [EMAIL PROTECTED] asked: Is that if I throw the array to another sub also means the array would be copied and then pass to the target sub ? while reference is using the same data in system memory? Yes. Use references, unless you need to munge the array in the sub you're calling. HTH,

Re: Net::SNMP session creating problem : develop this as a pakage file

2004-09-08 Thread Geetha B
Hi Chris, Thanks for guiding about the right style of perl coding also for resolving snmp session problem. My system's snmpd was not enabled SNMP5.0 was installed which was giving the error as Unknown Error Creating session I installed SNMP3.6 , started snmpd, httpd in my Linux system now

RE: create connection from html form into insert MySQL data script

2004-09-08 Thread Charles K. Clarkson
Maxipoint Rep Office [EMAIL PROTECTED] wrote: : : Charles [mailto:[EMAIL PROTECTED] wrote: : : : : Maxipoint Rep Office [EMAIL PROTECTED] wrote: : : : : : : : my $turistobjekt = dadas; : : : my $adresa = sdasdasdfADRESA; : : : my $brojgrada = 1; : : : my $grad = 1; : : : my $manjemjesto = 1; :

Re: Using reference or throw valuables to sub ?

2004-09-08 Thread Bee
Thank you guys for clearing my concept, I know what to do now ! - Original Message - From: Jenda Krynicky [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Wednesday, September 08, 2004 8:45 PM Subject: Re: Using reference or throw valuables to sub ? From: Bee [EMAIL PROTECTED] Say I

Re: Net::SNMP session creating problem : develop this as a pakage file

2004-09-08 Thread Chris Devers
On Wed, 8 Sep 2004, Geetha B wrote: But I want to write this as a package/interface file . Please could you guide/direct me to writing a simple/sample perl package (sample.pm) then testing it. Sorry, I'm afraid I can't do that. This list exists to help people get past the obstacles of learning

Foo (Bar)

2004-09-08 Thread jason corbett
As a newbie, I have seen the statement foo (bar) mentioned in books and and even on this site. I haven't yet seen what this actually mean as I can assume that its just for examples. If I am wrong please explain in detail what this is about. Thanks, JC

Re: Foo (Bar)

2004-09-08 Thread Chris Devers
On Wed, 8 Sep 2004, jason corbett wrote: As a newbie, I have seen the statement foo(bar) mentioned in books and and even on this site. I haven't yet seen what this actually mean as I can assume that its just for examples. If I am wrong please explain in detail what this is about. Is your

Reading Multiple Lines

2004-09-08 Thread Eduardo Vázquez Rodríguez
Hello I am writing scripts that process big files which contains too many lines (aproximately 700 000 lines per file). My strategy until now to solve this problem is reading line per line, something like this while (FILE) { dosomethingwith($_); } Is there any way of working with multiple

RE: Foo (Bar)

2004-09-08 Thread Shaw, Matthew
Jason: Foo bar (or just foobar) are terms of varied origins simply meant to express 'this thing' as in 'in function foo what will the output be given argument bar'. (Compare also to: x (y)) There are many explanations for the origin of the term, and most are captured at one of the two following

Re: Foo (Bar)

2004-09-08 Thread Bee
in short , foo bar baz etc. just mean 'something', 'another something' whatever is discussing about.for more, check results in google.com for 'metasyntactic variables' HTH - Original Message - From: jason corbett [EMAIL PROTECTED] To: perl beginners [EMAIL PROTECTED] Sent:

Re: Foo (Bar)

2004-09-08 Thread Wiggins d Anconia
On Wed, 8 Sep 2004, jason corbett wrote: As a newbie, I have seen the statement foo(bar) mentioned in books and and even on this site. I haven't yet seen what this actually mean as I can assume that its just for examples. If I am wrong please explain in detail what this is about.

RE: Reading Multiple Lines

2004-09-08 Thread Shaw, Matthew
Eduardo: Depending on how many lines you need to work with at once and how disparate they are, you could create a buffer of the last N lines to work on, such as: while ( FILE ) { push @buffer, $_; shift @buffer if @buffer 10; # @buffer will now have the current

Foo (Bar)---I now see the light! (Or that which is made light of)

2004-09-08 Thread jason corbett
jason corbett [EMAIL PROTECTED] wrote: As a newbie, I have seen the statement foo (bar) mentioned in books and and even on this site. I haven't yet seen what this actually mean as I can assume that its just for examples. If I am wrong please explain in detail what this is about. Thanks,

Re: Foo (Bar)

2004-09-08 Thread M Senthil Kumar
Hi, On Wed, 8 Sep 2004, jason corbett wrote: As a newbie, I have seen the statement foo (bar) mentioned in books and and even on this site. I haven't yet seen what this actually mean as I can assume that its justfor examples. If I am wrong please explain in detail what this is about. I read

Re: Reading Multiple Lines

2004-09-08 Thread Jose Alves de Castro
On Wed, 2004-09-08 at 18:01, Eduardo Vázquez Rodríguez wrote: Hello I am writing scripts that process big files which contains too many lines (aproximately 700 000 lines per file). My strategy until now to solve this problem is reading line per line, something like this while (FILE) {

Re: Reading Multiple Lines

2004-09-08 Thread John W. Krahn
Eduardo Vázquez Rodríguez wrote: Hello Hello, I am writing scripts that process big files which contains too many lines (aproximately 700 000 lines per file). My strategy until now to solve this problem is reading line per line, something like this while (FILE) { dosomethingwith($_); } Is

RE: Foo (Bar)

2004-09-08 Thread Bob Showalter
jason corbett wrote: As a newbie, I have seen the statement foo (bar) mentioned in books and and even on this site. I haven't yet seen what this actually mean as I can assume that its just for examples. If I am wrong please explain in detail what this is about.

Re: Foo (Bar)

2004-09-08 Thread Chris Devers
On Wed, 8 Sep 2004, Wiggins d Anconia wrote: On Wed, 8 Sep 2004, jason corbett wrote: Just as algebra problems often use x and n for arbitrary variables, many Perl programmers use foo and bar for arbitrary variables. Not just Perl programmers:

RE: Foo (Bar)

2004-09-08 Thread Bob Showalter
Bob Showalter wrote: http://www.catb.org/~esr/jargon/html/M/metasyntactic-variable.html Oops, sorry. Didn't realize someone already posted that link. -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] http://learn.perl.org/

Need help with a Binding Variable excercise

2004-09-08 Thread jason corbett
I am trying to learn about binding variables. i am writing a simple script that with select a row of records and print them to screen. I am getting the error Can't call method bind_param on an undefined value at porqout.pl line 29. Here is the code below. #!/usr/bin/perl -w use strict; use

Re: Need help with a Binding Variable excercise

2004-09-08 Thread Jenda Krynicky
From: jason corbett [EMAIL PROTECTED] I am trying to learn about binding variables. i am writing a simple script that with select a row of records and print them to screen. I am getting the error Can't call method bind_param on an undefined value at porqout.pl line 29. Here is the code

Re: Need help with a Binding Variable excercise

2004-09-08 Thread jason corbett
Ooops!! Thanks!! Jenda Krynicky [EMAIL PROTECTED] wrote:From: jason corbett I am trying to learn about binding variables. i am writing a simple script that with select a row of records and print them to screen. I am getting the error Can't call method bind_param on an undefined value at

RE: Foo (Bar)

2004-09-08 Thread Weaver, Walt
-Original Message- From: M Senthil Kumar [mailto:[EMAIL PROTECTED] Sent: Wednesday, September 08, 2004 9:53 AM To: jason corbett Cc: perl beginners Subject: Re: Foo (Bar) Hi, On Wed, 8 Sep 2004, jason corbett wrote: As a newbie, I have seen the statement foo (bar)

Re: Foo (Bar)

2004-09-08 Thread Randal L. Schwartz
Wiggins == Wiggins d Anconia [EMAIL PROTECTED] writes: Wiggins Not just Perl programmers: Wiggins http://jargon.watson-net.com/jargon.asp?w=metasyntactic%20variable Wiggins http://jargon.watson-net.com/jargon.asp?w=foo It's because of the overuse of Foo and Bar that I chose Fred and Barney in

Re: Foo (Bar)---I now see the light! (Or that which is made light of)

2004-09-08 Thread Jose Alves de Castro
From dictionary.com : jargon Another common metasyntactic variable; see foo. Hackers do *not* generally use this to mean FUBAR in either the slang or jargon sense. According to a german correspondent, the term was coined during WW2 by allied troops who could not pronounce the german word

Re: HINT: regex coach

2004-09-08 Thread Jose Alves de Castro
On Wed, 2004-09-08 at 10:17, Ing. Branislav Gerzo wrote: Hi, many of us need sometime fast help with regex. I recently found on the web really nice and easy program. Maybe someone of you already know it, for those, who don't it is REGEX COACH, download it from:

Re: general question about variable and array

2004-09-08 Thread xaver biton
Xaver Biton wrote: Hi, what's wrong with my question? an answer of any kind would be nice. thks. Xaver Biton -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] http://learn.perl.org/ http://learn.perl.org/first-response

Re: general question about variable and array

2004-09-08 Thread Bob Showalter
xaver biton wrote: Hi, how do I insert the values of variables of a function in a array which ist out of the scope of the function, e.g I've a find function and I want insert the values results of the find function in an array: my @array; sub

Re: Foo (Bar)---I now see the light! (Or that which is made light of)

2004-09-08 Thread Chris Devers
On Wed, 8 Sep 2004, Jose Alves de Castro wrote: From dictionary.com : jargon Another common metasyntactic variable; see foo. Hackers do *not* generally use this to mean FUBAR in either the slang or jargon sense. According to a german correspondent, the term was coined during WW2 by allied troops