Hi everybody,
I' m not sure this is the right list to ask this kind of question but I don't know
where else. We are using html forms to insert and update news articles (texts) stored
in a mysql database. Ever so often one of our journalists forgets to press the submit
button or his computer
What is the perl code to redirect
to a new url, in cgi. All I need is
to execute a perl script and when its
done to redirect the clients browser to a new location.
I am running Windows 2000 and IIS.
Developer
eMessageX.com
Tel: +27 (0)11 789 1808
Fax: +27
Hi everybody,
I' m not sure this is the right list to ask this kind of question but
I don't know where else. We are using html forms to insert and update
news articles (texts) stored in a mysql database. Ever so often one of
our journalists forgets to press the submit button or his
What is the perl code to redirect to a new url, in cgi. All I need is to
execute a perl script and when its done to redirect the clients
browser to a
new location.
I am running Windows 2000 and IIS.
If you are using CGI.pm then it has a 'redirect' method:
Wiggins d Anconia wrote:
Hi everybody,
I' m not sure this is the right list to ask this kind of question but
I don't know where else. We are using html forms to insert and update
news articles (texts) stored in a mysql database. Ever so often one of
our journalists forgets to press the submit
Andrew Gaffney wrote:
I believe there is an HTTP status code that tells the browser that
the form was successfully submitted, but not to go anywhere. I don't
know what it is off the top of my head, but I think it would work in
this case.
Would that be 204 No Content?
print
$query-redirect('http://www.google.com ');
Thanks a lot for your assistance, I need to
redirect and the browser automatically go to that location, without any user
intervention. Is there any way to do this.
Developer
eMessageX.com
Tel: +27 (0)11
Wiggins D Anconia [EMAIL PROTECTED] wrote in message
news:[EMAIL PROTECTED]
Hi everybody,
I' m not sure this is the right list to ask this kind of question but
I don't know where else. We are using html forms to insert and update
news articles (texts) stored in a mysql database. Ever
Ash Singh [EMAIL PROTECTED] wrote:
: print $query-redirect('http://www.google.com ');
: Thanks a lot for your assistance, I need to redirect
: and the browser automatically go to that location,
: without any user intervention. Is there any way to
: do this.
It depends upon your definition
#!/usr/bin/perl
use strict;use
CGI qw(:standard);
my $url = ""
## The URL to be redirected to
print redirect($url);
Aman Raheja
AGF Technologies
http://www.agftech.com
- Original Message -
From:
Ash Singh
To: [EMAIL PROTECTED]
Sent:
Does anyone have any suggestions on how to create an array to hold the value
of 1000 factorial?
Do you mean 1000!
That's a super-sized number--something like 10-to-the-2566th power,
if I am using Sterling's approximation correctly.
I don't know of a numeric type that stores such animals. If
Try ldd :
%ldd /mz/hd/liuyi/local/lib/perl5/site_perl/5.8.0/sun4-solaris/auto/Tk/Event/Event.so
Or
%ldd -s
/mz/hd/liuyi/local/lib/perl5/site_perl/5.8.0/sun4-solaris/auto/Tk/Event/Event.so
my_paste
%man ldd
Reformatting page. Please Wait... done
User Commands
Does anyone have any suggestions on how to create an array to hold the
value of 1000 factorial?
Do you mean 1000!
That's a super-sized number--something like 10-to-the-2566th power, if
I am using Sterling's approximation correctly.
I don't know of a numeric type that stores such animals.
Jeff wrote:
I am using Active Perl under Windoze 98. I am trying to open a file that has
embedded spaces. I tried escaping the spaces as well, and that didn't work
either.
#! perl -w
$file = c:\\win\\start menu\\programs\\system\\tbs montego\\_visit turtle beach web
site.lnk;
print
B. Rothstein wrote:
Does anyone have any suggestions on how to create an array to hold the value
of 1000 factorial?
Hi.
Use Math::BigInt. The program below stores the first 1000 factorials into an
array and prints out the thousandth, which is 2568 digits long. It also runs
incredibly quickly
Rob Dixon [EMAIL PROTECTED] wrote in message
news:[EMAIL PROTECTED]
Todd W. wrote:
Rob Dixon [EMAIL PROTECTED] wrote in message
news:[EMAIL PROTECTED]
Todd wrote:
Perl is so slick:
if ( $self-{code} ) {
$string = $self-{code};
} else {
B. Rothstein wrote:
Does anyone have any suggestions on how to create an array to hold
the value of 1000 factorial?
This will compute it:
perl -MMath::BigInt -le '$n = Math::BigInt-new(1); $n *= $_ for 2..1000;
print $n'
You can stick the result in an array if you want...
--
To unsubscribe,
B. Rothstein wrote:
Does anyone have any suggestions on how to create an array to hold the
value of 1000 factorial?
This will compute it:
perl -MMath::BigInt -le '$n = Math::BigInt-new(1); $n *= $_ for
2..1000; print $n'
in trying to understand this i guess that:
$n =
[EMAIL PROTECTED] wrote:
B. Rothstein wrote:
Does anyone have any suggestions on how to create an array to
hold the value of 1000 factorial?
This will compute it:
perl -MMath::BigInt -le '$n = Math::BigInt-new(1); $n *= $_ for
2..1000; print $n'
in trying to understand
I've tried to install image magic on my server a couple years
ago, but found
I believe Image::Magick and Imager can help you grab
certain area of an image into another image objetc with
which you can do as you please.
HTH
DMuey
out it wasn't necessary for my project. But now I may
[EMAIL PROTECTED] wrote:
I've tried to install image magic on my server a couple years ago, but found
out it wasn't necessary for my project. But now I may need it. All I want
to do is slice an image and add it to a database. It has to be executed
automaticall from a script.
Hi.
Have you
Jose,
After I ran, it shows me:
%ldd /mz/hd/liuyi/local/lib/perl5/site_perl/5.8.0/sun4-solaris/auto/Tk/Event/Event.so
libm.so.1 = /usr/lib/libm.so.1
libc.so.1 = /usr/lib/libc.so.1
libdl.so.1 =/usr/lib/libdl.so.1
So ldd said all expected objects are there.
I was suspecting a missing one.
In that case ldd would say
libm.so.1 = not found
For instance.
Anyway, i noticed something that bother me in your post:
That is version of your perl on your machine:
5.8.0 and 5.00503
When for instance, you type
%perl -v
On Wednesday, Nov 26, 2003, at 08:05 US/Pacific, NYIMI Jose (BMB) wrote:
[..]
Anyway, i noticed something that bother me in your post:
That is version of your perl on your machine:
5.8.0 and 5.00503
[..]
A part of the issue seems to be that minor glitch,
In one of the updates Sun came out with a
Thanks!
I see the conflict here:
When for instance, you type
%perl -v
This is perl, version 5.005_03 built for sun4-solaris
%which perl
/bin/perl
/usr/local/bin/perl -v
This is perl, v5.8.0 built for sun4-solaris
Now, I see where the problem is. Thanks,
Ying
--
To unsubscribe,
On Wednesday, Nov 26, 2003, at 08:46 US/Pacific, Ying Liu wrote:
[..]
/usr/local/bin/perl -v
This is perl, v5.8.0 built for sun4-solaris
Now, I see where the problem is. Thanks,
Ying
Stylish!
It appears that you have a multi-perl environment.
This will allow you to work in both the 5.8 world
and
Stylish!
It appears that you have a multi-perl environment.
This will allow you to work in both the 5.8 world
and the 5.5 world - although I would still recommend
that you chat with your SysAdmin about upgrading
the /usr/perl5/bin/perl to the 5.6.1 version.
ciao
drieux
Thanks! Fran
Hello There,
I would like to see if my ISP has perl available if one wanted to incorporate
perl into a web page. Is there a quick and dirty web page I can upload to my
ISP to test if perl is available and works ? I would also like to see what
version of perl is running ?
Could someone post
Hello There,
I would like to see if my ISP has perl available if one wanted to
incorporate
perl into a web page. Is there a quick and dirty web page I can
upload to my
ISP to test if perl is available and works ? I would also like to see
what
version of perl is running ?
Could
Hello There,
I would like to see if my ISP has perl available if one
wanted to incorporate perl into a web page. Is there a quick
and dirty web page I can upload to my ISP to test if perl is
Try this:
test.cgi
#!/usr/bin/perl -w
use strict;
use CGI 'header';
print header();
print
Dan Muey [EMAIL PROTECTED] wrote:
Hello There,
I would like to see if my ISP has perl available if one
wanted to incorporate perl into a web page. Is there a quick
and dirty web page I can upload to my ISP to test if perl is
Try this:
test.cgi
#!/usr/bin/perl -w
use strict;
Jeff Westman wrote:
Hello There,
I would like to see if my ISP has perl available if one wanted to
incorporate perl into a web page. Is there a quick and dirty web
page I can upload to my ISP to test if perl is available and works ?
I would also like to see what version of perl is running
Dan Muey [EMAIL PROTECTED] wrote:
Hello There,
I would like to see if my ISP has perl available if one
wanted to incorporate perl into a web page. Is there a quick
and dirty web page I can upload to my ISP to test if perl is
Try this:
test.cgi
#!/usr/bin/perl -w
Dan Muey [EMAIL PROTECTED] wrote:
Hello There,
I would like to see if my ISP has perl available if one
wanted to incorporate perl into a web page. Is there a quick
and dirty web page I can upload to my ISP to test if perl is
Try this:
test.cgi
#!/usr/bin/perl
Thanks again...!
No sweat!
Everything makes sense and I appreciate your answering me.
Now, I assume the script has to be executable so I will
need telnet access. I tried
(instead) to use a perl script I have that does ftp
(including site-chmod)
-- assuming I can't
Someone want to show me how this module can help parse out html?
I want to grap text between tdtext/td being able to apple regexp to
get what I want.
The problem is my text is among 10,000 td tags. With the only difference
being what the above th tag has in it.
So if th tag = then store text
On Tuesday, Nov 25, 2003, at 06:13 Europe/Brussels, Andrew Gaffney
wrote:
Jason Dusek wrote:
On Monday, November 24, 2003, at 10:56 PM, Andrew Gaffney wrote:
There is atleast 1 Perl program for downloading Yahoo mail out
there.
Okay, but let's say I want to /learn/ to do it - since I don't
Jerry Rocteur wrote:
...
I see this a lot of this on this list, Reply to the list,
Reply to the
list, Reply to the list.
If it was the intention of the list manager for people to
reply to the
list then a reply would go to the list, however, a reply goes to the
poster, not the list.
I have a fortran program calling a perl script for various parsing
activities for multiple number of times. I wish to increment a variable by
1 in the PERL SCRIPT (not the fortran program) to have a record of how many
times the script has been called. In simple words, i have a variable
--As off Wednesday, November 26, 2003 9:37 PM +0100, Jerry Rocteur is
alleged to have said:
I see this a lot of this on this list, Reply to the list, Reply to
the list, Reply to the list.
If it was the intention of the list manager for people to reply to
the list then a reply would go to the
Amit Phatak wrote:
I have a fortran program calling a perl script for various parsing
activities for multiple number of times. I wish to increment a
variable by 1 in the PERL SCRIPT (not the fortran program) to have a
record of how many times the script has been called. In simple
words, i
Why does the following work (eg, give me an array filled with matching file
names):
@filelist = glob(w:/stleg/Colorado/House_98/*.htm);
And when I rename the directory to House 98 (space instead of underscore),
the following does not:
@filelist = glob(w:/stleg/Colorado/House 98/*.htm);
Thanks!
On Wed, Nov 26, 2003 at 03:50:57PM -0500, Amit Phatak wrote:
I have a fortran program calling a perl script for various parsing
activities for multiple number of times. I wish to increment a variable by
1 in the PERL SCRIPT (not the fortran program) to have a record of how many
times the
On Tuesday, Nov 25, 2003, at 20:11 Europe/Brussels, drieux wrote:
On Tuesday, Nov 25, 2003, at 10:29 US/Pacific, Paul Harwood wrote:
[..]
Perfect, thanks!
[..]
There are Clear and Compelling reasons why we
thump on folks about 'perldoc' is your friend.
For the life of me I can never remember
Implemented that. Not exaclty what you said but something very similar.
Thanks for the help.
Amit
Original Message Follows
From: Wagner, David --- Senior Programmer Analyst --- WGO
[EMAIL PROTECTED]
To: Amit Phatak [EMAIL PROTECTED],[EMAIL PROTECTED]
Subject: RE: Count the no of times
Boris Shor wrote:
Why does the following work (eg, give me an array filled with
matching file names):
@filelist = glob(w:/stleg/Colorado/House_98/*.htm);
And when I rename the directory to House 98 (space instead of
underscore), the following does not:
@filelist =
--As off Wednesday, November 26, 2003 3:58 PM -0500, Boris Shor is
alleged to have said:
Why does the following work (eg, give me an array filled with
matching file names):
@filelist = glob(w:/stleg/Colorado/House_98/*.htm);
And when I rename the directory to House 98 (space instead of
@filelist = glob(w:/stleg/Colorado/House_98/*.htm);
And when I rename the directory to House 98 (space instead of
underscore), the following does not:
The reason is you escaped the space in $MyLoc but not in /House 98/.
If you escape the space in /House 98/ (IE /House\ 98/) like you
drieux suggests:
The alternative of course would be to have
the 'perl code' start up as a daemon that
handled requests on a socket, this way you
would save the 'start up' overhead of
invoking a new process each time through.
Make sure your sys admin is OK with this one.
Dan Muey wrote:
@filelist = glob(w:/stleg/Colorado/House_98/*.htm);
And when I rename the directory to House 98 (space instead of
underscore), the following does not:
The reason is you escaped the space in $MyLoc but not in /House 98/.
If you escape the space in /House 98/ (IE /House\
Understood, but I know that the space within a
directory name must have the \ otherwise it won't work, but
if I try say ( for my testing purposes):
$MyLoc = d:/00Common\ Perl/;
@filelist = glob($MyLoc . pl0*.pl);
The only thing that prints is
d:/00Common
and
On Wednesday, Nov 26, 2003, at 13:28 US/Pacific, Tom Kinzer wrote:
drieux suggests:
The alternative of course would be to have
the 'perl code' start up as a daemon that
handled requests on a socket, this way you
would save the 'start up' overhead of
invoking a new process each time through.
Make
Rob Dixon wrote:
B. Rothstein wrote:
Does anyone have any suggestions on how to create an array to hold the value
of 1000 factorial?
Hi.
Use Math::BigInt. The program below stores the first 1000 factorials into an
array and prints out the thousandth, which is 2568 digits long. It also
David Wagner wrote:
Dan Muey wrote:
@filelist = glob(w:/stleg/Colorado/House_98/*.htm);
And when I rename the directory to House 98 (space instead of
underscore), the following does not:
The reason is you escaped the space in $MyLoc but not in /House 98/.
Understood, but I know that the
Jeff Westman wrote:
Hi,
I am using Active Perl under Windoze 98. I am trying to open a file that has
embedded spaces. I tried escaping the spaces as well, and that didn't work
either.
#! perl -w
$file = c:\\win\\start menu\\programs\\system\\tbs montego\\_visit turtle
beach web
On Wednesday, Nov 26, 2003, at 12:21 US/Pacific, Jerry Rocteur wrote:
[..]
In as much as perldoc is your friend (Just like Google ;-)
I find when you first use perldoc you get awfully confused
as to which one to look for.
I like to use perldoc perltoc and of course
Jeff Westman wrote:
Dan Muey [EMAIL PROTECTED] wrote:
Perfect! Exactly what I was looking for. I can deal with the
paths/permissions/etc. I'm just trying to figure out how to get started.
Oh, would I call this inside a web page with a SCRIPT tag or something?
How do I point to the CGI
Jeff Westman wrote:
Everything makes sense and I appreciate your answering me. Now, I assume the
script has to be executable so I will need telnet access. I tried
(instead) to use a perl script I have that does ftp (including site-chmod)
-- assuming I can't telnet. Anyway, I use this
I have sendmail working ok with perl by calling sendmail (qmail-inject).
However, now I need to send an attachment with it. Can someone tell me how
this can be done?
fw
-
eMail solutions by
http://www.swanmail.com
--
To unsubscribe, e-mail: [EMAIL
Paul Kraus wrote:
Someone want to show me how this module can help parse out html?
I want to grap text between tdtext/td being able to apple regexp to
get what I want.
The problem is my text is among 10,000 td tags. With the only difference
being what the above th tag has in it.
So if th
On Wednesday, Nov 26, 2003, at 15:52 US/Pacific, [EMAIL PROTECTED]
wrote:
I have sendmail working ok with perl by calling sendmail
(qmail-inject).
However, now I need to send an attachment with it. Can someone tell me
how
this can be done?
The CPAN is your friend,
you might want to look at
Boris Shor wrote:
Why does the following work (eg, give me an array filled with matching file
names):
@filelist = glob(w:/stleg/Colorado/House_98/*.htm);
And when I rename the directory to House 98 (space instead of underscore),
the following does not:
@filelist =
62 matches
Mail list logo