Re: complex data structure

2005-01-11 Thread Ing. Branislav Gerzo
[EMAIL PROTECTED] [m], on Monday, January 10, 2005 at 13:23 (-0500) made these points: mon I can try, I personaly perfer RoHoH..., looks like you have RoHoAoH thanks, maybe I will change that to RoHoH, I'd like to insert those values to database, where keys will be name of columns. --

Javascript issue

2005-01-11 Thread Anish Kumar K.
Hi Sorry to put in this PL forum Say I have Javascript alert like this. BODY onload=window.alert(welcome to my page) when I preview this I get the alert window it is working fine. But The caption of the window is Microsoft Internet Explorer. Is there any way to change it...I mean some user

wrong execution of or

2005-01-11 Thread Mauro
Hi all, I have a problem with my perl program because I'm not be able to understand why it seems to execute both part of or statement. In effect it executes system instruction transfering the file but it also die even if exit code of scp is 0. Could you explain me why it seems to execute

RE: Execute interactive shell scripts from perl?

2005-01-11 Thread Thomas Bätzler
Myers, Drew [EMAIL PROTECTED] asked: I've been lurking on this list for a while, but this is my first email. I've written a series of ksh scripts, that prompts the user for information, and reads the user's input. I'd like to call these ksh scripts from within my perl script. You

RE: GD isn't outputting image data

2005-01-11 Thread Thomas Bätzler
Owen [EMAIL PROTECTED] suggested: Well perhaps for a single debugging line, it doesn't matter too much, but consider a program where endless things can and do go wrong. Peppering your script with or die Can't open the file Data1 $!\n; or die Can't open the file Data2 $!\n; or die Can't

RE: CPAN

2005-01-11 Thread Thomas Bätzler
Daniel [EMAIL PROTECTED] I made a mistake when setting up CPAN, I chose Central America as my Continent, then the only option was to chose Costa Rica as my Country. Not that I have anything against Costa Rica, very lovely place will visit soon, but would like a ftp server closer to my

RE: linked list

2005-01-11 Thread Thomas Bätzler
Christian Stalp [EMAIL PROTECTED] asked: Does anybody has any experience with making liked lists in perl. Perl's arrays are really linked lists - check out the built-in function splice(). HTH, Thomas -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL

RE: Javascript issue

2005-01-11 Thread Thomas Bätzler
Anish Kumar K. [EMAIL PROTECTED] Sorry to put in this PL forum Just don't do it. Say I have Javascript alert like this. BODY onload=window.alert(welcome to my page) when I preview this I get the alert window it is working fine. But The caption of the window is Microsoft Internet

RE: wrong execution of or

2005-01-11 Thread Thomas Bätzler
Mauro [EMAIL PROTECTED] asked: I have a problem with my perl program because I'm not be able to understand why it seems to execute both part of or statement. I'm assuming you're referring to system('/usr/bin/scp -qvp [EMAIL PROTECTED]:/home/clariion/cx700_perf.txt /home/mgatt/rrd/tmp') or

Re: wrong execution of or

2005-01-11 Thread John W. Krahn
Mauro wrote: Hi all, Hello, I have a problem with my perl program because I'm not be able to understand why it seems to execute both part of or statement. In effect it executes system instruction transfering the file but it also die even if exit code of scp is 0. Could you explain me why it seems

display html using perl class

2005-01-11 Thread Graeme McLaren
Greetings all, I am trying to display some html using a perl display class. When I try to view the page using the url containing /cgi-bin/ it works fine, however when the url contains /cgi-perl/ instead of /cgi-bin/ the browser (Mozilla Firefox) displays raw html. Anyone have any ideas as to

Regex lookahead problem

2005-01-11 Thread Ramprasad A Padmanabhan
I have a string $X='#SOME_STRING END'; I want to remove the begining '#' and ending 'END' but retain everything in between. This way works fine $X=~s/^#(.*?) END$/$1/; # $X is now SOME_STRING But this way does not s/^#(?=.*) END$//; ## $X is still

Re: Regex lookahead problem

2005-01-11 Thread Jenda Krynicky
From: Ramprasad A Padmanabhan [EMAIL PROTECTED] I have a string $X='#SOME_STRING END'; I want to remove the begining '#' and ending 'END' but retain everything in between. This way works fine $X=~s/^#(.*?) END$/$1/; # $X is now SOME_STRING But this way does not

Re: display html using perl class

2005-01-11 Thread JupiterHost.Net
Graeme McLaren wrote: Greetings all, I am trying to display some html using a perl display class. When I try to view the page using the url containing /cgi-bin/ it works fine, however when the url contains /cgi-perl/ instead of /cgi-bin/ the browser (Mozilla Firefox) displays raw html.

RE: display html using perl class

2005-01-11 Thread Manav Mathur
Which webserver are you using? Is /cgi-perl/ directory enabled for executing scripts?? For Apache, you might be interested in the Scriptalias directive. Manav |-Original Message- |From: Graeme McLaren [mailto:[EMAIL PROTECTED] |Sent: Tuesday, January 11, 2005 6:14 PM |To:

Re: Javascript issue

2005-01-11 Thread JupiterHost.Net
Anish Kumar K. wrote: Hi Hello, Sorry to put in this PL forum Then don't :) put it in a JavaScript forum Say I have Javascript alert like this. BODY onload=window.alert(welcome to my page) when I preview this I get the alert window it is working fine. But The caption of the window is Microsoft

unexpected hex in output

2005-01-11 Thread erithid
i am trying to write a simple program that splits text, but when I output the results I end up with SCALAR(0x15d4ee8) all over the place. Is there any way to stop this? also, it appears in the output, but oddly if i write the output to a file, import it, and try to s/ it out, it remains there.

file::copy remote authentication

2005-01-11 Thread Paul Kraus
I have a perl script that uses file::copy to copy files from a server to the local machine. It does alot more then that but is pretty much the jist of what is taking place. Currently i have to have the local machine first establish the connection so that authentication takes place. start - run

fgt it fixed it

2005-01-11 Thread erithid
As soon as I sent the mail. Figures. :-) Thanks anyway ~BJ Nequaquam Vacuum -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] http://learn.perl.org/ http://learn.perl.org/first-response

Re: file::copy remote authentication

2005-01-11 Thread JupiterHost.Net
Paul Kraus wrote: I have a perl script that uses file::copy to copy files from a server Funny, I couls only find File::Copy on cpan but no file::copy :) to the local machine. It does alot more then that but is pretty much the jist of what is taking place. Currently i have to have the local

Re: file::copy remote authentication

2005-01-11 Thread Jenda Krynicky
From: Paul Kraus [EMAIL PROTECTED] I have a perl script that uses file::copy to copy files from a server to the local machine. It does alot more then that but is pretty much the jist of what is taking place. Currently i have to have the local machine first establish the connection so that

Re: unexpected hex in output

2005-01-11 Thread John W. Krahn
[EMAIL PROTECTED] wrote: i am trying to write a simple program that splits text, but when I output the results I end up with SCALAR(0x15d4ee8) all over the place. That is what happens when you print a reference to a scalar. $ perl -le' $x = 12345; $y = \$x; $$z = $x; print for $y, $z; '

Re: unexpected hex in output

2005-01-11 Thread Jay
On Tue, 11 Jan 2005 11:40:30 -0500, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: i am trying to write a simple program that splits text, but when I output the results I end up with SCALAR(0x15d4ee8) all over the place. Is there any way to stop this? also, it appears in the output, but oddly if

use DBI; connection timeout

2005-01-11 Thread Paul Ohashi
I wrote a script to run a few select queries from a database using the DBI module. The script works, but occasionally times out and either the query results are truncated, or I get 'The page cannot be displayed'. Is there a timeout parameter somewhere that I could increase in Apache, or Perl? I

Re: Memory full

2005-01-11 Thread Jay
On Mon, 10 Jan 2005 12:53:50 +0200, Octavian Rasnita [EMAIL PROTECTED] wrote: Hi, I have made a perl module object oriented which is something like this: Then I access the parse() method in another program that feeds the module with more Excel files (around 500 files). After more files

Re: Array question

2005-01-11 Thread John W. Krahn
Boris Volf wrote: Can anyone help with this I have the following array: 1,1040209458 2,1040328655 3,1040847094 4,1041030406 5,1042093756 I need to create a script that goes through this array(@temp_array), and creates various output files

Write stdout to a file as well as stdout

2005-01-11 Thread Larry Guest
I have a script that does all kinds stuff. When its running it outputs all kinds of useful information to the screen and exits. What I want to do is have this also sent to a file. Any thoughts? Thanks -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL

Re: Write stdout to a file as well as stdout

2005-01-11 Thread JupiterHost.Net
Larry Guest wrote: I have a script that does all kinds stuff. When its running it outputs all kinds of useful information to the screen and exits. What I want to do is have this also sent to a file. perldoc -f open -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail:

RE: Write stdout to a file as well as stdout

2005-01-11 Thread Tim Johnson
One solution would be to use a custom subroutine instead of print()ing directly. If you need something more robust, there are modules out there that can do the heavy lifting for you. # use strict; use warnings; open(OUTFILE,script.log) || die Couldn't write to

Re: Write stdout to a file as well as stdout

2005-01-11 Thread JupiterHost.Net
Tim Johnson wrote: One solution would be to use a custom subroutine instead of print()ing directly. If you need something more robust, there are modules out there that can do the heavy lifting for you. # use strict; use warnings; open(OUTFILE,script.log) || die Couldn't write

Re: Array question

2005-01-11 Thread John W. Krahn
Boris Volf wrote: Can anyone help with this I have the following array: 1,1040209458 2,1040328655 3,1040847094 4,1041030406 5,1042093756 I need to create a script that goes through this array(@temp_array), and creates various output files

RE: Write stdout to a file as well as stdout

2005-01-11 Thread Chance Ervin
why not just re-direct from the command line if all output is needed? perl.program output.file -- - InteleNet Communications Inc. Help me help you. Chance Ervin - SCSA -- Jerry Maguire Oracle Certified Professional Systems Engineer

Re: Write stdout to a file as well as stdout

2005-01-11 Thread Chris Devers
On Tue, 11 Jan 2005, Larry Guest wrote: Any thoughts? You want to replicate the `tee` command. From its manpage: NAME tee - pipe fitting SYNOPSIS tee [-ai] [file ...] DESCRIPTION The tee utility copies standard input to standard output, making a copy in zero or

Kaysee Long is out of the office.

2005-01-11 Thread Kaysee Long
I will be out of the office starting 01/10/2005 and will not return until 02/21/2005. I will respond to your message when I return. Please Call Cary Perkins/Boulder if you need anything. I will be on maternity leave until 2/21/2005 -- To unsubscribe, e-mail: [EMAIL PROTECTED] For

Template Check

2005-01-11 Thread Anish Kumar K.
Hi All I use perl template function to print the values in the html file. In that I do a manipulation in percentage. Line: td width=20% height=1 bgcolor=[%BGCOLOR%] valign=middle align=left class=bodytextb[% (browserTotal / browserCount) * 100 %]/b/td i.e (browserTotal / browserCount) *

Re: Template Check

2005-01-11 Thread Chris Devers
On Wed, 12 Jan 2005, Anish Kumar K. wrote: I use perl template function to print the values in the html file. In that I do a manipulation in percentage. Line: td width=20% height=1 bgcolor=[%BGCOLOR%] valign=middle align=left class=bodytextb[% (browserTotal / browserCount) * 100

subclassed function modifying original object

2005-01-11 Thread JupiterHost.Net
Hey group, A trifle stuck trying to modify the original object in a subclassed function like so: For instance (simple example): my $gd_obj = new GD::Image(100,100); my $new_gd = $gd_obj-foo(); sub GD::Image::foo { my $objgd = shift; return $objgd-copyRotate90(); } Works like a charm, now

Execute a perl array

2005-01-11 Thread Groleo Marius
Hi list! ( as usual ) i have a simple question : how can i execute an array, knowing that it contains perl code? -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] http://learn.perl.org/ http://learn.perl.org/first-response

Getting the prefered language of the browser

2005-01-11 Thread Octavian Rasnita
Hi all, Does anyone know if there is a perl module that gets the prefered languages of the browser in their preference order? I know to get them from $ENV{HTTP_ACCEPT_LANGUAGE} environment variable, but I don't know how to parse correctly that string. I have tried reading the RFC which talks