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
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
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
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
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
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
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
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,
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
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
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
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
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.
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
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
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
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
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
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;
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/
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$
:
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
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.
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
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 =~
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
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
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
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
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*$/;
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:
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
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 .=
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
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
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
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).
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
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
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
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
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
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
43 matches
Mail list logo