[10716] in Perl-Users-Digest
Perl-Users Digest, Issue: 4315 Volume: 8
daemon@ATHENA.MIT.EDU (Perl-Users Digest)
Sat Nov 28 21:07:11 1998
Date: Sat, 28 Nov 98 18:00:21 -0800
From: Perl-Users Digest <Perl-Users-Request@ruby.OCE.ORST.EDU>
To: Perl-Users@ruby.OCE.ORST.EDU (Perl-Users Digest)
Perl-Users Digest Sat, 28 Nov 1998 Volume: 8 Number: 4315
Today's topics:
anything more robust than GIFgraph? <vernal@fas.harvard.edu>
Re: anything more robust than GIFgraph? (brian d foy)
Re: CGI-Scripts <mjd@sgi.net>
Re: CGI-Scripts (brian d foy)
Re: Change IP Address <gellyfish@btinternet.com>
Re: Crypt command (brian d foy)
Help -- remove white spaces from end of a string <dales@enhanced-performance.com>
Re: Help -- remove white spaces from end of a string (Clay Irving)
Re: Help -- remove white spaces from end of a string <gellyfish@btinternet.com>
Re: Help -- remove white spaces from end of a string (Tad McClellan)
Re: Hiding "To:" field (brian d foy)
Re: html vs. cgi via perl (Abigail)
Re: I have a question about Perl and CgI? <doug@zerolimits.com>
Re: netscape bookmark <gellyfish@btinternet.com>
Re: Newbie: Need to split comma-delimited data into sca (Simon Whitaker)
Newbie: Search Engine (Matthias Wiehl)
Re: Perl CGI 500 Server Error on PWS <gellyfish@btinternet.com>
Re: quote & print confusion <Tony.Curtis+usenet@vcpc.univie.ac.at>
Re: Round with Perl <mjd@sgi.net>
Re: Round with Perl (Larry Rosler)
Re: Round with Perl <gellyfish@btinternet.com>
Re: statement as "#include" in C (Ken Williams)
Re: URGENT...Help Required! <mjd@sgi.net>
using XS for string interpolation (Ken Williams)
Re: Why I can execute a command in Perl but not in CGI/ <gellyfish@btinternet.com>
Re: Win32::API programming <carvdawg@patriot.net>
Winnipeg.pm meeting (Randy Kobes)
Writing to password protected directory <sdenisov@chat.ru>
Special: Digest Administrivia (Last modified: 12 Mar 98 (Perl-Users-Digest Admin)
----------------------------------------------------------------------
Date: 28 Nov 1998 21:32:56 GMT
From: Michael S Vernal <vernal@fas.harvard.edu>
Subject: anything more robust than GIFgraph?
Message-Id: <73pq68$t2$1@news.fas.harvard.edu>
Hi... I'm need some kind of package that'll spew out nice looking
graphs. It's not for my own personal use--my company wants prettyness,
not functionality. Anyway, if there is anything more robust out there,
other than GIFgraph, could you e-mail me?
Alternatively, do you know of any other program I might be able to use
to spew out simple but pretty bar graphs? I want something resembling
an Excel graph, but preferrably not a Microsoft solution. Anyway,
thanks...
-mike
--
/*
* Michael Vernal
* vernal@fas.harvard.edu
*
* http://www.fas.harvard.edu/~vernal/
*/
------------------------------
Date: Sat, 28 Nov 1998 21:05:48 -0500
From: comdog@computerdog.com (brian d foy)
Subject: Re: anything more robust than GIFgraph?
Message-Id: <comdog-ya02408000R2811982105480001@news.panix.com>
In article <73pq68$t2$1@news.fas.harvard.edu>, Michael S Vernal <vernal@fas.harvard.edu> posted:
> Hi... I'm need some kind of package that'll spew out nice looking
> graphs. It's not for my own personal use--my company wants prettyness,
> not functionality.
it's not so hard to tweak GIFgraph to make graphs that look like
what you want. what do you want that GIFgraph doesn't give you?
perhaps someone could add that for you.
> Anyway, if there is anything more robust out there,
> other than GIFgraph, could you e-mail me?
GIFgraph is pretty robust. perhaps you meant more feature-filled?
perhaps you want Image::Magick and ghostscript. but then you have to
write the plotting routines yourself.
--
brian d foy <comdog@computerdog.com>
CGI Meta FAQ <URL:http://computerdog.com/CGI_MetaFAQ.html>
------------------------------
Date: Sat, 28 Nov 1998 18:36:17 -0500
From: "Spider" <mjd@sgi.net>
Subject: Re: CGI-Scripts
Message-Id: <4P%72.1368$Ga.268261@news.sgi.net>
Guten Tag Heiko,
We provide hosting for CGI and Perl scripts in your own cgi-bin at fair
prices.
Since i program a lot i like my servers to support all the best features.
You should always test your scripts on your own server to be sure they work
correctly first. Win NT is about as easy as win95 to learn.
www.2webspinners.com
You can enter our web design contest and show off your scripting and
dynamics and win your own domain name, space for life, plus a lot more of
cool stuff. Tell all your friends that develop to check it out at
http://guild.2webspinners.com
-Michael
Spider@2WebSpinners.com
Heiko wrote in message <73f3kb$ljl$1@news.vossnet.de>...
>Hi there!
>
>I4m working on my own CGI-Scripts but I can4t find a server on which I can
>freely execute my own scripts. So, are there any servers like that
>available?
>
>Bye bye,
> Heiko
>
>
------------------------------
Date: Sat, 28 Nov 1998 20:56:20 -0500
From: comdog@computerdog.com (brian d foy)
Subject: Re: CGI-Scripts
Message-Id: <comdog-ya02408000R2811982056200001@news.panix.com>
In article <4P%72.1368$Ga.268261@news.sgi.net>, "Spider" <arachne@2webspinners.com> posted:
> You can enter our web design contest and show off your scripting and
> dynamics and win your own domain name, space for life, plus a lot more of
> cool stuff.
i should spin all of my contracts as contests too ;)
but what i really want to know is when your company gets bought
out, does the winner still have "space", or does "for life" mean
"until we aren't called by the same name or run bu the same people
anymore".
note to the wise: if you are good enough to win, you are good
enough to get paid real money. you can have all of that other
stuff for $19.95 a month and the price of Linux and Perl and Apache.
--
brian d foy <comdog@computerdog.com>
CGI Meta FAQ <URL:http://computerdog.com/CGI_MetaFAQ.html>
Perl Mongers gives the same stuff to Perl user groups for *free*
no contest necessary.
------------------------------
Date: 29 Nov 1998 00:20:36 -0000
From: Jonathan Stowe <gellyfish@btinternet.com>
Subject: Re: Change IP Address
Message-Id: <73q40k$1e1$1@gellyfish.btinternet.com>
On Fri, 27 Nov 1998 10:44:30 GMT David Cantrell <NukeEmUp@ThePentagon.com> wrote:
> On Thu, 26 Nov 1998 09:27:19 -0800, "JEFF GOODE"
> <JEFEBUENO@prodigy.net> enlightened us thusly:
>
>>I need a script to change the IP Address in NT from the DOS prompt. Any
>>suggestions would be greatly appreciated.
>
> The core of such a script - which will be trivial for you to write -
> is Win32::Registry.
>
> Now, I don't s'pose anyone knows how to do that on Win95 _without_
> requiring a reboot?
>
I think we done that while ago Dave mate - it cant be done.
/J\
--
Jonathan Stowe <jns@btinternet.com>
Some of your questions answered:
<URL:http://www.btinternet.com/~gellyfish/resources/wwwfaq.htm>
------------------------------
Date: Sat, 28 Nov 1998 20:34:23 -0500
From: comdog@computerdog.com (brian d foy)
Subject: Re: Crypt command
Message-Id: <comdog-ya02408000R2811982034230001@news.panix.com>
In article <73pjen$hs1$1@garnet.nbnet.nb.ca>, "Bryan Duchesne" <crewsys@nbnet.nb.ca> posted:
> I still don't know the answer. Tom, you indicate that there is a UNIX
> crypt command and it is bidirectional. What is the complement to "crypt"
> and how does one use both of these in Perl?
see the crypt(1) man page and the perlipc man page.
for what it's worth, this probably isn't the answer that you really
need. what's the problem that you are trying to solve?
--
brian d foy <comdog@computerdog.com>
CGI Meta FAQ <URL:http://computerdog.com/CGI_MetaFAQ.html>
------------------------------
Date: Sat, 28 Nov 1998 14:15:24 -0800
From: Dale Sutcliffe <dales@enhanced-performance.com>
Subject: Help -- remove white spaces from end of a string
Message-Id: <366075FC.FC8BD363@enhanced-performance.com>
What is the perl command for removing white spaces from the end of a string?
Thanks
------------------------------
Date: 28 Nov 1998 18:02:35 -0500
From: clay@panix.com (Clay Irving)
Subject: Re: Help -- remove white spaces from end of a string
Message-Id: <73pveb$ovk@panix.com>
In <366075FC.FC8BD363@enhanced-performance.com> Dale Sutcliffe <dales@enhanced-performance.com> writes:
>What is the perl command for removing white spaces from the end of a string?
This:
#!/usr/local/bin/perl5 -w
$string = "abcd ";
$string =~ s/\s+$//;
print "|$string|\n";
prints:
|abcd|
--
Clay Irving
clay@panix.com
------------------------------
Date: 28 Nov 1998 22:46:35 -0000
From: Jonathan Stowe <gellyfish@btinternet.com>
Subject: Re: Help -- remove white spaces from end of a string
Message-Id: <73pugb$1dl$1@gellyfish.btinternet.com>
On Sat, 28 Nov 1998 14:15:24 -0800 Dale Sutcliffe <dales@enhanced-performance.com> wrote:
> What is the perl command for removing white spaces from the end of a string?
>
The answer to this can be found in perlfaq4 - the section entitled:
"How do I strip blank space from the beginning/end of a string"
/J\
--
Jonathan Stowe <jns@btinternet.com>
Some of your questions answered:
<URL:http://www.btinternet.com/~gellyfish/resources/wwwfaq.htm>
------------------------------
Date: Sat, 28 Nov 1998 20:05:11 -0600
From: tadmc@flash.net (Tad McClellan)
Subject: Re: Help -- remove white spaces from end of a string
Message-Id: <n4aq37.vgl.ln@flash.net>
Dale Sutcliffe (dales@enhanced-performance.com) wrote:
: What is the perl command for removing white spaces from the end of a string?
Perl FAQ, part 4:
"How do I strip blank space from the beginning/end of a string?"
: Thanks
Right.
--
Tad McClellan SGML Consulting
tadmc@metronet.com Perl programming
Fort Worth, Texas
------------------------------
Date: Sat, 28 Nov 1998 20:35:27 -0500
From: comdog@computerdog.com (brian d foy)
Subject: Re: Hiding "To:" field
Message-Id: <comdog-ya02408000R2811982035270001@news.panix.com>
In article <kg0p37.6ug.ln@flash.net>, tadmc@flash.net (Tad McClellan) posted:
> brian d foy (comdog@computerdog.com) wrote:
> : > > different question with more context though. it would belong in
> : >
> : > wouldn't?
>
> : your right. that's what i meant. yeah, that's the ticket ;)
> ^^^^
>
> you're?
damn! :)
--
brian d foy <comdog@computerdog.com>
CGI Meta FAQ <URL:http://computerdog.com/CGI_MetaFAQ.html>
------------------------------
Date: 29 Nov 1998 00:29:41 GMT
From: abigail@fnx.com (Abigail)
Subject: Re: html vs. cgi via perl
Message-Id: <73q4hl$4g0$1@client3.news.psi.net>
Mike (mike@lovetalk.de) wrote on MCMXV September MCMXCIII in
<URL:news:MPG.10c97e132ecbe95098968d@news.ndh.com>:
++ Does anyone have any idea on how to ping a cgi-script ?? (not just the
++ ip)
You can't.
HTH. HAND.
Abigail
------------------------------
Date: Sat, 28 Nov 1998 17:03:55 -0800
From: doug <doug@zerolimits.com>
To: Rollo Lawson <rollo@enter.net>
Subject: Re: I have a question about Perl and CgI?
Message-Id: <36609D6E.CD9A7B4B@zerolimits.com>
First off, cgi-bin is a folder.
It's generally the name of the folder holding your cgi scripts.
You do need to run some type of server to use CGI,
where the I stands for interface. It's a method ofcommunicating
between your browser and your server (This is simplifying).
Also, what OS are you using ? If you're using
Linux or UNIX, then Apache might be running already.
You don't have to use a form to access a script,
a simple link to the script will work.
If you want to pass parameters to your script, you
can do it like so:
file://path/to/my/script.cgi?param1=hello¶m2=world
as pointed out by Bart Lateur in the thread: Perl in HTML -without FORM
Hope this helps,
Doug
Rollo Lawson wrote:
>
> I am a newbie to cgi-bin. I have been studying perl5 for the last week or
> so. I have a network installed in my house and I have a question. I was
> wondering if I could put the script in the perl directory on one machine.
> And on the other machine if I access an html file with a form in it that is
> submitted right to the computer with the script on it if it. Would it
> process the script and show the results. Or do you need web server
> software or something like that to test scripts. And also is the only way
> to interact with cgi
> scripts via the <form> tag or can it be with other html elements.
>
> Please Help
> rollo@enter.net
------------------------------
Date: 29 Nov 1998 01:04:33 -0000
From: Jonathan Stowe <gellyfish@btinternet.com>
Subject: Re: netscape bookmark
Message-Id: <73q6j1$1k4$1@gellyfish.btinternet.com>
On 26 Nov 1998 14:43:53 +0000 James Gillespie <jim.gillespie@usa.net> wrote:
> Rouslan Zenetl <zr@iname.com> writes:
>
>> being a newbie, my question is, what is the "right" (or the most
>> efficient, pretty, correct etc) way to parse netscape bookmark file
>> in perl? any ideas? or may be pointers?
>
> Having had to do this recently, I found it reasonably easy to use
> HTML::TreeBuilder. I can't post the code cos it's proprietary :-(
> But I can tell you what I did :-) This all refers to Netscape 4.05.
>
> I had to write stuff to manipulate the bookmarks file and leave it
> as still readable by Netscape, so I had to alter
> HTML::Element::starttag to *not* encode ampersands in attributes -
> they would appear as "&" when displayed by Netscape. And I had to
> alter HTML::Parser::parse to allow underscores in attribute names.
>
? It doesnt appear that HTML::Parser actually cares whether the
attribute names have underscores in them - perhaps you got an old version
of HTML::Parser.
Otherwise I wholeheartedly concur with you.
/J\
--
Jonathan Stowe <jns@btinternet.com>
Some of your questions answered:
<URL:http://www.btinternet.com/~gellyfish/resources/wwwfaq.htm>
------------------------------
Date: Sat, 28 Nov 1998 21:44:02 GMT
From: spam@netcetera.org (Simon Whitaker)
Subject: Re: Newbie: Need to split comma-delimited data into scalars or an array.
Message-Id: <36616d1d.15415325@news.u-net.com>
On Sat, 28 Nov 1998 12:12:46 -0500, Tk Soh wrote:
> > We newbies should stick together. Go forth and code, brother!
>
> perhaps 'we' should start a 'comp.lang.perl.newbies' newsgroup ;-) But I don't
> supposed you want to staty as newbies forever, do you?
No siree! In fact I'm really beginning to regret the "I'M A NEWBIE" tattoo I
had on my forehead last month...
Simon
--
My friends went to alt.california, and all they brought
me was this lousy sig.
[Please change spam to simon when replying by mail.]
------------------------------
Date: 29 Nov 1998 01:14:06 GMT
From: hp-katalog@t-online.de (Matthias Wiehl)
Subject: Newbie: Search Engine
Message-Id: <73q74u$l64$1@news00.btx.dtag.de>
Hi all,
I desperately need help with a search script written in perl. I want to
use a script called "Search_Engine Script", available for download from
http://www.extropia.com/, to make it possible for visitors to my site to
search some of the files of my web site.
How do I get this script installed? I thought it would be possible to
run it on my local Win95 system, so I inserted the correct directories
into the script files and a searching form into a temporary search.html
file. But now, if I enter anything into the form, my browser just
displays the script itself, not the results! If I run the perl compiler
on the .pl files, (with Perl 5 correctly installed), nothing happens.
What can I do to solve this problem? What file format do the script
files have to be to run properly?
I would like to test the script on my local system before looking for a
free CGI hosting service. (My ISP doesn't provide me with CGI.)
Or are there even better solutions than this script? Thanks in advance
for your replies,
Matthias
--
"Homepages bei T-Online" - http://home.t-online.de/home/hp-katalog/
eMail: hp-katalog@t-online.de Feedback: Sebastian.Boehm@t-online.de
------------------------------
Date: 29 Nov 1998 01:21:35 -0000
From: Jonathan Stowe <gellyfish@btinternet.com>
Subject: Re: Perl CGI 500 Server Error on PWS
Message-Id: <73q7iv$1k7$1@gellyfish.btinternet.com>
On Thu, 26 Nov 1998 01:40:28 -0600 Lonnie Johnson <lgj19@mail.idt.net> wrote:
>
<snip>
> I talked to Microsoft FrontPage support and they told me that there was a
> "security hole" in the Perl interpreter and that I should contact the site
> where I got Perl. This does not sound right to me does anyone have any
> knowledge of this?
>
But of course they would say that wouldnt they ;-}
I believe that as of the present stable release all known security bugs
have been fixed - they may have been referring to an obsolete release
of course.
/J\
--
Jonathan Stowe <jns@btinternet.com>
Some of your questions answered:
<URL:http://www.btinternet.com/~gellyfish/resources/wwwfaq.htm>
------------------------------
Date: 28 Nov 1998 22:10:56 +0100
From: Tony Curtis <Tony.Curtis+usenet@vcpc.univie.ac.at>
Subject: Re: quote & print confusion
Message-Id: <83k90fldzz.fsf@vcpc.univie.ac.at>
Re: quote & print confusion, Marty <marty@catnmoose.com>
said:
Marty> I'm trying to save a line of code if possible by
Marty> saying print "<td>substr($rhs,$i,1)</td> \n";
Marty> rather than
Marty> $myguy = substr($rhs,$i,1); print "<td>$myguy</td>
Marty> \n";
use CGI qw(:all);
print td(substr(...));
hth
tony
--
Tony Curtis, Systems Manager, VCPC, | Tel +43 1 310 93 96 - 12; Fax - 13
Liechtensteinstrasse 22, A-1090 Wien, | <URI:http://www.vcpc.univie.ac.at/>
"You see? You see? Your stupid minds! | private email:
Stupid! Stupid!" ~ Eros, Plan9 fOS.| <URI:mailto:tony_curtis32@hotmail.com>
------------------------------
Date: Sat, 28 Nov 1998 18:43:11 -0500
From: "Spider" <mjd@sgi.net>
Subject: Re: Round with Perl
Message-Id: <xV%72.1372$Ga.268291@news.sgi.net>
How about trying to just specify that you only want 2 digits after the
decimal and dump the rest... here is my way....
$grandtotal = $total + $ship;
$grandtotal = sprintf ("%2.2f", $grandtotal);
TADA!!!
Hope this helps you out. It helped me hordes when i first learned it. If you
develop web pages check out our web design contest at
http://guild.2webspinners.com
-Michael
Spider@2WebSpinners.com
Tuomas Angervuori wrote in message ...
>I have a problem: for example when I divide 1 with 3, I get result
>0.3333333333.... How can I tell Perl to count only for example two
>desimals?
>
> -Tumppi
------------------------------
Date: Sat, 28 Nov 1998 16:26:39 -0800
From: lr@hpl.hp.com (Larry Rosler)
Subject: Re: Round with Perl
Message-Id: <MPG.10ca34983f78fd56989930@nntp.hpl.hp.com>
In article <xV%72.1372$Ga.268291@news.sgi.net> on Sat, 28 Nov 1998
18:43:11 -0500, Spider <mjd@sgi.net> says...
...
> $grandtotal = sprintf ("%2.2f", $grandtotal);
^
Just a small observation. This specifies the minimum field width,
which is certain to be greater than 2, so specifying 2 is non-
functional. Better to leave it out.
BTW, there is no newsgroup alt.perl.
--
(Just Another Larry) Rosler
Hewlett-Packard Laboratories
http://www.hpl.hp.com/personal/Larry_Rosler/
lr@hpl.hp.com
------------------------------
Date: 29 Nov 1998 01:41:41 -0000
From: Jonathan Stowe <gellyfish@btinternet.com>
Subject: Re: Round with Perl
Message-Id: <73q8ol$1p3$1@gellyfish.btinternet.com>
On Sat, 28 Nov 1998 16:26:39 -0800 Larry Rosler <lr@hpl.hp.com> wrote:
Oh but Larry there is (check out DejaNews) its just that you refuse to
accept its existence ;-P
/J\
--
Jonathan Stowe <jns@btinternet.com>
Some of your questions answered:
<URL:http://www.btinternet.com/~gellyfish/resources/wwwfaq.htm>
------------------------------
Date: Sat, 28 Nov 1998 18:58:04 -0600
From: ken@forum.swarthmore.edu (Ken Williams)
Subject: Re: statement as "#include" in C
Message-Id: <ken-2811981858050001@min-mn4-15.ix.netcom.com>
In article <365EEF35.DB6C127B@iname.com>, Jin Shunyao <jinsy@iname.com> wrote:
>Hi,
>
>Have there a statement that can include a file from another file in
>perl language? Just like #include "file" in C.
The most idiomatic thing to do is:
require "file.pl";
------------------------------
Date: Sat, 28 Nov 1998 18:46:05 -0500
From: "Spider" <mjd@sgi.net>
Subject: Re: URGENT...Help Required!
Message-Id: <hY%72.1374$Ga.268562@news.sgi.net>
I always heard "Assholes are blessed with talking shit!" I wouldn't take any
of the jerks personally!
Keep Hacking!!
-Michael
Spider@2WebSpinners.com
Mick wrote in message <365B5F23.590AED26@deakin.edu.au>...
>Thanks for your informative advice, I stated before I am unfamiliar with
>Perl, and was looking for any assistance at all. I'm not asking someone to
>'do their work for me', just some advice on where the code was actually
>writing to the file or something along those lines.
>A few comments through the code would be more than helpful!
>Mick
>
>Rich wrote:
>
>> On Tue, 24 Nov 1998 12:05:10 +1100, Mick <bellears@deakin.edu.au> wrote:
>> ( Deleted )
>>
>> It's a good thing that I've set up my newsreader to filter out postings
>> in discussion groups that are over 300 lines, and also those that
>> ask other people to do their work for them. Otherwise, it might
>> become annoying.
>>
>> - Rich
>>
>> ( Is it *still* September? )
>>
>> --
>> Rich Mulvey
>> My return address is my last name,
>> followed by my first initial, @mulveyr.roc.servtech.com
>> http://mulveyr.roc.servtech.com
>> Amateur Radio: aa2ys@wb2wxq.#wny.ny.usa
>
>
>
------------------------------
Date: Sat, 28 Nov 1998 16:19:42 -0600
From: ken@forum.swarthmore.edu (Ken Williams)
Subject: using XS for string interpolation
Message-Id: <ken-2811981619420001@min-mn4-15.ix.netcom.com>
[I posted this yesterday to comp.lang.perl.moderated, but I figured I'd
open it up the larger list too]
I'm trying to accomplish something that most seasoned Perlers have done
before - it's certainly not my first time doing this. What I want to do
is to take a Perl string like:
$my_st = 'blah blah $VAR blah \Uupper\E'
And do the variable interpolation, backslash sequences, and so forth. I
can't just do eval "\"$my_st\"", because the value of $VAR is going to be
filled in by a subroutine of my creation, a la &value_of('VAR'). See
MOTIVATION below.
I could try to write some Perl code to do this interpolation, by
recognizing certain backslash sequences, finding un-backslashed variables,
etc. But I am loathe to take this approach, because my implementation
will always be incomplete, and probably not behave the way Perl's compiler
behaves.
So, I decided that the best way to accomplish this would be to write a
module that would tap into Perl's compiler routines, probably by using
XS. Is this a good way to go? And where is Perl's code for interpolating
double-quoted strings?
I imagine that I'd use Perl's string compiler code to parse up the string,
then walk through the data structure it gives me, doing my own variable
lookups instead of Perl's. A good idea?
MOTIVATION: I'm trying to flesh out Apache::SSI, which should allow
variable interpolation inside SSI directives, like:
<!--#set name=one value=hi --> (like $one = 'hi')
<!--#set name=two value="$one" --> (like $two = $one)
<!--#set name=three value="s${two}pwreck" --> (like $three = "s${two}pwreck")
It should also handle backslashes:
<!--#set name=price value="\$2.50" -->
<!--#set name=quote value="he said, \"hi\"" -->
If I tapped into Perl's internal string processor, then it seems like I'd
get \n, \U and the like for free. The main difference between what I want
and what Perl does is that I only have scalar variables, not lists and
hashes.
------------------------------
Date: 29 Nov 1998 00:50:25 -0000
From: Jonathan Stowe <gellyfish@btinternet.com>
Subject: Re: Why I can execute a command in Perl but not in CGI/Perl ?
Message-Id: <73q5oi$1jg$1@gellyfish.btinternet.com>
On 25 Nov 1998 16:41:42 GMT William Tang <wtang@flash.net> wrote:
> Hello,
> I have a program written in Perl and it runs fine:
> sub test {
> print "<PRE>"; # for later CGI program
> system("ping -h");
> print "</PRE>";
> }
>
ping -h puts it output to STDERR and you will find that it has placed that
into your error log.
You probably want to redirect STDERR to STDOUT with something like:
open STDERR,">&STDOUT" or die "Cant redirect - $!\n";
/J\
--
Jonathan Stowe <jns@btinternet.com>
Some of your questions answered:
<URL:http://www.btinternet.com/~gellyfish/resources/wwwfaq.htm>
------------------------------
Date: Sat, 28 Nov 1998 18:31:21 +0000
From: Marquis de Carvdawg <carvdawg@patriot.net>
Subject: Re: Win32::API programming
Message-Id: <36604178.529DC377@patriot.net>
Thanks for the response...I'm going to do that. Is this something I can get
for
free or is there a charge? I guess, being M$, I had to ask... ;-)
Carv
Jonathan Stowe wrote:
> In comp.lang.perl.misc Marquis de Carvdawg <carvdawg@patriot.net> wrote:
> > Can someone point me to a resource that shows me what
> > APIs are available to me using Win32::API? I have the PRK,
> > but I want to know more...
> >
>
> Probably the best think to do is to get hold of the Win32 SDK from
> microsofts web site - all of the API's are documented there in helpfiles.
>
> /J\
> --
> Jonathan Stowe <jns@btinternet.com>
> Some of your questions answered:
> <URL:http://www.btinternet.com/~gellyfish/resources/wwwfaq.htm>
------------------------------
Date: 28 Nov 1998 21:53:23 GMT
From: randy@theory.uwinnipeg.ca (Randy Kobes)
Subject: Winnipeg.pm meeting
Message-Id: <slrn760sno.hvp.randy@theory.uwinnipeg.ca>
The first meeting of Winnipeg.pm, a Perl Mongers group for
perl enthusiasts in Winnipeg and surrounding areas, will
be held Thursday, December 3 at 8:30 PM at Applebee's in the
Grant Park Plaza. Look for a guy with a Perl T-shirt. Anybody
using Perl for fun or profit, novice or expert, is welcome.
For more information, please contact Randy Kobes
(randy@theory.uwinnipeg.ca) or Andrew Johnson
(ajohnson@gatewest.net). Hope to see you then.
--
Best regards,
Randy Kobes
Physics Department Phone: (204) 786-9399
University of Winnipeg Fax: (204) 774-4134
Winnipeg, Manitoba R3B 2E9 e-mail: randy@theory.uwinnipeg.ca
Canada http://theory.uwinnipeg.ca/
------------------------------
Date: Sun, 29 Nov 1998 01:21:13 +0300
From: "Sergey Denisov" <sdenisov@chat.ru>
Subject: Writing to password protected directory
Message-Id: <73psvg$l6v$1@dragon.infopro.spb.su>
Hello, all.
May be someone knows, how can I create and write to files in password
protected directory on my server. And is it truly, that I can freely read
from files in this protected directory without any password ?
Thanks, Sergey.
sdenisov@toolsoft.com
------------------------------
Date: 12 Jul 98 21:33:47 GMT (Last modified)
From: Perl-Request@ruby.oce.orst.edu (Perl-Users-Digest Admin)
Subject: Special: Digest Administrivia (Last modified: 12 Mar 98)
Message-Id: <null>
Administrivia:
Special notice: in a few days, the new group comp.lang.perl.moderated
should be formed. I would rather not support two different groups, and I
know of no other plans to create a digested moderated group. This leaves
me with two options: 1) keep on with this group 2) change to the
moderated one.
If you have opinions on this, send them to
perl-users-request@ruby.oce.orst.edu.
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.
To submit articles to comp.lang.perl.misc (and this Digest), send your
article to perl-users@ruby.oce.orst.edu.
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.
The Meta-FAQ, an article containing information about the FAQ, is
available by requesting "send perl-users meta-faq". The real FAQ, as it
appeared last in the newsgroup, can be retrieved with the request "send
perl-users FAQ". Due to their sizes, neither the Meta-FAQ nor the FAQ
are included in the digest.
The "mini-FAQ", which is an updated version of the Meta-FAQ, is
available by requesting "send perl-users mini-faq". It appears twice
weekly in the group, but is not distributed in the digest.
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 V8 Issue 4315
**************************************