Creating a table with HTML:Template

2006-02-22 Thread Christian Stalp
Hello out there, i try to create a table with HTML:Template for this I fill a array with hashes: while ( $zeile = $result-fetchrow_arrayref ) { $uebergabe{ name = $row-[0], link = $row-[1] }; push ( @suchprofile, \%uebergabe ); } and give it to the template-object: $tmpl-param ( vorname

Type globs of subroutines?

2006-02-22 Thread Angerstein
Short Question: Is type globbing of subroutines possible or not? for something like supersub(\smallsub); -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] http://learn.perl.org/ http://learn.perl.org/first-response

Re: Type globs of subroutines?

2006-02-22 Thread Hans Meier (John Doe)
Angerstein am Mittwoch, 22. Februar 2006 11.05: Short Question: Is type globbing of subroutines possible or not? yes, perl -le 'use warnings; use strict; \ sub sub1{1}; \ *sub2=\sub1; \ warn sub2(); \ ' for something like supersub(\smallsub); This (passing a subroutine reference as argument

Re: Type globs of subroutines?

2006-02-22 Thread John W. Krahn
Angerstein wrote: Short Question: Is type globbing of subroutines possible or not? It is possible but using references is the preferred method. John -- use Perl; program fulfillment -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Help: Math::Pari won't install

2006-02-22 Thread RICHARD FERNANDEZ
I'm trying to build Math::Pari along the way to building Net::SFTP, but the make fails with the following error: pariinl.h: In function `mulssmod': pariinl.h:887: error: asm-specifier for variable `hiremainder' conflicts with asm clobber list pariinl.h:887: confused by earlier errors, bailing out

Re: Repeated Regex over a line with double quotes

2006-02-22 Thread Jay Savage
One day, I'll start remembering this ist doesn't set reply-to... On 2/22/06, Jay Savage [EMAIL PROTECTED] wrote: On 2/21/06, Wagner, David --- Senior Programmer Analyst --- WGO [EMAIL PROTECTED] wrote: Timothy Johnson wrote: I don't have time right now to run it, but I notice that you left

RE: bug or am I not understanding?

2006-02-22 Thread Luke, David
Hi Bruce, Hex 0D 0A (Carriage Return Line Feed pair) is commonly used in Windows to signify the end of a line of text. \n is supposed to generate an end of line appropriate for the machine on which Perl is run. On Windows, 0D 0A is ideal, but 0A often works the same. Hex 0A is also the standard

printing the contents of the last eval

2006-02-22 Thread Ryan Gies
Inpecting $@ and caller() after an eval will yield: Error message (eval 6750):428 How does one view line 428. Are there formal hooks with which (immediately following an eval) one can: my $eval_number = ???; my $eval_contents = ???( $eval_number ); The debugger seems to do a

simple references question

2006-02-22 Thread Bryan R Harris
I'm trying to pass an array to a subroutine. I'd like the subroutine to create @f from the [EMAIL PROTECTED] that I send it, but I can't seem to figure out the syntax. Is there a way to replace my ???f??? with something to make it work? ** @a = (1,2,3,4);

RE: simple references question

2006-02-22 Thread Wagner, David --- Senior Programmer Analyst --- WGO
Bryan R Harris wrote: I'm trying to pass an array to a subroutine. I'd like the subroutine to create @f from the [EMAIL PROTECTED] that I send it, but I can't seem to figure out the syntax. Is there a way to replace my ???f??? with something to make it work?

RE: Repeated Regex over a line with double quotes

2006-02-22 Thread Wagner, David --- Senior Programmer Analyst --- WGO
Jay Savage wrote: One day, I'll start remembering this ist doesn't set reply-to... On 2/22/06, Jay Savage [EMAIL PROTECTED] wrote: On 2/21/06, Wagner, David --- Senior Programmer Analyst --- WGO [EMAIL PROTECTED] wrote: Timothy Johnson wrote: I don't have time right now to run it, but I

A problem with apache installation http://localhost issue

2006-02-22 Thread zhou jian
Hello perl fellows: I encountered a problem when I was installing a perl module. The httpd server related module was hanging overnight when it was trying to test http://localhost:X... Today, I tested with my httpd server installation. I found that I can view the webpage after I started httpd

RE: simple references question

2006-02-22 Thread Timothy Johnson
Here's one way, but if you create @f like you want to, then you will end up working with a copy of your array instead of the original array passed. That may or may not be what you want to do. If you want to alter the contents of the original array, you will have to use $f and dereference it.

Re: A problem with apache installation http://localhost issue

2006-02-22 Thread Hans Meier (John Doe)
zhou jian am Mittwoch, 22. Februar 2006 22.40: Hello perl fellows: Hi Paul This is the wrong list for this question (see your subject) but: I encountered a problem when I was installing a perl module. The httpd server related module was hanging overnight when it was trying to test

whitespace beginning and end

2006-02-22 Thread DBSMITH
Perlers I need to remove any line that begins with \d+ yet end with \s* Here is the data _BEGIN_DATA_ 0 2005/09/23 17:25 221 100% -il-o-b---U- sf F02043 1 2005/06/03 04:11 524 100% -il-o-b---U- sf F02017 2 2005/06/10 00:12 592 100% -il-o-b---U- sf F02018 3

RE: whitespace beginning and end

2006-02-22 Thread Timothy Johnson
Do you mean like unless($_ =~ /^\s*\d+\s*$/){ print $_; } ? -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Wednesday, February 22, 2006 2:36 PM To: beginners@perl.org Subject: whitespace beginning and end Perlers I

RE: whitespace beginning and end

2006-02-22 Thread Wagner, David --- Senior Programmer Analyst --- WGO
[EMAIL PROTECTED] wrote: Perlers I need to remove any line that begins with \d+ yet end with \s* Here is the data _BEGIN_DATA_ 0 2005/09/23 17:25 221 100% -il-o-b---U- sf F02043 72 2005/10/07 17:12 524 100% -il-o-b---U- sf H02053 73 2005/10/10 13:23 288 100%

RE: whitespace beginning and end

2006-02-22 Thread DBSMITH
Do you mean like unless($_ =~ /^\s*\d+\s*$/){ print $_; } ? -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Wednesday, February 22, 2006 2:36 PM To: beginners@perl.org Subject: whitespace beginning and end

Why does my inheritance hierarchy get screwed up?

2006-02-22 Thread Johannes Ernst
[Blogged about it here: http://netmesh.info/jernst/Technical/perl- inheritance-problem.html ] There are three very simple classes in the following code: C is a subclass of B, which is a subclass of A. If I try to instantiate B (see last two lines of the code below), I'm getting this

Re: Why does my inheritance hierarchy get screwed up?

2006-02-22 Thread Tom Phoenix
On 2/22/06, Johannes Ernst [EMAIL PROTECTED] wrote: If I try to instantiate B (see last two lines of the code below), I'm getting this output: Point B: Exporter Can't locate object method new via package B at madness.pl line 23. Did you know that B is a package name used

Re: Why does my inheritance hierarchy get screwed up?

2006-02-22 Thread Hans Meier (John Doe)
Johannes Ernst am Donnerstag, 23. Februar 2006 00.19: [Blogged about it here: http://netmesh.info/jernst/Technical/perl- inheritance-problem.html ] There are three very simple classes in the following code: C is a subclass of B, which is a subclass of A. If I try to instantiate B (see last

RE: RE: Re: Tri-grams?

2006-02-22 Thread Wagner, David --- Senior Programmer Analyst --- WGO
-Original Message- From: amit hetawal [mailto:[EMAIL PROTECTED] Sent: Wednesday, February 22, 2006 16:00 To: Wagner, David --- Senior Programmer Analyst --- WGO Subject: Re: RE: Re: Tri-grams? hi there the sequnce with alpha _ _ is valid but not _ _ _ I replaced the 4 four lines

Re: A problem with apache installation http://localhost issue

2006-02-22 Thread zhou jian
Check that the entry 127.0.0.1 localhost is present. How to check the this entry? I added this entry to httpd.conf and listen 127.0.0.1:80. However, I got the error message. Do you have any other ideas? I also checked. I am convinced that I didn't have that configured in httpd.conf. How could

Re: simple references question

2006-02-22 Thread Bryan Harris
Thanks! Regarding your note, out of curiosity, how will it help a lot in the end? I've been scripting for almost 5 years now, and have produced 100 scripts that are used in data analysis work by ~15 people, and have never used use strict, nor declared any variables with my. Everybody says it's

Re: simple references question

2006-02-22 Thread Hans Meier (John Doe)
Bryan Harris am Donnerstag, 23. Februar 2006 03.46: Thanks! Regarding your note, out of curiosity, how will it help a lot in the end? I've been scripting for almost 5 years now, and have produced 100 scripts that are used in data analysis work by ~15 people, and have never used use strict,

Re: whitespace beginning and end

2006-02-22 Thread John W. Krahn
[EMAIL PROTECTED] wrote: Perlers Hello, I need to remove any line that begins with \d+ yet end with \s* EVERY line ends with \s* so you want to remove every line? John -- use Perl; program fulfillment -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL

Fork or Thread?

2006-02-22 Thread Sky Blueshoes
I have a Net::IRC application that uses a Win32::GUI interface. My GUI is lagging and I was wondering what would be better to use and how would I go about it. Should I fork the Net::IRC process (how?) or I've read about Threads (not stable?). Any suggestions, hints, tips, LINKS to