On Thu, 5 Jun 2003 12:39:02 +0200 , [EMAIL PROTECTED] (Khalid Naji)
wrote:
Hi,
Is there any way to display a Tk/Perl application unter the browser?
Thank you
KN
Yes it's called the perlplus plugin
http://www.Lehigh.EDU/~sol0/ptk/ppl/ppl.html
It can be tricky to setup properly, but here is a
Okay, I'm still struggling here. My problem is I have a client who has a
rather large tab delimited text file I am attempting to slurp up and
place in a MySQL table. The file is almost 6 megs large but my ISP only
allows 2 megs of RAM per user. I can slurp up only about 1.5 megs before
I get
Hi guys,
Needing a little assistance with some issues I am having trying to get my script to
print variable details into and email generated by the script.
so far the script generates the email with (sendmail-t) etc
then goes on print MAIL print this
what I now want it to do is this...
if
One nice way to learn about hashes, arrays, scalars and references, is
to learn the perl debugger and just experiment.
There is a perl debugger tutorial in the perl documentation.
You can print out the arrays and hashes w/o putting print statements
into your code, and that makes the
Camilo Gonzalez [EMAIL PROTECTED] wrote in message
news:[EMAIL PROTECTED]
Okay, I'm still struggling here. My problem is I have a client who has a
rather large tab delimited text file I am attempting to slurp up and
place in a MySQL table. The file is almost 6 megs large but my ISP only
Hello,
I am writing a Perl program. The goal of it is to process streaming HTML site
(To describe - the document that you load never end - the new information is
added to the end and sent to the client connected, the connection is not closed
after this so it will be used more and more).
Depends
I need my web site to automatically send an email
confirmation. I'm using CGI Perl 5.6 on IIS on
Win2000.
What options are there for doing this?
__
Do you Yahoo!?
Yahoo! Calendar - Free online calendar with sync to Outlook(TM).
http://calendar.yahoo.com
--
To
I have an nice little example that demonstrates how to
use COM from a console mode perl program.
However, I want to use COM from a perl CGI page and
microsoft discourages ASP programmers from createing
their own COM objects directly. ASP programmers are
encouraged to use the built-in Server
I need my web site to automatically send an email
confirmation. I'm using CGI Perl 5.6 on IIS on
Win2000.
What options are there for doing this?
MIME::Lite
Mail::Sendmail
Win32::OLE
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail:
Hi all,
A more CGI question this time.
The website I have found myself responsible for needs to be bi-lingual,
English and Japanese. My problem is, how do I persuade the CGI to
output in Japanese characters?
Can I use:
print Content-Type: text/html\n\n;
print Character-Set: shift-jis\n\n;
to
Good evening,
I'm having a hard time figuring out how to make a portion of my script work.
Basically I'd like to split a specific field and use the names from an array
as the scalar variable names for each field. Here is a snip of my code:
# Begin Code
$data = A Tab Separated
James Edward Gray II wrote:
On Wednesday, June 4, 2003, at 03:45 PM, John W. Krahn wrote:
Does it hurt performance having them?
No.
Are we sure about this? I find it really hard to believe that
'warnings' isn't affecting performance on some level. I doubt it's
a big hit, but I
Hi Joshua
Joshua Scott wrote:
Good evening,
I'm having a hard time figuring out how to make a portion of my
script work. Basically I'd like to split a specific field and use
the names from an array as the scalar variable names for each
field. Here is a snip of my code:
# Begin Code
hey,
Is there a perl function/module that will help me calculate the difference
between two files?
Something like the diff Unix command.
10x
Ohad.
_
Protect your PC - get McAfee.com VirusScan Online
hey,
Is there a perl function/module that will help me calculate the difference
between two files?
Something like the diff Unix command.
10x
Ohad.
There is a perl module which can do the same.
Check out http://search.cpan.org/search?query=diffmode=all for more
information.
--
To
use File::Compare
--
From: Ohad Ohad[SMTP:[EMAIL PROTECTED]
Sent: Thursday, June 05, 2003 2:31 PM
To: [EMAIL PROTECTED]
Subject: Unix diff in perl
hey,
Is there a perl function/module that will help me calculate the difference
between two files?
I am just learning about OO programming and it is definitely really cool. I am
reading David Roth's Win 32 Perl Programming and he uses word and excel as example
applications. He calls a bunch of different (I think the term i am looking for here
is methods but I just posted a question about
Try this as a starting point for the description of the Office Object model:
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/vbaof10/htm
l/oftocObjectModelApplication.asp
In order to disect Type-Libraries, which contain information about
Objects/Methods either use the
you can use File::Compare module to achieve that.
--
From: Ohad Ohad[SMTP:[EMAIL PROTECTED]
Sent: Thursday, June 05, 2003 2:31 PM
To: [EMAIL PROTECTED]
Subject: Unix diff in perl
hey,
Is there a perl function/module that will help me calculate the
I don't have the root permission and I can't write to the root folder. I
set the PREFIX=/mz/hd/liuyi, and I changed the following direction:
INSTALLPRIVLIB
INSTALLARCHLIB
INSTALLSITELIB
INSTALLSITEARCH
INSTALLBIN
INSTALLSCRIPT
INSTALLMAN1DIR
INSTALLMAN3DIR
such as:
On Sat, 31 May 2003 20:55:13 +0530, Aman Thind wrote:
Hi All
How can I send a free SMS through perl ?
I am fighting a losing battle with WWW-SMS-0.09.
I created an account on gomobile.ch but everytime i try to send an sms using
gomobile as the submodule I get an error msg saying my
On Thu, Jun 05, 2003 at 02:56:01PM +0530, [EMAIL PROTECTED] wrote:
Is there a perl function/module that will help me calculate the difference
between two files?
Something like the diff Unix command.
There is a perl module which can do the same.
Check out
- Original Message -
From: Jair Santos [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Thursday, June 05, 2003 7:00 PM
Subject: Is empty directory?
Hi all,
does anybody knows how to check if a diretory is empty?
You can open it {opendir } and see for your self {readdir}
Mark G
Hi there
I have got a script running..
Its ment to repeat a particular sub routine using the after syntax
All i want to do is clear everything in buffer ... since it eats up the
memory
I do not need any varaibles which I have defined in the sub.
there are more then enough to init manually.
Clint [EMAIL PROTECTED] wrote in message
news:[EMAIL PROTECTED]
I was able to get it fixed. Here's what I did in case someone else runs
into
the same problem:
Changed from these lines:
my $image = new GD::Image(401,201); (btw: this line is different than
what
is found in the text)
Michael Weber [EMAIL PROTECTED] wrote in message
news:[EMAIL PROTECTED]
Just wondering.
After I debug my perl scripts do I still need the strict and warnings
flags?
Does it hurt performance having them?
Does it hurt security removing them?
The scripts are for system admin only, not CGI
This may be asking for biased opinions but here goes anyways...
Is perl still a good choice for the web. For instance I need to setup a
couple sites that are going to be running on IIS. Is perl still a good
choice for speed ect...
Or should I look at the newer technologies such as vb.net on for
From: Paul Kraus [EMAIL PROTECTED]
Subject: Perl - Web Development
Date: Wed, 4 Jun 2003 09:49:10 -0400
This may be asking for biased opinions but here goes anyways...
Is perl still a good choice for the web. For instance I need to setup a
couple sites that are going to be running on IIS. Is
On Wed, 4 Jun 2003, Paul Kraus wrote:
This may be asking for biased opinions but here goes anyways...
Is perl still a good choice for the web.
Yes. Perl is a very good choice from all aspects.
For instance I need to setup a
couple sites that are going to be running on IIS. Is perl still a
So now my questions would be:
Can you open 216.239.51.100 in a browser?
www.google.com
Can you open 172.20.250.1 in a browser?
www.wokingham.gov.uk
Yes for both...I'm checking to see if the protocol is
okay as we have a firewall and that may be
interfering...
Perhaps the
Here :
http://lists.perl.org/showlist.cgi?name=libwww
http://lists.perl.org/
José.
-Original Message-
From: Dan Muey [mailto:[EMAIL PROTECTED]
Sent: Wednesday, June 04, 2003 4:27 PM
To: Ben Crane
Cc: [EMAIL PROTECTED]
Subject: RE: cgi LWP::Simple script and Apache
So now my
Dan,
Thanx a million for your help...It's given me more to
look at and figure out.
Hope I can return the favour sometime!
Regards
Ben
__
Do you Yahoo!?
Yahoo! Calendar - Free online calendar with sync to Outlook(TM).
http://calendar.yahoo.com
--
To
Dan Muey wrote:
So now my questions would be:
Can you open 216.239.51.100 in a browser? www.google.com
Can you open 172.20.250.1 in a browser? www.wokingham.gov.uk
Yes for both...I'm checking to see if the protocol is
okay as we have a firewall and that may be
interfering...
OK, for anyone who runs into this or for myself if this happens again...
I removed everything Perl and re-installed the ActiveState version
(ActivePerl-5.8.0.806-MSWin32-x86.msi)... got the exact same error... so I
removed everything again and installed an older version
Dan,
Thanx a million for your help...It's given me more to
look at and figure out.
No sweat, this list has helped me out a zillion times.
Hope I can return the favour sometime!
Cool.
Regards
Ben
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL
Greetings
I am trying to resolve a problem I had with the perl 5.8 that comes
bundled with RedHat 9.0. It absolutely would not parse a regex the way
it should, and so I downloaded a new tarball from CPAN and reloaded
perl. RedHat puts perl in /usr/lib/perl5 rather than
/usr/local/lib/perl5 and I
From: Shlomi Fish [EMAIL PROTECTED]
On Wed, 4 Jun 2003, Paul Kraus wrote:
This may be asking for biased opinions but here goes anyways...
Is perl still a good choice for the web.
Yes. Perl is a very good choice from all aspects.
Definitely. Wish the bosses would see that.
Or
Begin forwarded message:
Date: Wed, 4 Jun 2003 11:20:44 -0500
From: Michael Muratet [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Subject: Where is @INC saved and other installation issues
How do I get things _really_ clean? Where does @INC live? I'd like to
start over, keep the RedHat
In article [EMAIL PROTECTED],
[EMAIL PROTECTED] (Michael Muratet) writes:
Greetings
I am trying to resolve a problem I had with the perl 5.8 that comes
bundled with RedHat 9.0. It absolutely would not parse a regex the way
it should, and so I downloaded a new tarball from CPAN and reloaded
perl.
Probably painfully obvious...
Where is this preceding space coming from:
cat test_space.pl
^
#!/usr/local/bin/perl -w
open(FILE,file);
@array = (
line 1\n,
line 2\n,
line 3\n,
\n,
);
print FILE @array;
system(cat file);
On Wednesday, June 4, 2003, at 11:17 AM, Harry Putnam wrote:
Where is this preceding space coming from:
print FILE @array;
It's coming from your interpolation of the array in a string
(@array). It joins them, adding a space between them by default.
Try this:
print FILE join '', @array;
Harry Putnam wrote:
Probably painfully obvious...
Where is this preceding space coming from:
cat test_space.pl
^
#!/usr/local/bin/perl -w
open(FILE,file);
@array = (
line 1\n,
line 2\n,
line 3\n,
\n,
);
print
I have the following code to create a record into 2 tables in my SQL
database. The 2 tables are WorkRequest where WRID is the KEY/Unique
Identifier and File_details where FileID is the KEY/Unique Identifier but
has WRID as a KEY for linking to the Work Request table.
When I run this code, it
How do you get Perl to print an operator as a string? I want to print a
mathematical expression and then print the answer. I've tried every
combination that I can think of, but the script keeps getting aborted
due to compilation errors because string found where operator
expected. Well,
As some of you know, I'm attempting to create an internal system to
automate some stuff. This is how I plan to do this...
#!/usr/local/bin/perl
include email reading modules
include grep modules (if exists, not found any yet)
include MySQL writing modules
read email from pop mail box
take
James Edward Gray II [EMAIL PROTECTED] writes:
On Wednesday, June 4, 2003, at 11:17 AM, Harry Putnam wrote:
Where is this preceding space coming from:
print FILE @array;
It's coming from your interpolation of the array in a string
(@array). It joins them, adding a space between them by
Thank you! The separating comma was what I was leaving out. Also, I
wanted to actually print the variable name, so I escaped the $ symbol.
Deb
On Wednesday, June 4, 2003, at 12:00 PM, James Edward Gray II wrote:
On Wednesday, June 4, 2003, at 11:47 AM, deborah wrote:
Example: I want to print
Angel Gabriel wrote at Wed, 04 Jun 2003 17:44:28 +0100:
As some of you know, I'm attempting to create an internal system to
automate some stuff. This is how I plan to do this...
Year, that's exactly the way, you should start.
It will be possible to translate your pseudo code nearly 1:1 to
Paul Kraus wrote at Wed, 04 Jun 2003 09:49:10 -0400:
This may be asking for biased opinions but here goes anyways...
Is perl still a good choice for the web. For instance I need to setup a
couple sites that are going to be running on IIS. Is perl still a good
choice for speed ect...
In
From: Angel Gabriel [EMAIL PROTECTED]
As some of you know, I'm attempting to create an internal system to
automate some stuff. This is how I plan to do this...
#!/usr/local/bin/perl
include email reading modules
use Net::POP3;
#or
# use Mail::POP3Client;
include grep modules
This may sound trivial, but I am trying to declare and assign multiple
scalars to the same variable in the same statement. This is what I have:
#!/bin/perl -w
$a = $b = apple;# works
use strict;
my ($a = $b) = apple; # does not works
my $a = my $b = apple; # works .. but looks
I'm trying to figure out how to get a directory or text entry in Perl/Tk. I
am very new to this, but I can't figure out why this won't work. It works
maybe 1 time out of 10. The rest of the time I get this error:
Tk::Error: grab failed: window not viewable at
Jeff Westman wrote:
This may sound trivial, but I am trying to declare and assign multiple
scalars to the same variable in the same statement. This is what I
have:
#!/bin/perl -w
$a = $b = apple;# works
use strict;
my ($a = $b) = apple; # does not works
do:
my ($a,$b) =
On Wed, 04 Jun 2003 10:55:40 +1000, [EMAIL PROTECTED] (Paul
Morris) wrote:
I found this at:
http://www.suse.com/us/private/support/howto/secprog/secprog8.html
...but am having difficulty working it out, because it doesn't seem to
do what I think it should (and I may be the problem!).
To
On Wednesday, June 4, 2003, at 02:40 PM, Wagner, David --- Senior
Programmer Analyst --- WGO wrote:
Jeff Westman wrote:
This may sound trivial, but I am trying to declare and assign multiple
scalars to the same variable in the same statement. This is what I
have:
#!/bin/perl -w
$a = $b =
Would declaring all your variables with one my
suffice? then your first line before use strict;
should work. Like this:
my ($a, $b);
$a = $b = 'apple';
--- Jeff Westman [EMAIL PROTECTED] wrote:
This may sound trivial, but I am trying to declare
and assign multiple
scalars to the same
yeah, that works, but I was trying to do it in one statement as a scalar
assigment.
Thanks
JW
--- Stuart White [EMAIL PROTECTED] wrote:
Would declaring all your variables with one my
suffice? then your first line before use strict;
should work. Like this:
my ($a, $b);
$a = $b =
I like this solution! Cool
Thanks George and David.
JW
--- George Schlossnagle [EMAIL PROTECTED] wrote:
On Wednesday, June 4, 2003, at 02:40 PM, Wagner, David --- Senior
Programmer Analyst --- WGO wrote:
Jeff Westman wrote:
This may sound trivial, but I am trying to declare
Zentara wrote:
On Wed, 04 Jun 2003 10:55:40 +1000, [EMAIL PROTECTED] (Paul
Morris) wrote:
I found this at:
http://www.suse.com/us/private/support/howto/secprog/secprog8.html
...but am having difficulty working it out, because it doesn't seem to
do what I think it should (and I may be
try
my ($a,$b)=(apples,apples);
In the other example it was pulling values from an array of scalars.
In your example you are only providing 1 scalar for 2 scalar variables to
share.
Royce
The right word may be effective, but no word was ever as effective as a
rightly timed pause.
Jeff Westman wrote:
--- George Schlossnagle [EMAIL PROTECTED] wrote:
On Wednesday, June 4, 2003, at 02:40 PM, Wagner, David --- Senior
Programmer Analyst --- WGO wrote:
Jeff Westman wrote:
This may sound trivial, but I am trying to declare and assign
multiple scalars to the
On Tue, 3 Jun 2003 22:38:47 -0700 (PDT), [EMAIL PROTECTED]
(Saurabh Singhvi) wrote:
well i was trying to understand the regular
expressions in perl when i came across STDIN i
tried my best but i havent been able to get the
slightest idea on how the input thing works. The
editor i use is DzSoft.
Hi Rob,
--- Rob Dixon [EMAIL PROTECTED] wrote:
Jeff Westman wrote:
--- George Schlossnagle [EMAIL PROTECTED] wrote:
On Wednesday, June 4, 2003, at 02:40 PM, Wagner, David --- Senior
Programmer Analyst --- WGO wrote:
Jeff Westman wrote:
This may sound trivial, but I am
I'm trying to work out a regex that will do this:
Take an entire page's html: my $html_code; # all lines in thes one variable
And make any href's that are relative absolute by prepending $url into them:
$url = http://myclonesite.com;;
make a href=./documents/help.hml into a
Try using URI to figure out the absolute URL.
use URI;
# the base is the *current absolute page*
my $base_url = 'http://foo.com/documents/help.html';
print URI-new_abs('doc1.html', $base_url), \n;
print URI-new_abs('./doc2.html', $base_url), \n;
print URI-new_abs('../documents/doc3.html',
Zentara wrote:
On Tue, 3 Jun 2003 22:38:47 -0700 (PDT), [EMAIL PROTECTED]
(Saurabh Singhvi) wrote:
well i was trying to understand the regular
expressions in perl when i came across STDIN i
tried my best but i havent been able to get the
slightest idea on how the input thing works. The
Just wondering.
After I debug my perl scripts do I still need the strict and warnings
flags?
Does it hurt performance having them?
Does it hurt security removing them?
The scripts are for system admin only, not CGI where I would assume
they should be left in.
Thanx!
-Michael
--
To
John W. Krahn wrote:
Zentara wrote:
All programs have 3 default input-output filehandles,
^
5
they are STDIN, STDOUT, and STDERR.
ARGV, ARGVOUT
Or eight if you include stdin, stdout and stderr.
:-)
John
--
use Perl;
program
fulfillment
Michael Weber wrote:
Just wondering.
After I debug my perl scripts do I still need the strict and warnings
flags?
No.
Does it hurt performance having them?
No.
Does it hurt security removing them?
No.
The scripts are for system admin only, not CGI where I would assume
they should
That did the trcik! Nice and clean, thanks Rob
-Original Message-
From: Hanson, Rob [mailto:[EMAIL PROTECTED]
Sent: Wednesday, June 04, 2003 2:55 PM
To: Dan Muey; [EMAIL PROTECTED]
Subject: RE: Modify links
Try using URI to figure out the absolute URL.
use URI;
# the base
On Wednesday, June 4, 2003, at 03:45 PM, John W. Krahn wrote:
Does it hurt performance having them?
No.
Are we sure about this? I find it really hard to believe that
'warnings' isn't affecting performance on some level. I doubt it's a
big hit, but I would be very surprised if it doesn't cost
James Edward Gray II wrote:
On Wednesday, June 4, 2003, at 03:45 PM, John W. Krahn wrote:
Does it hurt performance having them?
No.
Are we sure about this? I find it really hard to believe that
'warnings' isn't affecting performance on some level. I doubt it's a
big hit, but I
On Wed, Jun 04, 2003 at 03:58:44PM -0500, James Edward Gray II wrote:
On Wednesday, June 4, 2003, at 03:45 PM, John W. Krahn wrote:
Does it hurt performance having them?
No.
Are we sure about this? I find it really hard to believe that
'warnings' isn't affecting performance on some
Folks,
Hit there! I just joined the list. Amazing what one can do with rudimentary
web-browsing skills.
Is there any easy way to append a line or lines to the *beginning* of a text
file? I've been through the Llama and Camel books, and the perldoc for Open,
and I can't seem to find an easy
- Original Message -
From: Josh Berkus [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Wednesday, June 04, 2003 11:17 AM
Subject: Appending to beginning of file?
Folks,
Hit there! I just joined the list. Amazing what one can do with
rudimentary
web-browsing skills.
Is there any easy
John, Beau,
This is a Frequently Asked Question and the answer can be found in
Perl's FAQs.
perldoc -q beginning of a file
Thanks! The perldoc -q technique is really good to know about.
Looks like I'd be able to do this if I was using 5.80, but I'm not :-(
So I'll just transfer the
On Wednesday, June 4, 2003, at 04:43 PM, Josh Berkus wrote:
Looks like I'd be able to do this if I was using 5.80, but I'm not :-(
Tie::File can be retrieved off of the CPAN for earlier versions of Perl
where is wasn't standard, if you can install modules.
James
--
To unsubscribe, e-mail:
James,
Tie::File can be retrieved off of the CPAN for earlier versions of Perl
where is wasn't standard, if you can install modules.
Yeah. Sadly, it's a vendor system :-( I can't install anything.
Happily, copying file content is very fast, even with 40,727 lines in the
file!
--
-Josh
Jeff Westman wrote:
Hi Rob,
--- Rob Dixon [EMAIL PROTECTED] wrote:
Jeff Westman wrote:
--- George Schlossnagle [EMAIL PROTECTED] wrote:
On Wednesday, June 4, 2003, at 02:40 PM, Wagner, David ---
Senior Programmer Analyst --- WGO wrote:
Jeff Westman wrote:
This
On Wed, Jun 04, 2003 at 03:58:44PM -0500 James Edward Gray II wrote:
On Wednesday, June 4, 2003, at 03:45 PM, John W. Krahn wrote:
Does it hurt performance having them?
No.
Are we sure about this? I find it really hard to believe that
'warnings' isn't affecting performance on some
80 matches
Mail list logo