Re: Safety of storing pricing information in a CGI::Session

2005-02-02 Thread Marcello
Michael Kraus ha scritto: G'day all... I'm currently using CGI::Session as part of an online ordering system. I've been passing database primary keys back and forth between the client and server, with all values double checked upon being received at the server. The only problem is that I need to

Re: Problem in reading cookies

2005-02-02 Thread Marcello
Mallik ha scritto: Hi All, I have an perl script that reads cookies. In one system it is able to read the cookies properly. But the same is not working in another system. Browsers and their versions are same in both systems. I even set the browser properties same in both the systems. You mean

Subroutine for a scripts progress

2005-02-02 Thread Gavin Henry
Dear all, I haven't coded anything yet, but I was wondering if it has been done, or can be done to write a small sub that can be called to show how a script is progressing? Like an on the sopt 1% 2% kind of thing or a hash progress? A small pointer to the correct feature/doc is all I am

RE: Subroutine for a scripts progress

2005-02-02 Thread Manav Mathur
you can use the perl debugger for that. see perldoc perldebug -Original Message- From: Gavin Henry [mailto:[EMAIL PROTECTED] Sent: Wednesday, February 02, 2005 5:36 PM To: beginners@perl.org Subject: Subroutine for a scripts progress Dear all, I haven't coded anything yet, but I

RE: Subroutine for a scripts progress

2005-02-02 Thread Gavin Henry
quote who=Manav Mathur you can use the perl debugger for that. see perldoc perldebug Sorry, I should have been clearer, this is to show the end user how things are progressing. -Original Message- From: Gavin Henry [mailto:[EMAIL PROTECTED] Sent: Wednesday, February 02, 2005 5:36

Generating and matching regular expressions.

2005-02-02 Thread Tommy Nordgren
I have the need to generate a large number of regular expressions from a set of specifications. The specification consists of regular expressions in another syntax. They must be transformed into perl regular expressions according to the following rules: All nested parenthesizes should be

Building external modules

2005-02-02 Thread Tommy Nordgren
Any (preferably cheap ) useful text books on building External perl modules in C++? Is it possible for external modules to maintain global state variables? Home is not where you are born, but where your heart finds peace - Tommy Nordgren, The dying old crone -- To unsubscribe, e-mail: [EMAIL

split delimiters query

2005-02-02 Thread mike
Am I right in thinking that if you double quote the seperator in split the seperator is added to the array ie: @array3=split(/\t/,$value4); would add \t to the end of @array3 while @array3=split(/\t/,$value4); would not -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands,

Re: split delimiters query

2005-02-02 Thread Wiggins d'Anconia
mike wrote: Am I right in thinking that if you double quote the seperator in split the seperator is added to the array ie: @array3=split(/\t/,$value4); would add \t to the end of @array3 while As you have written it above I get a syntax error: String found where operator expected at ./test.pl line

Re: Subroutine for a scripts progress

2005-02-02 Thread Gavin Henry
quote who=Gavin Henry Dear all, I haven't coded anything yet, but I was wondering if it has been done, or can be done to write a small sub that can be called to show how a script is progressing? Like an on the sopt 1% 2% kind of thing or a hash progress? A small pointer to the

Re: Compile perl code/files via STDIN

2005-02-02 Thread Dave Gray
yes that is exactly what i mean. i want to do somthing like this: $ perl - c print Test\n; and now i want to get the infos of the compilation (sytax ok or errors...). after that i want to put the next perl code into the process, i don't want to close the process

Re: split delimiters query

2005-02-02 Thread Jay
On Wed, 02 Feb 2005 12:39:17 +, mike [EMAIL PROTECTED] wrote: Am I right in thinking that if you double quote the seperator in split the seperator is added to the array ie: @array3=split(/\t/,$value4); would add \t to the end of @array3 while @array3=split(/\t/,$value4); would not I

Create list of variables to be printed?

2005-02-02 Thread Kevin Horton
I'm a perl newbie working on a script to log data from a device that sends more variables than I need to log. I have a working prototype script, with the list of variables to be logged hard-coded, which means I need to edit the script any time I need to change the items to be printed.

redirection

2005-02-02 Thread Octavian Rasnita
Hi all, I want to redirect the browser to a certain page using: print Location: http://$ENV{SERVER_NAME}$ENV{HTTP_REFERER};; or $q-redirect(http://$ENV{SERVER_NAME}$ENV{HTTP_REFERER}); Well, I would like to use the second way even though it might have a small overhead, but I would like to be

RE: Create list of variables to be printed?

2005-02-02 Thread Wagner, David --- Senior Programmer Analyst --- WGO
Kevin Horton wrote: I'm a perl newbie working on a script to log data from a device that sends more variables than I need to log. I have a working prototype script, with the list of variables to be logged hard-coded, which means I need to edit the script any time I need to change the items

Re: Create list of variables to be printed?

2005-02-02 Thread Kevin Horton
On 2-Feb-05, at 1:09 PM, Wagner, David --- Senior Programmer Analyst --- WGO wrote: Kevin Horton wrote: I'm a perl newbie working on a script to log data from a device that sends more variables than I need to log. I have a working prototype script, with the list of variables to be logged

RE: Create list of variables to be printed?

2005-02-02 Thread Wagner, David --- Senior Programmer Analyst --- WGO
On 2-Feb-05, at 1:09 PM, Wagner, David --- Senior Programmer Analyst --- WGO wrote: Kevin Horton wrote: I'm a perl newbie working on a script to log data from a device that sends more variables than I need to log. I have a working prototype script, with the list of variables to be logged

Re: redirection

2005-02-02 Thread Wiggins d'Anconia
Octavian Rasnita wrote: Hi all, I want to redirect the browser to a certain page using: print Location: http://$ENV{SERVER_NAME}$ENV{HTTP_REFERER};; In this case you will need to add two new lines as well, to conclude the header, assuming this is the last line of the header. or

Re: Create list of variables to be printed?

2005-02-02 Thread David Van Ginneken
Kevin, Would something like this work for you? Main program: - use strict; my $data_time = 'date'; my $TACH = 'tach345'; my $MP = 'mp123'; our @array; require 'config.pl'; foreach (@array) { eval 'print $' . $_ . ' . \t'; } print \n;

Re: redirection

2005-02-02 Thread JupiterHost.Net
Hello, I have searched to see if there is an environment variable that holds the http://; part, but I saw that there is no such a thing. parse it out of CGI::url() -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] http://learn.perl.org/

RE: Create list of variables to be printed?

2005-02-02 Thread Charles K. Clarkson
Kevin Horton mailto:[EMAIL PROTECTED] wrote: : My working prototype script with the hard-coded list of : variables prints output with the following line: : : print OUTPUT : $data_time\t$TACH\t$MP\t$FUEL_FLOW\t$QTY\t$CHT1\t$CHT2\t$CHT3 : \t$CHT4\t$ :

Checking last character of string for punctuation

2005-02-02 Thread Chris Schults
Howdy all. I'm a newbie with a newbie question. I assume that I'm in the right place. I need to update some code a developer programmed for my organization. The purpose of the code is really basic. It simply prints: $title. $subtitle. However, some of my titles and subtitles end with

RE: Checking last character of string for punctuation

2005-02-02 Thread Moon, John
Subject: Checking last character of string for punctuation Howdy all. I'm a newbie with a newbie question. I assume that I'm in the right place. I need to update some code a developer programmed for my organization. The purpose of the code is really basic. It simply prints: $title. $subtitle.

Re: Checking last character of string for punctuation

2005-02-02 Thread Philipp Traeder
On Wednesday 02 February 2005 22:39, Chris Schults wrote: Howdy all. I'm a newbie with a newbie question. I assume that I'm in the right place. Yes, thie does sound consistent. ;-) I need to update some code a developer programmed for my organization. The purpose of the code is really

Re: Checking last character of string for punctuation

2005-02-02 Thread Ing. Branislav Gerzo
Chris Schults [CS], on Wednesday, February 2, 2005 at 14:39 (-0800) wrote the following: CS However, some of my titles and subtitles end with punctuation (?, !, CS ., ...). Thus, I end up with: Am I a title that ends with punctuation?. CS Do-oh!. my $title = 'This is just test '; $title =~

Net::SSH (How to split value returned by a system command)

2005-02-02 Thread Babale Fongo
This is what I had: @found = remote_cmds (find $remdir -name '*.zip'); print @found look like this: /path/file1.zip /path/file2.zip /path/file3.zip @found is neither a list nor string, so it is not handy to deal with. In scalar context, the command returns 1 (true), in list context it

Re: Create list of variables to be printed?

2005-02-02 Thread Kevin Horton
David, Thank you very much for your help. I had tried to use the eval command, but I wasn't able to sort out the proper syntax. Your solution works perfectly using my test raw data. I will be able to hook up the engine monitor later tonight so I can test with the real thing and see how

Re: split delimiters query

2005-02-02 Thread mike
On Wed, 2005-02-02 at 12:54 -0500, Jay wrote: On Wed, 02 Feb 2005 12:39:17 +, mike [EMAIL PROTECTED] wrote: Am I right in thinking that if you double quote the seperator in split the seperator is added to the array ie: @array3=split(/\t/,$value4); would add \t to the end of @array3

Re: split delimiters query

2005-02-02 Thread mike
On Wed, 2005-02-02 at 09:23 -0500, Wiggins d'Anconia wrote: mike wrote: Am I right in thinking that if you double quote the seperator in split the seperator is added to the array ie: @array3=split(/\t/,$value4); would add \t to the end of @array3 while As you have written it above I

RE: Checking last character of string for punctuation

2005-02-02 Thread Chris Schults
Thanks to the people who promptly replied. I have two quick follow-up questions: 1) What does s/\s*$/\./ do? (see email below) 2) What are the differences between: $string .= '.' unless $string =~ /[$!.]+$/; (suggested in another email) and $title =~ s/\s*$/\./ unless $title =~ /[!?.]\s*$/;

RE: :SSH (How to split value returned by a system command)

2005-02-02 Thread Babale Fongo
It is a bit weird, but I could workaround it by first joining the value, and splitting it thereafter: @splitted = split /\s+/, join , @found; Thanks anyway... ||-Original Message- ||From: Babale Fongo [mailto:[EMAIL PROTECTED] ||Sent: Wednesday, February 02, 2005 11:59 PM ||To:

OO subclassing, wrong method being called in hierarchy.

2005-02-02 Thread Michael Kraus
G'day... I've got three classes in a hierarchy, i.e.: Class A (Super class) | Class B (Subclasses A, Superclasses C) | Class C (Subclass) I have a method (called go) on both B and A. However, if it is called on A die is called as it is designed to be overridden in subclasses of A. When

Re: Checking last character of string for punctuation

2005-02-02 Thread Randy W. Sims
Chris Schults wrote: Thanks to the people who promptly replied. I have two quick follow-up questions: 1) What does s/\s*$/\./ do? (see email below) It effectively puts a period at the end of the string, while deleting any extra spaces at the end. 2) What are the differences between: $string .=

Re: Net::SSH (How to split value returned by a system command)

2005-02-02 Thread John W. Krahn
Babale Fongo wrote: This is what I had: @found = remote_cmds (find $remdir -name '*.zip'); print @found look like this: /path/file1.zip /path/file2.zip /path/file3.zip @found is neither a list nor string, That is correct, it is an array. so it is not handy to deal with. In scalar context, the

Re: OO subclassing, wrong method being called in hierarchy.

2005-02-02 Thread Randy W. Sims
Michael Kraus wrote: G'day... I've got three classes in a hierarchy, i.e.: Class A (Super class) | Class B (Subclasses A, Superclasses C) | Class C (Subclass) I have a method (called go) on both B and A. However, if it is called on A die is called as it is designed to be overridden in

Reinit arrays for non destructive reuse

2005-02-02 Thread Stephen York
Hi, I've been trying to insert an array ref within a hash. I wrote a test program which was successful, but my real program requires the redefinition of the arrays to be done within an if block. When done in the if block it overwrites previous values. Whe done outside the if block a new array is

RE: OO subclassing, wrong method being called in hierarchy.

2005-02-02 Thread Michael Kraus
If those are the actual package names your using, then you are probably picking up the B package in the core... No, they're not. (I didn't realise there was a B package already, though!) The package names are actually section, dbh_section and checkout (rather than A,B and C respectively).

Regular expression matching

2005-02-02 Thread Tommy Nordgren
I have the need to generate and match a large number (Typically 50 - 200) of regular expressions. Each regular expression should be written in a subset of the perl regular expression syntax, or another suitable syntax. I have not committed to a specific subset yet. The patterns are not allowed

RE: Reinit arrays for non destructive reuse

2005-02-02 Thread Charles K. Clarkson
Stephen York [EMAIL PROTECTED] wrote: : Hi, : : I've been trying to insert an array ref within a hash. I wrote a : test program which was successful, but my real program requires : the redefinition of the arrays to be done within an if block. : When done in the if block it overwrites previous

RE: Problem in reading cookies

2005-02-02 Thread Mallik
Hi Marcello, Here is the detailed info. We have two applications. One applications sets the value of the cookie and the 2nd application reads that cookie's value. When I execute the first application in 2 systems, the cookie is being set in first system, but not in the 2nd system. That's why the

Re: POSIX valid_user.al

2005-02-02 Thread ds10025
I maybe missing something here. I try to rpmbuild authen-smb.0.90.src.rpm That fails to generate rpm file. I did try to re-recompile authen-smb.0.91.tar.gz It complies OK no errors. It install Smb files. But, it do not generate valid_user.al file. Do I need ti set a flag to create the

POSIX valid_user.al

2005-02-02 Thread ds10025
Morning I'm trying to run Authen:Smb After spending some time debugging, it returns an error can not locate valid_user.al valid_user() is a function call from within Authen::Smb. Which package/module contain valid_user.al ? Dan -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional

Re: POSIX valid_user.al

2005-02-02 Thread Roman Vaek
Probably wrong/broken installation of Authen::Smb. Valid_User is defined in file smbval/valid.c which is part of Authen::Smb distribution. Try to recompile/reinstall Authen::Smb again. Roman On Wed, Feb 02, 2005 at 12:36:06PM +, [EMAIL PROTECTED] wrote: Morning I'm trying to run