[17436] in Perl-Users-Digest
Perl-Users Digest, Issue: 4856 Volume: 9
daemon@ATHENA.MIT.EDU (Perl-Users Digest)
Thu Nov 9 14:05:34 2000
Date: Thu, 9 Nov 2000 11:05:13 -0800 (PST)
From: Perl-Users Digest <Perl-Users-Request@ruby.OCE.ORST.EDU>
To: Perl-Users@ruby.OCE.ORST.EDU (Perl-Users Digest)
Message-Id: <973796713-v9-i4856@ruby.oce.orst.edu>
Content-Type: text
Perl-Users Digest Thu, 9 Nov 2000 Volume: 9 Number: 4856
Today's topics:
Checking for IIS session variables <mike@esterling.co.uk>
Checking for IIS session variables <mike@esterling.co.uk>
DBI::DBD Oracle OS Authentication wbuchan@uk.noha-systems.com
Excel and Graphics o.richet@usa.net
Excel/Perl syntax question on cell borders <clarke@hyperformix.com>
forking <ghwen@infonie.fr>
Re: getgrgid does not work with nis (perl 5.6.0) <elaine@chaos.wustl.edu>
Re: Help needed with dereferencing in multihash (Mark-Jason Dominus)
Re: Help needed with dereferencing in multihash nobull@mail.com
Re: help on improving code (pine2mutt-script ca 130 lin (Tad McClellan)
Re: help on improving code (pine2mutt-script ca 130 lin (Jan Schaumann)
Re: HELP Winows NT Mail::Sender <beer_girl@bigfoot.com>
Re: Help! Can't use "next LABEL" in SIG{ALRM} sub <a@b.c>
Re: how do i ask for input? <me@privacy.net>
Re: mail & MIME <james@NOSPAM.demon.co.uk>
Re: mail & MIME <bertrand.valle@travelprice.com>
Re: Mail mapping from "ÄÜÖ ?1" -> "ÿso-8859-1Q?C4DCD6?" <elijah@workspot.net>
Re: MS SQL & Perl -- SOLUTION <RichParker@fssi-ca.com>
Re: Please teach how to read binary data in Perl langua (Mark-Jason Dominus)
qx(...&); hangs program pelle1970@my-deja.com
Running a remote CGI script through perl <pwthoma@arkansas.net>
Re: Running a remote CGI script through perl <jeff@vpservices.com>
Re: Running a remote CGI script through perl nobull@mail.com
Re: simple question - help!! (Clay Irving)
Re: strftime and Perl-Version problems pelle1970@my-deja.com
Digest Administrivia (Last modified: 16 Sep 99) (Perl-Users-Digest Admin)
----------------------------------------------------------------------
Date: Thu, 9 Nov 2000 17:39:11 -0000
From: "mike" <mike@esterling.co.uk>
Subject: Checking for IIS session variables
Message-Id: <MdBO5.7463$Fi.32750@NewsReader>
I have an ASP logon script which creates a session variable with the
username in it using VBScript. Every page after that checks for the
existence of the session variable and if it's not there kicks you back to
the login page.
It all works fine until you get to my 1 perl .pl page, I don't have a clue
as to how to look for a sessions variable that was created in VBScript or
how to redirect to another page and it's a page that needs password
verification.
Any assistance would be most appreciated.
Cheers,
Mike.
------------------------------
Date: Thu, 9 Nov 2000 17:40:39 -0000
From: "mike" <mike@esterling.co.uk>
Subject: Checking for IIS session variables
Message-Id: <7fBO5.7465$Fi.32622@NewsReader>
I have an ASP logon script which creates a session variable with the
username in it using VBScript. Every page after that checks for the
existence of the session variable and if it's not there kicks you back to
the login page.
It all works fine until you get to my 1 perl .pl page, I don't have a clue
as to how to look for a sessions variable that was created in VBScript or
how to redirect to another page and it's a page that needs password
verification.
Any assistance would be most appreciated.
Cheers,
Mike.
------------------------------
Date: Thu, 09 Nov 2000 18:50:24 GMT
From: wbuchan@uk.noha-systems.com
Subject: DBI::DBD Oracle OS Authentication
Message-Id: <8uerld$8fe$1@nnrp1.deja.com>
Hi,
What is the correct DBI connect syntax for connect to log in to Oracle
as sysdba without specifying a password (script running on server).
ie. In SQLPLUS: connect / as sysdba
$dbh->connect(?);
Thanks
- Bill.
Sent via Deja.com http://www.deja.com/
Before you buy.
------------------------------
Date: Thu, 09 Nov 2000 18:56:19 GMT
From: o.richet@usa.net
Subject: Excel and Graphics
Message-Id: <3a0af34a.41477731@news.wanadoo.fr>
Hi,
I am a young student in computing (first year student).
For my school project, I search a Perl script with 2 functions :
- Retrieve datas from CSV file from Excel
- Show the results on graphic form to HTML page
If you know where I can find this script, thank you to e-mail me (not
answer on this newsgroup because the access is impossible from my
school) : o.richet@usa.net
Thank you very much to all !
------------------------------
Date: Thu, 9 Nov 2000 11:45:44 -0600
From: "ac" <clarke@hyperformix.com>
Subject: Excel/Perl syntax question on cell borders
Message-Id: <fkBO5.1179$do1.168690@news.uswest.net>
This may be off-topic, but I have a question of how to access a
certain Excel feature from Perl. In particular I am trying to
control the border style of a row. The Perl below works fairly
well, but it puts an outline around the entire cell border:
$range = $sheet->Rows($i);
$range->Select();
$range->{Borders}->{LineStyle} = xlContinuous;
$range->{Borders}->{Weight} = xlThin;
To get an idea of what I should do, I recorded a VBA macro
which yielded something like this:
With Selection.Borders(xlEdgeBottom)
.LineStyle = xlContinuous
.Weight = xlThin
.ColorIndex = xlAutomatic
I can't figure out how to access the bottom edge border in
Perl.
Can some kind sole help me out?
Many Thanks,
Allan
------------------------------
Date: Thu, 9 Nov 2000 17:36:22 +0100
From: "ghwen" <ghwen@infonie.fr>
Subject: forking
Message-Id: <973788104.819230@romulus.infonie.fr>
Is there a way to launch a kid who is killed if the father is killed ?
------------------------------
Date: Thu, 09 Nov 2000 18:54:29 GMT
From: "Elaine Ashton" <elaine@chaos.wustl.edu>
Subject: Re: getgrgid does not work with nis (perl 5.6.0)
Message-Id: <FpCO5.13993$AM5.263030@news1.nokia.com>
"Olivier LACROIX" <Olivier.Lacroix@ciril.fr> wrote in message
news:3A0A8746.A15AE441@ciril.fr...
>
> I have rebuilt perl with gcc instead of HPUX cc and getgr* work fine
now.
> But I don't understand why.
The cc on HP-UX 10.20 is K&R, not ANSI. I believe the Readme for HPUX
explains this in some detail.
e.
------------------------------
Date: Thu, 09 Nov 2000 16:35:50 GMT
From: mjd@plover.com (Mark-Jason Dominus)
Subject: Re: Help needed with dereferencing in multihash
Message-Id: <3a0ad265.5ffc$c3@news.op.net>
Keywords: Britannica, hosiery, judicature, scapegoat
In article <8uebtq$pak$1@nnrp1.deja.com>, <j_f9@my-deja.com> wrote:
> printf "File is %s, size is %s, perm %04o, mtime %s\n",
> $key, $sb->size, $sb->mode & 07777,
> scalar localtime $sb->mtime;
Here you printed out the permissions in base 8, with printf %04o.
>Perms for a set of given files, for example, are 0555 and 0664, which
>is just OK.
>
>The problem seems to be here. Every way I dereference the value, file
>perms differ from the ones previously displayed.
>
>foreach $key (sort keys %hList) {
> print "@{$hList{$key}}\n";
>}
Here you printed them out in base 10.
>Now perms displayed, for the same set of files, are 365 and 436. (???)
365 in base 8 is 0555. 436 in base 8 is 0664.
>I badly need some enlightment with this one.
Hope this helps.
--
@P=split//,".URRUU\c8R";@d=split//,"\nrekcah xinU / lreP rehtona tsuJ";sub p{
@p{"r$p","u$p"}=(P,P);pipe"r$p","u$p";++$p;($q*=2)+=$f=!fork;map{$P=$P[$f|ord
($p{$_})&6];$p{$_}=/ ^$P/ix?$P:close$_}keys%p}p;p;p;p;p;map{$p{$_}=~/^[P.]/&&
close$_}%p;wait until$?;map{/^r/&&<$_>}%p;$_=$d[$q];sleep rand(2)if/\S/;print
------------------------------
Date: 09 Nov 2000 17:53:14 +0000
From: nobull@mail.com
Subject: Re: Help needed with dereferencing in multihash
Message-Id: <u9puk5av79.fsf@wcl-l.bham.ac.uk>
j_f9@my-deja.com writes:
> Subject: Help needed with dereferencing in multihash
Actually you need help localising problems. Your problem is nothing
to do with hashes or references.
Try:
print 0555;
What do you see?
Now do you understand?
--
\\ ( )
. _\\__[oo
.__/ \\ /\@
. l___\\
# ll l\\
###LL LL\\
------------------------------
Date: Thu, 9 Nov 2000 10:44:25 -0500
From: tadmc@metronet.com (Tad McClellan)
Subject: Re: help on improving code (pine2mutt-script ca 130 lines)
Message-Id: <slrn90lhip.bkv.tadmc@magna.metronet.com>
On Thu, 09 Nov 2000 15:20:00 GMT, Jan Schaumann
<jschauma@www.netmeister.org> wrote:
>Tad McClellan wrote:
>>But you of course need to see if _that_ match succeeded too:
>>
>> die "line $. did not have 2 tab chars\n"
>> unless ($nick, $name, $tmp) = /([^\t]*)\t([^\t]*)\t(.*)$/;
>
>Hmmm... maybe I'm not getting it, but shouldn't it be "if" instead of "unless"?
No.
>If it's "unless", then doesn't that mean "if $nick,$name,$tmp have NOT been
>properly assigned"?
Yes.
If they have not been assigned, I _want_ to die().
( It is a fatal error if there are not 2 tab chars in $_. )
>Or does the fact that there is no unless-body after the unless do something I
>don't understand?
No, you just got a bit flipped sorting through the negative logic :-)
Err, maybe. Are you not familiar with the "modifier" form
of control statements? They are described in the "Simple statements"
section in perlsyn.pod.
The above could have been written:
unless ( ($nick, $name, $tmp) = /([^\t]*)\t([^\t]*)\t(.*)$/ ) {
die "line $. did not have 2 tab chars\n";
}
--
Tad McClellan SGML consulting
tadmc@metronet.com Perl programming
Fort Worth, Texas
------------------------------
Date: Thu, 09 Nov 2000 18:59:17 GMT
From: jschauma@www.netmeister.org (Jan Schaumann)
Subject: Re: help on improving code (pine2mutt-script ca 130 lines)
Message-Id: <slrn90lt4f.3ur.jschauma@www.netmeister.org>
Tad McClellan wrote:
>
>The above could have been written:
>
> unless ( ($nick, $name, $tmp) = /([^\t]*)\t([^\t]*)\t(.*)$/ ) {
> die "line $. did not have 2 tab chars\n";
> }
>
IC - thanks for the clarification.
Another day I didn't get up in vain: I learned something ;-)
-Jan
--
Jan Schaumann <http://www.netmeister.org>
A computer without Windows is like a chocolate cake without mustard.
------------------------------
Date: Thu, 09 Nov 2000 18:48:36 GMT
From: Heather <beer_girl@bigfoot.com>
Subject: Re: HELP Winows NT Mail::Sender
Message-Id: <8ueri2$8cl$1@nnrp1.deja.com>
Hi,
I don't think anyone is fond of blat :O) I've used windmail before and
it works very similar to sendmail so you might want to try that as an
option too.
About blat: I'm using it on one website and it works but every time it
sends an email, it prints a message to the screen about it. Anyone
know how to get rid of that?
thanks,
Heather
In article <9j3O5.12021$aT1.1168204@news3.cableinet.net>,
"Paulgee" <paul.g@cableinet.co.uk> wrote:
> Hi dave
> Not that fond of blat, to be honest:-(, but I will email
you if
> I solve it, look's like I am on a mission, however, there is another
way
> using socket's, but requires quite a lot of scripting and I just want
> something simple to include within certain files and or call!!
>
> thank's for your help:-)
>
> paul
>
Sent via Deja.com http://www.deja.com/
Before you buy.
------------------------------
Date: Thu, 9 Nov 2000 18:16:15 -0000
From: "Kingsley Tart" <a@b.c>
Subject: Re: Help! Can't use "next LABEL" in SIG{ALRM} sub
Message-Id: <QRBO5.88794$hk2.291977@news6-win.server.ntlworld.com>
TVM
------------------------------
Date: Thu, 09 Nov 2000 18:25:45 GMT
From: "EM" <me@privacy.net>
Subject: Re: how do i ask for input?
Message-Id: <J_BO5.2624$Nw6.7728@news.iol.ie>
perldoc doesnt seem to work
when i type perldoc perlop i get this (yes it repeats 3 times)
D:\Perl\bin>perldoc perlop
Can't spawn "command.com": No such file or directory at perldoc.bat line
383.
Can't spawn "command.com": No such file or directory at perldoc.bat line
383.
Can't spawn "command.com": No such file or directory at perldoc.bat line
383.
the line at 383 is
last if system("$pager $tmp") == 0;
whats the problem?
Eric
"jason" <elephant@squirrelgroup.com> wrote in message
news:MPG.1474c1c1271e080198988b@localhost...
> EM wrote ..
> >I am using activeperl on windows
> >how do i ask for user input
>
> there are a number of ways .. the simplest is to use angle brackets
> around STDIN .. take a look at the perlop section of the manual under
> "I/O Operators" for some examples
>
> perldoc perlop
>
> >like say i make a program that ask for a password
> >and i make a prompt "Please enter password:"
> >how do i allow the user to put in his password and put it in $password
>
> for specifics about password inputs .. take a look at the Perl FAQ by
> typing the following at the command prompt
>
> perldoc -q password
>
> for more information on the perldoc utility type the following at the
> command prompt
>
> perldoc perldoc
>
> --
> jason -- elephant@squirrelgroup.com --
------------------------------
Date: Thu, 9 Nov 2000 16:24:05 +0000
From: James Taylor <james@NOSPAM.demon.co.uk>
Subject: Re: mail & MIME
Message-Id: <ant0916051cbfNdQ@oakseed.demon.co.uk>
In article <3A0AC800.17CF6209@travelprice.com>, Bertrand Vallé
<URL:mailto:bertrand.valle@travelprice.com> wrote:
>
> but where i can find some informations about this class ?
> is it in originally package of perl ?
I hope you have heard of CPAN http://www.cpan.org/
You can download these MIME modules from CPAN at this URL:
http://www.cpan.org/modules/by-module/MIME/
Documentation is included in the tar files but you can
also access it at http://wait.cpan.org/ by searching
for the module by name.
--
James Taylor <james (at) oakseed demon co uk>
PGP key available ID: 3FBE1BF9
Fingerprint: F19D803624ED6FE8 370045159F66FD02
------------------------------
Date: Thu, 09 Nov 2000 17:55:47 +0100
From: Bertrand =?iso-8859-1?Q?Vall=E9?= <bertrand.valle@travelprice.com>
Subject: Re: mail & MIME
Message-Id: <3A0AD713.DC8AB7BE@travelprice.com>
thx a lot i all find what i was looking for ;)
i did look at cpan.org but i didn't find ... now it's good thx :)
Bertrand.
James Taylor wrote:
> In article <3A0AC800.17CF6209@travelprice.com>, Bertrand Vallé
> <URL:mailto:bertrand.valle@travelprice.com> wrote:
> >
> > but where i can find some informations about this class ?
> > is it in originally package of perl ?
>
> I hope you have heard of CPAN http://www.cpan.org/
>
> You can download these MIME modules from CPAN at this URL:
> http://www.cpan.org/modules/by-module/MIME/
>
> Documentation is included in the tar files but you can
> also access it at http://wait.cpan.org/ by searching
> for the module by name.
>
> --
> James Taylor <james (at) oakseed demon co uk>
> PGP key available ID: 3FBE1BF9
> Fingerprint: F19D803624ED6FE8 370045159F66FD02
------------------------------
Date: 9 Nov 2000 18:19:50 GMT
From: Eli the Bearded <elijah@workspot.net>
Subject: Re: Mail mapping from "ÄÜÖ ?1" -> "ÿso-8859-1Q?C4DCD6?"
Message-Id: <eli$0011091259@qz.little-neck.ny.us>
In comp.lang.perl.misc,
Dr. Peter Dintelmann <Peter.Dintelmann@dresdner-bank.com> wrote:
> Harms Dirk schrieb in Nachricht <3A091ED6.4ABE5F5B@nokia.com>...
> >some emails (Outlook :-( have a subject e.g.:
Not just Outlook, I am sure. This is first covered by RFC1342,
from June 1992, and revised several times since then.
> >=?iso-8859-1?Q?=C4=DC=D6_=3F1
> >which was:
> >ÄÜÖ
That is syntatically incorrect. Assuming what was meant was
=?iso-8859-1?Q?=C4=DC=D6_=3F1?=
Then it should be: "ÄÜÖ ?1"
> >Does anybody konws a module (CPAN) which allows me
> >to convert "=?iso-8859-1?Q?=C4=DC=D6_=3F1" back to "ÄÜÖ"?
I looked for one a few weeks ago and found nothing.
> partial solution:
> The MIME::QuotedPrint module offers a method decode_qp()
> which lets you turn '=C4=DC=D6' back to the German
> umlauts 'ÄÜÖ'.
That's not complete though. There can me QP or base64 encoding
(a 'B' instead of a 'Q'), in QP mode, _ is 0x20 (ascii space,
but _ is 0x20 even if space is not at 0x20). There is a maximum
length to an encoded block (75 chars?) If more text needs to be
encoded, then multiple blocks should be used, with whitespace
between them (the whitespce should be removed upon decoding).
This encoding is explicitly disallowed in the actual address
portion of an email address.
So this is legal:
From: =?utf-8?q?Elijah_Gri=EF=AC=83n?= <elijah@workspot.net>
It has my surname with unicode FB03 (latin small ligature ffi).
And this is legal
From: Eli the Bearded <elijah-=?utf-8?q?=E2=98=DA?=@workspot.net>
But in this case there is no encoded text in the header. It
just looks suspiciously like a unicode 263A (white smiling
face) there, but really it is just an ugly address.
Elijah
------
hasn't found a non-Mac font with the U+FB03 char yet, but lynx maps it to "ffi"
------------------------------
Date: Thu, 09 Nov 2000 16:54:12 GMT
From: Rich Parker <RichParker@fssi-ca.com>
Subject: Re: MS SQL & Perl -- SOLUTION
Message-Id: <3A0AD7DB.78180537@fssi-ca.com>
First,
Thanks to all of you for your help. But I was correct when I was thinking that the problem was
the installation. Since WinNT cannot do UNIX SHELL commands, I thought something was amiss in
this process. Well one of you started email with me and gave me this link:
http://www.activestate.com/PPMPackages/zips/6xx-builds-only/
There, I was able to find a DBI.zip & an ODBC.zip file that had all the necessary DLLs and
other files needed for WinNT (Thanks Mr Gates for the lovely insight [Pun]), rather than the
DBI & ODBC files I was getting elsewhere on the Net. Once I had all the correct DLLs etc, the
script ran just fine. And for those of you who were asking for a smaller piece of the code,
that IS what I had done, there were only 4 lines that had to be debugged, but after all the
mess with WinNT (Gimme Linux or UNIX anyday), the code itself was just fine. I think Henry
here was getting me close to my resolution, but the other link (Above) was a direct link to
their index of PPMs.
Now I'm rocking & rolling and the files are working just fine, but 2 days to debug 1 line of
code, PITA (Real Pain). I updated my own problem(s) because I think everyone HERE needs to
check out the above link.
Thanks for all the wonderful help!!
Henry Hartley wrote:
> Rich Parker wrote:
> >
> > But that still leaves my last question unanswered: What about the 'make' after the 'perl
> > makefile.pl', how did the rest of you get around that w/o having a Unix Shell???
> > HELP!!
>
> On WinNT, you really don't need to do all this. Git your browser out
> and go to
> <http://www.activestate.com/Products/ActivePerl/docs/faq/activeperl-faq2.html>
> and read what you find there. Then, use ppm to install your modules.
> You'll be glad you did.
>
> --
> Henry Hartley
> Westat
> Rockville, Maryland, USA
--
Rich Parker
Web Sites:
Business: http://www.fssi-ca.com
Personal: http://southcoastdivers.com
E-mail:
Business: mailto:RichParker@fssi-ca.com
Personal: mailto:Rich@southcoastdivers.com
------------------------------
Date: Thu, 09 Nov 2000 16:39:30 GMT
From: mjd@plover.com (Mark-Jason Dominus)
Subject: Re: Please teach how to read binary data in Perl language.
Message-Id: <3a0ad341.6039$156@news.op.net>
Keywords: CIA, basic, quack, swirly
In article <8uecua$16u$1@nn-tk106.ocn.ad.jp>,
OJA <naoto21@cronos.ocn.ne.jp> wrote:
>binmode FH;
>open FH,"<test.jpg";
You must call 'binmode' *after* you open the file handle.
--
@P=split//,".URRUU\c8R";@d=split//,"\nrekcah xinU / lreP rehtona tsuJ";sub p{
@p{"r$p","u$p"}=(P,P);pipe"r$p","u$p";++$p;($q*=2)+=$f=!fork;map{$P=$P[$f|ord
($p{$_})&6];$p{$_}=/ ^$P/ix?$P:close$_}keys%p}p;p;p;p;p;map{$p{$_}=~/^[P.]/&&
close$_}%p;wait until$?;map{/^r/&&<$_>}%p;$_=$d[$q];sleep rand(2)if/\S/;print
------------------------------
Date: Thu, 09 Nov 2000 17:33:32 GMT
From: pelle1970@my-deja.com
Subject: qx(...&); hangs program
Message-Id: <8uen5d$40t$1@nnrp1.deja.com>
or: Do I really need to fork?
Hello everyone,
(Running on Linux)
I have a perl-script that watches a bunch of programs and restarts them
in case any of them stops running. This script contains a line like this
one:
qx(/MyDir/MyExec $MyArray[$MyIdx] MyParams
2>/MyLogDir/err$MyArray[$MyIdx] &);
now when that line gets executed, the perl-script waits for the result
of MyExec. I don't need that, since these Execs are supposed to be
running forever (which IS the reason that I check if they are truly
running). Is there any way to just start the program without checking on
it? I'd like to avoid forks!!! (and I don't really care if the attempt
to start the program is successful)
Thanks a LOT!
Bye,
Carsten.
P.S. I read about exec and system, but both seem to wait for the output
of the executed program, right? - That doesn't help me.
Sent via Deja.com http://www.deja.com/
Before you buy.
------------------------------
Date: Thu, 09 Nov 2000 11:58:31 -0600
From: MrPaul <pwthoma@arkansas.net>
Subject: Running a remote CGI script through perl
Message-Id: <16pl0t89b2n25cno75g534p9fevimhpqqe@4ax.com>
I'm trying to write a perl script that will run a CGI script on a
remote web server. I've looked through CPAN and 3 months of this
group but unfortunately I just started programming perl yesterday and
I'm not really sure what to look for.
Once I know what module to use I think I can figure it out from there
with these 2 Oreilly books and man pages.
Furthermore, If anyone cares what this is for... A friend got one of
those x10 boxes that will allow him to turn off items in his house
(lamp/tv so far) and I want to mess with him. Just running this
script randomly each afternoon.
http://xxx.xxx.xxx/cgi-bin/x10.cgi?action=tvoff
Thanks for any help.
Paul
------------------------------
Date: Thu, 09 Nov 2000 10:10:21 -0800
From: Jeff Zucker <jeff@vpservices.com>
Subject: Re: Running a remote CGI script through perl
Message-Id: <3A0AE88D.EF0A0E81@vpservices.com>
MrPaul wrote:
>
> I'm trying to write a perl script that will run a CGI script on a
> remote web server.
Well, if you want to run the remote CGI manually, just make a local HTML
page that has a form or href tag pointing to the CGI and click on the
submit or the href link.
If you want to automate things so you have a script running at regular
intervals on your local machine then:
1. Find out how to run scripts at regular intervals (man chron if on
*nix, see activestate docs if on win); and set it up to run a script
using #2 below.
2. Use the LWP module, part of the libwww bundle available from CPAN or
activestate. You can use it to run a remote cgi either without
parameters, or with parameters passed from the local script via either
GET or POST.
--
Jeff
------------------------------
Date: 09 Nov 2000 18:29:18 +0000
From: nobull@mail.com
Subject: Re: Running a remote CGI script through perl
Message-Id: <u9lmutatj5.fsf@wcl-l.bham.ac.uk>
MrPaul <pwthoma@arkansas.net> writes:
> I'm trying to write a perl script that will run a CGI script on a
> remote web server. I've looked through CPAN and 3 months of this
> group
Since this question is typically asked and answered at least twice a
week and often more than once a day that would be around 25-100
instances of this question. You can't have looked very carefully.
> but unfortunately I just started programming perl yesterday
> and I'm not really sure what to look for.
That's not really relevant since it is keywords describing the task
that you are seeking to achive that you should be looking for (in Perl
newsgroups). The keywords describing the task are not dependant on
the choice of implementation language.
How about 'CGI' and 'remote' in comp.lang.perl* on deja.com
Judging by the subject lines the first 7 hits are fairly obviously not
going to relvant.
The 8th hit has a usless subject line "challenging problem" because
<paceman97@aol.com> was too selfish/arrogant/lazy to bother thinking
of a good subject line for the thread. You'll have to read it to find
out if it is relevant.
You read it and you find it doesn't exactly answer you question but
does mention in passing something called "LWP" that from context
appears to be related to the answer to your question.
> Once I know what module to use I think I can figure it out from there
> with these 2 Oreilly books and man pages.
Light bulb springs on above head: perhaps LWP is a module. (Actually
it's a bundle of modules).
--
\\ ( )
. _\\__[oo
.__/ \\ /\@
. l___\\
# ll l\\
###LL LL\\
------------------------------
Date: 9 Nov 2000 16:11:03 GMT
From: clay@panix.com (Clay Irving)
Subject: Re: simple question - help!!
Message-Id: <slrn90lj4n.56a.clay@panix2.panix.com>
On Thu, 09 Nov 2000 08:52:19 GMT, Andrew <athe@gte.net> wrote:
>does any one know the keyboard function to type the cursor box
>i think it is a cursor box.
Did you have a question about Perl?
--
Clay Irving <clay@panix.com>
Many a sober Christian would rather admit that a wafer is God than that
God is a cruel and capricious tyrant.
- Edward Gibbon
------------------------------
Date: Thu, 09 Nov 2000 17:23:34 GMT
From: pelle1970@my-deja.com
Subject: Re: strftime and Perl-Version problems
Message-Id: <8uemid$3e6$1@nnrp1.deja.com>
In article <MPG.14733c30e8aba2bb989880@localhost>,
jason <elephant@squirrelgroup.com> wrote:
> [ posted to comp.lang.perl.misc and CCed to pelle1970@my-deja.com ]
>
> pelle1970@my-deja.com wrote ..
[snip]
> > my @mytime1 = localtime();
> > my @mytime2 = @mytime1;
> > if( $mytime1[4]==1 )
> > { $mytime1[4]=11; } # change of year
> > else
> > { $mytime1[4]--; }
> however .. I don't really think that you know what you're doing with
> those 'if' clauses .. in the first one your comment says 'change of
> year' .. but element 4 has nothing to do with the year
Well, it's because mytime1 is supposed to be one month before mytime2
and when the year changes, the month before january is december. Still I
got a tiny little bug in there! Thanks!
> my @time = localtime;
> printf 'DateString: %d%d01' => $time[5]+1900, $time[4]+1;
... ups... it's just the simple things that make me stumble.
Thanks a lot!
Carsten
Sent via Deja.com http://www.deja.com/
Before you buy.
------------------------------
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 4856
**************************************