[17269] in Perl-Users-Digest
Perl-Users Digest, Issue: 4691 Volume: 9
daemon@ATHENA.MIT.EDU (Perl-Users Digest)
Sun Oct 22 18:05:29 2000
Date: Sun, 22 Oct 2000 15:05:12 -0700 (PDT)
From: Perl-Users Digest <Perl-Users-Request@ruby.OCE.ORST.EDU>
To: Perl-Users@ruby.OCE.ORST.EDU (Perl-Users Digest)
Message-Id: <972252312-v9-i4691@ruby.oce.orst.edu>
Content-Type: text
Perl-Users Digest Sun, 22 Oct 2000 Volume: 9 Number: 4691
Today's topics:
[perl history] Where does &sub come from? (Pascal J. Bourguignon)
Re: A Simpler perlish way (Mark-Jason Dominus)
Re: Boolean query to Perl regexp match conversion (Gwyn Judd)
CGI and SHTML <greg2@surfaid.org>
Re: Exporting from a cgi script (Chris Fedde)
Re: help .. <gellyfish@gellyfish.com>
Re: Help with array concatenation <jeffp@crusoe.net>
Re: help with system () (Eric Bohlman)
how to debug perl script? <yah00204052@yahoo.com>
LWP: Search results from other Web pages (Scott Roberts)
Re: LWP: Search results from other Web pages <uri@sysarch.com>
Re: LWP: Search results from other Web pages (Eric Bohlman)
Multiple substitution (Billy)
Re: Multiple substitution (Chris Fedde)
pattern matching funky characters haigcd@my-deja.com
Re: pattern matching funky characters (Frank Lettau)
Re: Perl 5.005 or 5.6? (Ilya Zakharevich)
Re: Perl 5.005 or 5.6? <bart.lateur@skynet.be>
Re: Perl for PalmOS? (Logan Shaw)
Re: Perl for PalmOS? (Tony L. Svanstrom)
Re: Perl for PalmOS? (brian d foy)
Re: Perl interface for MySQL (Maggert)
Re: Problems with SCO V5 and Perl -> Memory core <gellyfish@gellyfish.com>
Re: still need help/beginner....pulling my hair ! <uri@sysarch.com>
Re: still need help/beginner....pulling my hair ! <godzilla@stomp.stomp.tokyo>
Re: still need help/beginner....pulling my hair ! <uri@sysarch.com>
textfield length <star@sonic.net>
why doesn't this work...... <miriamsmit@zonnet.nl>
Re: why doesn't this work...... <carvdawg@patriot.net>
Re: why doesn't this work...... (Chris Fedde)
Re: Writing multiple files to a particular directory <MPEDDLE@uk.ibm.com>
Re: Writing multiple files to a particular directory (Tad McClellan)
Re: Writing multiple files to a particular directory (Logan Shaw)
Re: xcopy a directory tree <prasanth_mudundi@yahoo.com>
Digest Administrivia (Last modified: 16 Sep 99) (Perl-Users-Digest Admin)
----------------------------------------------------------------------
Date: 23 Oct 2000 00:03:31 +0200
From: pjb@imaginet.fr (Pascal J. Bourguignon)
Subject: [perl history] Where does &sub come from?
Message-Id: <874s24h6to.fsf@triton.local.net>
Why the '&' character has been choosen to mark subroutine calls?
Does it come from another older language?
--
__Pascal Bourguignon__
() Join the ASCII ribbon campaign against html email and Microsoft attachments.
/\ Software patents are endangering the computer industry all around the world.
Join the LPF: http://lpf.ai.mit.edu/ http://petition.eurolinux.org/
------------------------------
Date: Sun, 22 Oct 2000 19:29:31 GMT
From: mjd@plover.com (Mark-Jason Dominus)
Subject: Re: A Simpler perlish way
Message-Id: <39f3401a.4ba7$1f2@news.op.net>
In article <8sb5ra$klk$1@plonk.apk.net>, Jody Fedor <Jodyman@usa.net> wrote:
>Mark-Jason Dominus wrote in message <39e89b72.3db$3dc@news.op.net>...
>>In article <8s9utn$3f5$1@plonk.apk.net>, Jody Fedor <Jodyman@usa.net>
>wrote:
>>>I've written the following Julian Date routine:
>>
>>Try this instead:
>>
>> $jd = (localtime())[7];
>>
>>That's all that is necessary.
>
> It was almost correct except 2000 is a leap year so today is
>288 instead of the 287 your answer gave.
I guess this just goes to show that you can lead a horse to water, but
you can't make him drink.
------------------------------
Date: Sun, 22 Oct 2000 21:49:08 GMT
From: tjla@guvfybir.qlaqaf.bet (Gwyn Judd)
Subject: Re: Boolean query to Perl regexp match conversion
Message-Id: <slrn8v6o6f.spp.tjla@thislove.dyndns.org>
I was shocked! How could Ilya Zakharevich <ilya@math.ohio-state.edu>
say such a terrible thing:
>[A complimentary Cc of this posting was sent to Gwyn Judd
><tjla@guvfybir.qlaqaf.bet>],
>who wrote in article <slrn8v4f5v.n56.tjla@thislove.dyndns.org>:
>> But /blah*/ matches the same strings as /blah.*/ which matches the same
>> strings as /blah/. Therefore they have the same meaning.
> ^^^^^^
>Make this /bla/ with suitable corrections in other places.
Whoops
--
Gwyn Judd (print `echo 'tjla@guvfybir.qlaqaf.bet' | rot13`)
Sex is just one damp thing after another.
------------------------------
Date: Sun, 22 Oct 2000 23:01:57 +0100
From: Greg Griffiths <greg2@surfaid.org>
Subject: CGI and SHTML
Message-Id: <39F363D5.61ABA558@surfaid.org>
I have been quite happily returning text/html from a CGI script, but
would like to return some SSI includes in my file, using a content type
of text/shtml fails, any ideas ?
------------------------------
Date: Sun, 22 Oct 2000 19:41:44 GMT
From: cfedde@fedde.littleton.co.us (Chris Fedde)
Subject: Re: Exporting from a cgi script
Message-Id: <YpHI5.33$7rc.172748800@news.frii.net>
In article <yWCI5.5317$bL1.116562@news6-win.server.ntlworld.com>,
Billy <billy@nospamforme.com> wrote:
>Is there a straightfowrd way to export a file from a cgi script?
>Ie, I'd like to be able to bring up a "Save..." dialog for the file
>to be exported automatically, rather than saving the info to a file
>and then generating a link to that file.
>Any pointers greatly appreciated.
>
>Billy.
>
Is this some kind of file upload technique? Try looking at the part of the
docs for CGI.pm that mentions this topic.
chris
--
This space intentionally left blank
------------------------------
Date: 22 Oct 2000 19:17:02 +0100
From: Jonathan Stowe <gellyfish@gellyfish.com>
Subject: Re: help ..
Message-Id: <8svauu$pr7$1@orpheus.gellyfish.com>
On Sun, 22 Oct 2000 16:22:27 GMT juneym@my-deja.com wrote:
> Hello!! i hav just downloaded and installed the Apache Server 1.3.14
> and ActiveState Perl. How do i setup my perl interpreter so it will run
> on my websever?? pls help..
>
Both the documentation for Apache and the documentation for Activestate
contain information about how to do this, you will want to read that first
if you have any further questions you will want to ask in the group
comp.infosystems.www.servers.ms-windows as this is not specific to Perl.
/J\
--
Jonathan Stowe |
<http://www.gellyfish.com> | This space for rent
|
------------------------------
Date: Sun, 22 Oct 2000 14:50:34 -0400
From: Jeff Pinyan <jeffp@crusoe.net>
Subject: Re: Help with array concatenation
Message-Id: <Pine.GSO.4.21.0010221449240.25707-100000@crusoe.crusoe.net>
On Oct 22, Jody Fedor said:
>push (@dates, @dates = unpack("A3" x ((length($cline)/3)+1), $cline));
>but still only returned the last row of dates.
Because you're using the SAME ARRAY in both places. You're setting @dates
to the return value of unpack and then pushing it to itself...
push @dates, unpack(...);
is sufficient.
--
Jeff "japhy" Pinyan japhy@pobox.com http://www.pobox.com/~japhy/
PerlMonth - An Online Perl Magazine http://www.perlmonth.com/
The Perl Archive - Articles, Forums, etc. http://www.perlarchive.com/
CPAN - #1 Perl Resource (my id: PINYAN) http://search.cpan.org/
------------------------------
Date: 22 Oct 2000 20:01:54 GMT
From: ebohlman@omsdev.com (Eric Bohlman)
Subject: Re: help with system ()
Message-Id: <8svh3i$186g$4@news.enteract.com>
Ren Maddox <ren.maddox@tivoli.com> wrote:
> Russell Smallwood <rsmallwood@mindspring.com> writes:
>> In article <MPG.145c47308969e261989683@news.giganews.com>,
>> rsmallwood@mindspring.com says...
>> >
>> > Perhaps I've not taken my medication today, but I'm having trouble
>> > passing a variable to an .exe file like this:
>> >
>> > system("d:\\my folder\\myprogram.exe $myvar");
> You can save yourself a little trouble by using regular slashes
> there. It works even on DOS/Windows...
...except when the file pathname is being passed to the command processor
(shell) which, unfortunately, is the case here.
------------------------------
Date: Sun, 22 Oct 2000 17:47:25 -0400
From: Zimmen Huang <yah00204052@yahoo.com>
Subject: how to debug perl script?
Message-Id: <39F3606C.5DF8F67F@yahoo.com>
Hi,
I'm completely new to the perl world. The following question might
be very elmentary.
I have a perl script in web server to handle forms. What is
procedure to debug it? Basically, I need to generate a web environment
so that the script receive data from the web input. Any pointer is
greatly appreciated.
Sincerely,
Zimmen Huang
------------------------------
Date: Sun, 22 Oct 2000 18:33:40 GMT
From: scott@heelspurs.castrate.this.part.com (Scott Roberts)
Subject: LWP: Search results from other Web pages
Message-Id: <39f32b23.25002928@news.knology.net>
I need a mini search engine that parses my links page of other web sites, searches those pages for a user-supplied keyword, and immediately returns each paragraph of the searched pages that
contains the search phrase (with the phrase in bold blue, missing html problems fixed, and a link to the original page). Here is my code for the search and display for a particular link.
As an example, I searched the perl FAQ for "LWP" and the results returned are shown below. Does anyone have better code for this?
#!/usr/bin/perl -w
use LWP::Simple;
$search_phrase="LWP";
$page_to_search="http://www.perl.com/CPAN-local/doc/FAQs/FAQ/PerlFAQ.html";
$temp_file="/www/mywebsite/temp.txt";
$u=getstore($page_to_search,$temp_file);
open(F,"$temp_file") || die $!;
undef $/;
$u=<F>;
close F;
unlink $temp_file;
$u=~s/\n/ /g;
$u=~s%(<h.>|<br>|<p>|<li>)%\n$1%gi;
@u=split "\n", $u;
print "Content-type: text/html\n\n<html><body>";
print "Found the following in <b><a href=\"$page_to_search\">$page_to_search</a> ....";
foreach $line (@u) {
if ($line=~s%$search_phrase%<b><font color=blue>$search_phrase</font></b>%gi) {
print "$line<p></li></ul></b></font></font></center></a></script></h4></h3></h2></h1></table></blockquote>";
}
}
$/="\n";
exit;
############# RESULTS BELOW ########
Found the following in http://www.perl.com/CPAN-local/doc/FAQs/FAQ/PerlFAQ.html ....
Where can I learn about CGI or Web programming in Perl?
For modules, get the CGI or LWP modules from CPAN. For textbooks, see the two especially dedicated to web stuff in the question on books. For problems and questions related to the web, like
``Why do I get 500 Errors'' or ``Why doesn't it run from the browser right when it runs fine on the command line'', see these sources:
This version does not adjust relative URLs, understand alternate bases, deal with HTML comments, or accept URLs themselves as arguments. It also runs about 100x faster than a more
``complete'' solution using the LWP suite of modules, such as the http://www.perl.com/CPAN/authors/Tom_Christiansen/scripts/xurl.gz program.
How do I fetch an HTML file?
Use the LWP::Simple module available from CPAN, part of the excellent libwww-perl (LWP) package. On the other hand, and if you have the lynx text-based HTML browser installed on your system,
this isn't too bad:
Encoding is a bit harder, because you can't just blindly change all the non-alphanumunder character (\W) into their hex escapes. It's important that characters with special meaning like /
and ? not be translated. Probably the easiest way to get this right is to avoid reinventing the wheel and just use the URI::Escape module, which is part of the libwww-perl package (LWP)
available from CPAN.
How do I fetch/put an FTP file?
LWP::Simple (available from CPAN) can fetch but not put. Net::FTP (also available from CPAN) is more complex but can put as well as fetch.
------------------------------
Date: Sun, 22 Oct 2000 19:51:44 GMT
From: Uri Guttman <uri@sysarch.com>
Subject: Re: LWP: Search results from other Web pages
Message-Id: <x7vgukodrk.fsf@home.sysarch.com>
>>>>> "SR" == Scott Roberts <scott@heelspurs.castrate.this.part.com> writes:
SR> #!/usr/bin/perl -w
the -w is good but you should also use strict ;
SR> use LWP::Simple;
SR> $u=getstore($page_to_search,$temp_file);
why are you calling getstore instead of get? just slurp it into a
variable and mung it there. no need to save to and read from a temp file.
SR> $u=~s/\n/ /g;
SR> $u=~s%(<h.>|<br>|<p>|<li>)%\n$1%gi;
there is no need to use % delims above. save that for when you must have
/ inside there. and paired delims can be more readable in many cases.
SR> foreach $line (@u) {
SR> if ($line=~s%$search_phrase%<b><font color=blue>$search_phrase</font></b>%gi) {
SR> print "$line<p></li></ul></b></font></font></center></a></script></h4></h3></h2></h1></table></blockquote>";
you can make those much more readable.
if ( $line =~ s{$search_phrase}
{<b><font
color=blue>$search_phrase</font></b>}gi) {
print <<HTML ;
$line<p>
</li></ul></b></font></font></center></a>
</script></h4></h3></h2></h1></table></blockquote>
HTML
uri
--
Uri Guttman --------- uri@sysarch.com ---------- http://www.sysarch.com
SYStems ARCHitecture, Software Engineering, Perl, Internet, UNIX Consulting
The Perl Books Page ----------- http://www.sysarch.com/cgi-bin/perl_books
The Best Search Engine on the Net ---------- http://www.northernlight.com
------------------------------
Date: 22 Oct 2000 20:08:08 GMT
From: ebohlman@omsdev.com (Eric Bohlman)
Subject: Re: LWP: Search results from other Web pages
Message-Id: <8svhf8$186g$5@news.enteract.com>
Scott Roberts <scott@heelspurs.castrate.this.part.com> wrote:
> $u=getstore($page_to_search,$temp_file);
> open(F,"$temp_file") || die $!;
> undef $/;
> $u=<F>;
> close F;
> unlink $temp_file;
No need to use a temporary file:
$u=get($page_to_search);
will do everything you want with a minimum of fuss.
------------------------------
Date: Sun, 22 Oct 2000 18:43:18 GMT
From: NOSPAM.billy@easynet.be (Billy)
Subject: Multiple substitution
Message-Id: <39f333f4.79653438@news.easynet.be>
Hello !
I've got a newbie question :
I've got files in which names with multiple spaces, and I want to
change those spaces to %20. But with s/\s /%20/ It just change
the first space. How can I write it ?
Sorry for my poor english
Thank you very much in advance !
------------------------------
Date: Sun, 22 Oct 2000 19:08:07 GMT
From: cfedde@fedde.littleton.co.us (Chris Fedde)
Subject: Re: Multiple substitution
Message-Id: <rWGI5.30$7rc.172748800@news.frii.net>
In article <39f333f4.79653438@news.easynet.be>,
Billy <NOSPAM.billy@easynet.be> wrote:
>Hello !
>
>I've got a newbie question :
>
>I've got files in which names with multiple spaces, and I want to
>change those spaces to %20. But with s/\s /%20/ It just change
>the first space. How can I write it ?
>
s/\s/%20/g;
good luck
chris
--
This space intentionally left blank
------------------------------
Date: Sun, 22 Oct 2000 19:59:17 GMT
From: haigcd@my-deja.com
Subject: pattern matching funky characters
Message-Id: <8svguj$fs7$1@nnrp1.deja.com>
Hi,
I've been messing with a set of files that I need to parse into some
usuable form, and I've run into a problem that I can't seem to solve.
The files are originally large wordperfect files, which we then
convert to Word, so that we can use the word file -> HTML conversion
function before we parse (unfortunately the information depends on
formatting like underline/italics, so we need some way to indicate that
to the conversion script).
So we put these files onto a Solaris box to be converted to XML,
using this program that I'm working on. First thing we do is convert
them to latin-1 encoding (from latin-1-dos or whatever windows uses) in
emacs.
There are certain funky escape sequences in the HTML that I
absolutely need to match, but I can't. For example, the original word
perfect document contains the astericks character in a bunch of places.
In the HTML, it comes out as "\253". Here's an example of the
beautiful Word HTML:
<span style='font-size:6.0pt;font-family:Wingdings;mso-ascii-font-
family:"CG Times"; mso-hansi-font-family:"CG Times";mso-char-
type:symbol;mso-symbol-font-family: Wingdings'><span style='mso-char-
type:symbol;mso-symbol-font-family:Wingdings'>\253<span style='mso-char-
type:symbol;mso-symbol-font-family:Wingdings'>\253</span>
So, I know that that "\253" character is supposed to be an astericks,
but neither "\*" nor "\253" matches it. I had a similar problem
with "\240", which appears in the original file as some sort of space,
but I had no luck matching it with "\240" or "\s", just "\W".
One other thing - the \253 charachter appears in the program more as
the character "<<" (ascii 171 i think), and in less it appears as a
highlighted "<AB>". So I guess it's some sort of encoding issue that
I'm not familiar with.
There has to be some way to match this stuff, right?
Any help would be greatly appreciated.
Thanks,
Haig
Sent via Deja.com http://www.deja.com/
Before you buy.
------------------------------
Date: 22 Oct 2000 20:37:28 GMT
From: killing_fountains@gmx.de (Frank Lettau)
Subject: Re: pattern matching funky characters
Message-Id: <8FD5EE236killingfountainsgmxd@137.226.144.7>
haigcd@my-deja.com wrote in comp.lang.perl.misc:
>Hi,
Hi there.
> I've been messing with a set of files that I need to parse into some
>usuable form, and I've run into a problem that I can't seem to solve.
> The files are originally large wordperfect files, which we then
>convert to Word, so that we can use the word file -> HTML conversion
>function before we parse (unfortunately the information depends on
>formatting like underline/italics, so we need some way to indicate that
>to the conversion script).
> So we put these files onto a Solaris box to be converted to XML,
>using this program that I'm working on. First thing we do is convert
>them to latin-1 encoding (from latin-1-dos or whatever windows uses) in
>emacs.
I don't know anything abour the html word produces, but i've been
working on a similar problem. I saved the word document as
Rich Text Format(RTF), which is also a plain text file. If the structure
of your document is not to complicated, you don't even need a RFC to
parse it. However, AFAIK the RFC can be found on the net.
Note: Surprisingly the RTF produced by word and wordpad are different,
try what suits you better.
>So, I know that that "\253" character is supposed to be an astericks,
>but neither "\*" nor "\253" matches it. I had a similar problem
>with "\240", which appears in the original file as some sort of space,
>but I had no luck matching it with "\240" or "\s", just "\W".
Try "\\235". You have to escape the backslash to match it.
"perldoc perlre" is your friend
>One other thing - the \253 charachter appears in the program more as
>the character "<<" (ascii 171 i think), and in less it appears as a
>highlighted "<AB>". So I guess it's some sort of encoding issue that
>I'm not familiar with.
See RTF hint above.
hth,
Frank
--
Frank Lettau <killing_fountains@gmx.de>
"Sometimes truth is stranger than fiction"
- Brett Gurewitz
------------------------------
Date: 22 Oct 2000 19:23:32 GMT
From: ilya@math.ohio-state.edu (Ilya Zakharevich)
Subject: Re: Perl 5.005 or 5.6?
Message-Id: <8sverk$4k3$1@charm.magnus.acs.ohio-state.edu>
[A complimentary Cc of this posting was sent to Bart Lateur
<bart.lateur@skynet.be>],
who wrote in article <mel5vskup9satsghrmd7u08e4uqgpdcrtv@4ax.com>:
> You cannot use them both at once. That's BAD. The binary modules are not
> compatible, but the files DO have the same name. So if you have a script
> in perl 5.005 that uses a compiled module Foo::Bar, that will have
> loaded the 5.005 version of Bar.dll.
>
> Now, try to run a script in Perl 5.6 while the other one is still
> running, that also uses the module Foo::Bar. This will attempt to load
> the 5.6 version of Bar.dll . But Windows can only run one program (or
> DLL) with the same name at the same time. So this will also use the DLL
> from 5.005. Net effect: crash.
Depends on who you compile your Perl. It is not required that dll for
for Foo::Bar is named Bar.dll. In fact, e.g., in the OS/2 port the
DLL will be named like BarFS.dll, here "FS" is a "trace" of a
checksum. The checksum depends on "Foo", on capitalization of "Bar",
*and* on the Perl version.
The dependence on the version is "additive", so it is easy to ensure
that there is no collision with older versions. Similarly for Perl0E3A.dll.
If your Win* port does not do something like this, it is broken.
> Worse: if you have a module Foo::Bar that uses *a* Bar.dll, and a module
> Baz::Bar that uses a Bar.dll, well, you can't use both module at the
> same time.
Same.
Ilya
------------------------------
Date: Sun, 22 Oct 2000 22:03:36 GMT
From: Bart Lateur <bart.lateur@skynet.be>
Subject: Re: Perl 5.005 or 5.6?
Message-Id: <juo6vssft8ii1to0h02fl1cdpr1jv131ro@4ax.com>
Ilya Zakharevich wrote:
>> But Windows can only run one program (or
>> DLL) with the same name at the same time. So this will also use the DLL
>> from 5.005. Net effect: crash.
>
>Depends on who you compile your Perl. It is not required that dll for
>for Foo::Bar is named Bar.dll. In fact, e.g., in the OS/2 port the
>DLL will be named like BarFS.dll, here "FS" is a "trace" of a
>checksum. The checksum depends on "Foo", on capitalization of "Bar",
>*and* on the Perl version.
>
>If your Win* port does not do something like this, it is broken.
It does not. I just checked: both ActiveState Perl 5.6.0 and IndigoStar
Perl 5.6.0 use the same, bare, names for the prcompiled DLL's.
I agree that this is very careless.
--
Bart.
------------------------------
Date: 22 Oct 2000 13:32:43 -0500
From: logan@cs.utexas.edu (Logan Shaw)
Subject: Re: Perl for PalmOS?
Message-Id: <8svbsb$p7u$1@provolone.cs.utexas.edu>
In article <IVFI5.6$s62.131@client>, Dr. Joel M. Hoffman <joel@exc.com> wrote:
>Carrying a web server with you could actually be very useful. I'd
>love to be able to do it on trips I lead, so that I could post trip
>progress to a website and let people know what's going on.
Of course, you could do this by remotely accessing another web server.
Or, you could do it by remotely accessing a filesystem that the web
server can access too (a la AFS and DFS).
- Logan
------------------------------
Date: Sun, 22 Oct 2000 21:53:15 GMT
From: tony@svanstrom.com (Tony L. Svanstrom)
Subject: Re: Perl for PalmOS?
Message-Id: <1eixgin.1jtcwyhsosjuiN%tony@svanstrom.com>
Logan Shaw <logan@cs.utexas.edu> wrote:
> In article <IVFI5.6$s62.131@client>, Dr. Joel M. Hoffman <joel@exc.com> wrote:
> >Carrying a web server with you could actually be very useful. I'd love
> >to be able to do it on trips I lead, so that I could post trip progress
> >to a website and let people know what's going on.
>
> Of course, you could do this by remotely accessing another web server. Or,
> you could do it by remotely accessing a filesystem that the web server can
> access too (a la AFS and DFS).
Which actually would work, which it won't if you've got it on your Palm
and you don't have a static IPaddress and a 24/7-connection to it.
/Tony
--
/\___/\ Who would you like to read your messages today? /\___/\
\_@ @_/ Protect your privacy: <http://www.pgpi.com/> \_@ @_/
--oOO-(_)-OOo---------------------------------------------oOO-(_)-OOo--
on the verge of frenzy - i think my mask of sanity is about to slip
---ôôô---ôôô-----------------------------------------------ôôô---ôôô---
\O/ \O/ ©99-00 <http://www.svanstrom.com/?ref=news> \O/ \O/
------------------------------
Date: Sun, 22 Oct 2000 17:55:59 -0400
From: brian@smithrenaud.com (brian d foy)
Subject: Re: Perl for PalmOS?
Message-Id: <brian-ya02408000R2210001755590001@news.panix.com>
In article <IVFI5.6$s62.131@client>, joel@exc.com (Dr. Joel M. Hoffman) posted:
> >It's coming I'm sure. Wouldn't be surprised to see this within two years.
> >That would be way cool to carry my web server with me? Am I a geek or am
> >I a geek? :)
> Carrying a web server with you could actually be very useful. I'd
> love to be able to do it on trips I lead, so that I could post trip
> progress to a website and let people know what's going on.
but then, you could do that without carrying a web server with you.
--
brian d foy
CGI Meta FAQ <URL:http://www.smithrenaud.com/public/CGI_MetaFAQ.html>
Perl Mongers <URL:http://www.perl.org/>
------------------------------
Date: Sun, 22 Oct 2000 20:38:42 GMT
From: mag@ionet.net (Maggert)
Subject: Re: Perl interface for MySQL
Message-Id: <39f34fde.38376913@news.ionet.net>
On Sun, 22 Oct 2000 16:52:41 GMT,
scott@heelspurs.castrate.this.part.com (Scott Roberts) wrote:
>Has anyone tried MysqlMan? It's a Perl version of PHPMySQL. A web
>interface for administrating your MySQL databases.
Yes, it's an excellent script.
>Any pro/con comments about? Security issues?
Of course you need to lock this one up in a secure directory
because you wouldn't want me to drop all your tables wold you?
MP
------------------------------
Date: 22 Oct 2000 21:32:51 +0100
From: Jonathan Stowe <gellyfish@gellyfish.com>
Subject: Re: Problems with SCO V5 and Perl -> Memory core
Message-Id: <8svitj$rfq$1@orpheus.gellyfish.com>
On Fri, 20 Oct 2000 13:04:45 +0200 Peter Grohmann wrote:
> Hi all!
> I tried to compile Perl 5.6.0 on a SCO V5 System. But i can't make a running
> perl. I get memory core. What are possible causes? I only typed in sh
> Configure -de
I have succesfully built 5.6.0 on SCO Openserver 5.0.5 - you will have to
supply a bit more information, such as are you using the SCO compiler
or gcc, what version of Opnserver, if you are using the SCO compiler
have you get the latest patches etc etc ...
/J\
--
Jonathan Stowe |
<http://www.gellyfish.com> | This space for rent
|
------------------------------
Date: Sun, 22 Oct 2000 19:29:30 GMT
From: Uri Guttman <uri@sysarch.com>
Subject: Re: still need help/beginner....pulling my hair !
Message-Id: <x7y9zgoesm.fsf@home.sysarch.com>
>>>>> "TM" == Tad McClellan <tadmc@metronet.com> writes:
TM> On Sun, 22 Oct 2000 00:17:09 -0400, none <none@nospam.com> wrote:
>> I have 10
>> years of Cobol, CICS, VSAM, DB2 and would blow your doors off there and make
>> you look like a fool.
TM> Oh. Your daddy can beat up Uri's daddy.
considering my dad is dead, that wouldn't be too hard.
TM> Snappy comeback. We are impressed with you now.
highly impressed. anyone who codes cobol must be superior in all computer
ways.
moronzilla should take up cobol next and improve their world.
uri
--
Uri Guttman --------- uri@sysarch.com ---------- http://www.sysarch.com
SYStems ARCHitecture, Software Engineering, Perl, Internet, UNIX Consulting
The Perl Books Page ----------- http://www.sysarch.com/cgi-bin/perl_books
The Best Search Engine on the Net ---------- http://www.northernlight.com
------------------------------
Date: Sun, 22 Oct 2000 12:48:01 -0700
From: "Godzilla!" <godzilla@stomp.stomp.tokyo>
Subject: Re: still need help/beginner....pulling my hair !
Message-Id: <39F34471.33C2231D@stomp.stomp.tokyo>
Uri Guttman wrote:
> Tad McClellan wrote:
> > none wrote:
> moronzilla should take up cobol next and improve their world.
Why would I move over to cobol when I can remain
here and bask in adulation from my adoring fans,
such as you?
Godzilla!
------------------------------
Date: Sun, 22 Oct 2000 20:11:50 GMT
From: Uri Guttman <uri@sysarch.com>
Subject: Re: still need help/beginner....pulling my hair !
Message-Id: <x7snpoocu1.fsf@home.sysarch.com>
>>>>> "G" == Godzilla! <godzilla@stomp.stomp.tokyo> writes:
G> Why would I move over to cobol when I can remain
G> here and bask in adulation from my adoring fans,
G> such as you?
i adore you so much i want to share you with the other language
groups. i am sure one of them will support you in the luxury you so
richly deserve.
uri
--
Uri Guttman --------- uri@sysarch.com ---------- http://www.sysarch.com
SYStems ARCHitecture, Software Engineering, Perl, Internet, UNIX Consulting
The Perl Books Page ----------- http://www.sysarch.com/cgi-bin/perl_books
The Best Search Engine on the Net ---------- http://www.northernlight.com
------------------------------
Date: Sun, 22 Oct 2000 21:10:22 GMT
From: arthur <star@sonic.net>
Subject: textfield length
Message-Id: <B61754A6.96F1%star@sonic.net>
Good Day,
I have a form, but I would like to make the textfield longer (where you
enter the info on the page). How do I do that?
start_form,
"What are your questions? ",textfield('question'),
submit,
end_form,
~arthur
star@sonic.net
Thanks in advance!
------------------------------
Date: Sun, 22 Oct 2000 21:08:24 +0200
From: "Michel Wouterse" <miriamsmit@zonnet.nl>
Subject: why doesn't this work......
Message-Id: <QSGI5.24794$tL4.292318@zonnet-reader-1>
use LWP::UserAgent;
use HTTP::Request::Common qw(POST);
$url = 'http://www.myserver/login.html';
@param = (
'username' => 'myname',
'password' => 'mypwd' );
$browser = new LWP::UserAgent;
$htres = $browser->request(POST $url, \@param);
print "content-type:text/html\n\n";
print "<HTML><BODY>";
print "</BODY></HTML>";
Code above should post username and password to login.html
it, though....returns nothing.....
What's wrong?????
Thanks,
Michel
------------------------------
Date: Sun, 22 Oct 2000 15:39:38 -0400
From: H C <carvdawg@patriot.net>
Subject: Re: why doesn't this work......
Message-Id: <39F3427A.457321AD@patriot.net>
Maybe b/c @param shouldn't be an array, but a hash...or
you've set up your @param array incorrectly.
Michel Wouterse wrote:
> use LWP::UserAgent;
> use HTTP::Request::Common qw(POST);
> $url = 'http://www.myserver/login.html';
> @param = (
> 'username' => 'myname',
> 'password' => 'mypwd' );
> $browser = new LWP::UserAgent;
> $htres = $browser->request(POST $url, \@param);
> print "content-type:text/html\n\n";
> print "<HTML><BODY>";
> print "</BODY></HTML>";
>
> Code above should post username and password to login.html
> it, though....returns nothing.....
>
> What's wrong?????
>
> Thanks,
>
> Michel
--
Q: Why is Batman better than Bill Gates?
A: Batman was able to beat the Penguin.
------------------------------
Date: Sun, 22 Oct 2000 19:36:06 GMT
From: cfedde@fedde.littleton.co.us (Chris Fedde)
Subject: Re: why doesn't this work......
Message-Id: <GkHI5.31$7rc.171309056@news.frii.net>
In article <QSGI5.24794$tL4.292318@zonnet-reader-1>,
Michel Wouterse <miriamsmit@zonnet.nl> wrote:
>use LWP::UserAgent;
>use HTTP::Request::Common qw(POST);
>$url = 'http://www.myserver/login.html';
>@param = (
>'username' => 'myname',
>'password' => 'mypwd' );
>$browser = new LWP::UserAgent;
>$htres = $browser->request(POST $url, \@param);
>print "content-type:text/html\n\n";
>print "<HTML><BODY>";
>print "</BODY></HTML>";
>
>Code above should post username and password to login.html
>it, though....returns nothing.....
>
>What's wrong?????
>
This code is just odd. What do you expect it to do? It doesn't send
anything to a server. It just creates a couple objects then prints out a
bit of HTML.
Somewhere in there you need an expression like
$res = $browser->request($htres)
Then you need to do something with the $res.
--
This space intentionally left blank
------------------------------
Date: Sun, 22 Oct 2000 19:30:07 -0000
From: Mark <MPEDDLE@uk.ibm.com>
Subject: Re: Writing multiple files to a particular directory
Message-Id: <sv6g1v1l1r6v3d@corp.supernews.com>
Thanks all who replied to my question, i am confident i should be able to
solve the problem now. Just proves how well help.com works.
Thanks again,
Mark
--
Posted via CNET Help.com
http://www.help.com/
------------------------------
Date: Sun, 22 Oct 2000 14:48:02 -0400
From: tadmc@metronet.com (Tad McClellan)
Subject: Re: Writing multiple files to a particular directory
Message-Id: <slrn8v6dj2.17n.tadmc@magna.metronet.com>
On Sun, 22 Oct 2000 19:30:07 -0000, Mark <MPEDDLE@uk.ibm.com> wrote:
>Just proves how well help.com works.
What is help.com, and what relationship does it have to this newsgroup?
--
Tad McClellan SGML consulting
tadmc@metronet.com Perl programming
Fort Worth, Texas
------------------------------
Date: 22 Oct 2000 16:31:45 -0500
From: logan@cs.utexas.edu (Logan Shaw)
Subject: Re: Writing multiple files to a particular directory
Message-Id: <8svmc1$pt0$1@provolone.cs.utexas.edu>
In article <slrn8v6dj2.17n.tadmc@magna.metronet.com>,
Tad McClellan <tadmc@metronet.com> wrote:
>What is help.com, and what relationship does it have to this newsgroup?
Apparently help.com (which is part of CNET) is advertising
comp.lang.perl.misc as part of its "Help Centers". It what could be
construed as the minimal decency to note that it's "Usenet Q & A",
although the problem with that is that it implies this newsgroup is
here mainly for the purposes of Q&A, which is inaccurate.
*sigh*. Previously I was neutral towards CNET; now I'm not feeling
quite the same way about them.
Anyway, for those who want to see for themselves, just go to
http://www.help.com/ , type "perl" into the search box, and then clock
on the Topic "Software : Programming Languages : Perl" under the "Help
Centers" heading.
- Logan
------------------------------
Date: Sun, 22 Oct 2000 14:52:44 -0400
From: prasanth Mudundi <prasanth_mudundi@yahoo.com>
Subject: Re: xcopy a directory tree
Message-Id: <39F3377C.6873556A@yahoo.com>
use FileOp.pm Workes real great.
available @ cpan.org
you might have to install win32,win32-api,
lazy.pm along with FileOp.pm to work.
goodluck
prasanth mudundi
Jan van Mansum wrote:
>
> Hello group,
>
> I want to copy a whole directory tree from a given base directory
> downward. Is there a function in some standard module that will do that
> for me? Or is it even a language feature? If neither of these, can
> someone tell me how I create a directory with Perl (on the Win32
> platform)?
>
> Thanks for an answer to any of the above questions.
>
> Regards,
>
> Jan van Mansum
------------------------------
Date: 16 Sep 99 21:33:47 GMT (Last modified)
From: Perl-Users-Request@ruby.oce.orst.edu (Perl-Users-Digest Admin)
Subject: Digest Administrivia (Last modified: 16 Sep 99)
Message-Id: <null>
Administrivia:
The Perl-Users Digest is a retransmission of the USENET newsgroup
comp.lang.perl.misc. For subscription or unsubscription requests, send
the single line:
subscribe perl-users
or:
unsubscribe perl-users
to almanac@ruby.oce.orst.edu.
| NOTE: The mail to news gateway, and thus the ability to submit articles
| through this service to the newsgroup, has been removed. I do not have
| time to individually vet each article to make sure that someone isn't
| abusing the service, and I no longer have any desire to waste my time
| dealing with the campus admins when some fool complains to them about an
| article that has come through the gateway instead of complaining
| to the source.
To submit articles to comp.lang.perl.announce, send your article to
clpa@perl.com.
To request back copies (available for a week or so), send your request
to almanac@ruby.oce.orst.edu with the command "send perl-users x.y",
where x is the volume number and y is the issue number.
For other requests pertaining to the digest, send mail to
perl-users-request@ruby.oce.orst.edu. Do not waste your time or mine
sending perl questions to the -request address, I don't have time to
answer them even if I did know the answer.
------------------------------
End of Perl-Users Digest V9 Issue 4691
**************************************