[11567] in Perl-Users-Digest
Perl-Users Digest, Issue: 5168 Volume: 8
daemon@ATHENA.MIT.EDU (Perl-Users Digest)
Thu Mar 18 15:07:27 1999
Date: Thu, 18 Mar 99 12:01:29 -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 Thu, 18 Mar 1999 Volume: 8 Number: 5168
Today's topics:
Re: Variables in QUERY_STRING jt@enterprise.net
Re: Variables in QUERY_STRING <Tony.Curtis@vcpc.univie.ac.at>
Re: Variables in QUERY_STRING jt@enterprise.net
Re: Variables in QUERY_STRING <jeromeo@atrieva.com>
Re: Variables in QUERY_STRING (brian d foy)
Re: Variables in QUERY_STRING (brian d foy)
Re: Variables in QUERY_STRING <jeromeo@atrieva.com>
Re: Want to learn Perl <spike_YYwhiteYY@YYdellYY.com>
Re: Web Login (brian d foy)
Re: Which OS am I in <spike_YYwhiteYY@YYdellYY.com>
Why can't i create a file with >>$file? <poohba@io.com>
Re: Why can't i create a file with >>$file? <vince_wilding@NOSPAMusgs.gov>
Re: Win32 Network problems with ActiveState PERL? (Rob Greenbank)
Special: Digest Administrivia (Last modified: 12 Dec 98 (Perl-Users-Digest Admin)
----------------------------------------------------------------------
Date: Thu, 18 Mar 1999 18:21:47 GMT
From: jt@enterprise.net
Subject: Re: Variables in QUERY_STRING
Message-Id: <36f34415.30904187@news.enterprise.net>
On Thu, 18 Mar 1999 06:09:57 -0500, tadmc@metronet.com (Tad McClellan)
wrote:
>jt@enterprise.net wrote:
>: I wonder if anyone out there can help
>
>: I need to send the server a QUERY_STRING dependent upon where the the
>: user clicks on an image map.
>
>: Is it possible to use the FORM GET method to send something like
>
>: href=www.domain.com/cgi-bin/prog.cgi?fieldname=variable
>
>
> What is your Perl question?
>
>
>--
> Tad McClellan SGML Consulting
> tadmc@metronet.com Perl programming
> Fort Worth, Texas
OK, Mr Hostile
First of all, chill out!
My PERL script quite happily splits parameters passed via POST, but I
need to pass the same arguments via GET depending on which FORM
radio/select options are selected when certain parts of an image map
are clicked in the HTML (for Tad's benefit, that's what generates
pages on the web).
I look forward to some rather more constructive assistance.
Thanks
jt
------------------------------
Date: 18 Mar 1999 19:29:56 +0100
From: Tony Curtis <Tony.Curtis@vcpc.univie.ac.at>
Subject: Re: Variables in QUERY_STRING
Message-Id: <83sob2y7kr.fsf@vcpc.univie.ac.at>
Re: Variables in QUERY_STRING, jt
<jt@enterprise.net> said:
>> Tad replied:
>> what is your perl question?
jt> OK, Mr Hostile
jt> First of all, chill out!
Seems a perfectly good reply to me. you didn't ask
a question related to perl.
jt> My PERL script quite happily splits parameters
jt> passed via POST, but I need to pass the same
jt> arguments via GET depending on which FORM
jt> radio/select options are selected when certain
jt> parts of an image map are clicked in the HTML
jt> (for Tad's benefit, that's what generates pages
jt> on the web).
No, I think you mean "HTTP server" here. Or maybe
"vi" :-)
So...are you going to ask a question related to
perl? This has to do with the HTTP protocol, URLS
and HTML.
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: Thu, 18 Mar 1999 19:06:12 GMT
From: jt@enterprise.net
Subject: Re: Variables in QUERY_STRING
Message-Id: <36f14e1f.33474352@news.enterprise.net>
On Thu, 18 Mar 1999 16:16:23 GMT, jt@enterprise.net wrote:
>I wonder if anyone out there can help
>
>I need to send the server a QUERY_STRING dependent upon where the the
>user clicks on an image map.
>
>Is it possible to use the FORM GET method to send something like
>
>href=www.domain.com/cgi-bin/prog.cgi?fieldname=variable
>
>???
>
>Thanks
>
>jt
Oh, for goodness sakes! Are you two so new to this list that you
can't realise the PERL implications of the simplest query?
If there's anyone with the slightest PERL experience, perhaps you
would help me - it's a perfectly reasonable request which doesn't
warrant the indifference of tin gods.
Thanks
jt
------------------------------
Date: Thu, 18 Mar 1999 10:52:13 -0800
From: Jerome O'Neil <jeromeo@atrieva.com>
Subject: Re: Variables in QUERY_STRING
Message-Id: <36F14B5D.75B9FBB2@atrieva.com>
jt@enterprise.net wrote:
> >: Is it possible to use the FORM GET method to send something like
> >
> >: href=www.domain.com/cgi-bin/prog.cgi?fieldname=variable
> >
> > What is your Perl question?
> OK, Mr Hostile
>
> First of all, chill out!
I thought it a very reasonable question.
#!/usr/local/bin/perl -w
use Psychic::Debug;
my($complaint) = <<EOT;
:My PERL script quite happily splits parameters passed via POST, but I
:need to pass the same arguments via GET depending on which FORM
:radio/select options are selected when certain parts of an image map
:are clicked in the HTML (for Tad's benefit, that's what generates
:pages on the web).
EOT
Psychic::Debug::prognosticate($complaint);
Ramtha prognosticates: User is not using CGI.pm and is unfamiliar with
HTTP.
Furthermore, HTML is a markup language. It generates nothing.
> I look forward to some rather more constructive assistance.
I'm sure you will receive it when you have a perl question.
> Thanks
De Nada.
--
Jerome O'Neil, Operations and Information Services
Atrieva Corporation, 600 University St., Ste. 911, Seattle, WA 98101
jeromeo@atrieva.com - Voice:206/749-2947
The Atrieva Service: Safe and Easy Online Backup http://www.atrieva.com
------------------------------
Date: Thu, 18 Mar 1999 14:45:43 -0500
From: comdog@computerdog.com (brian d foy)
Subject: Re: Variables in QUERY_STRING
Message-Id: <comdog-ya02408000R1803991445430001@news.panix.com>
In article <36f2244e.22767897@news.enterprise.net>, jt@enterprise.net posted:
> I need to send the server a QUERY_STRING dependent upon where the the
> user clicks on an image map.
>
> Is it possible to use the FORM GET method to send something like
>
> href=www.domain.com/cgi-bin/prog.cgi?fieldname=variable
Yes. and your Perl question is...
--
brian d foy
CGI Meta FAQ <URL:http://www.smithrenaud.com/public/CGI_MetaFAQ.html>
------------------------------
Date: Thu, 18 Mar 1999 14:47:14 -0500
From: comdog@computerdog.com (brian d foy)
Subject: Re: Variables in QUERY_STRING
Message-Id: <comdog-ya02408000R1803991447140001@news.panix.com>
In article <36f34415.30904187@news.enterprise.net>, jt@enterprise.net posted:
> On Thu, 18 Mar 1999 06:09:57 -0500, tadmc@metronet.com (Tad McClellan)
> wrote:
> >jt@enterprise.net wrote:
> >: I need to send the server a QUERY_STRING dependent upon where the the
> >: user clicks on an image map.
> > What is your Perl question?
> I look forward to some rather more constructive assistance.
perhaps you should ask some people who care about HTML then. there
are other newsgroups...
--
brian d foy
CGI Meta FAQ <URL:http://www.smithrenaud.com/public/CGI_MetaFAQ.html>
------------------------------
Date: Thu, 18 Mar 1999 11:44:08 -0800
From: Jerome O'Neil <jeromeo@atrieva.com>
Subject: Re: Variables in QUERY_STRING
Message-Id: <36F15788.4D533E8A@atrieva.com>
jt@enterprise.net wrote:
> >Is it possible to use the FORM GET method to send something like
> >href=www.domain.com/cgi-bin/prog.cgi?fieldname=variable
> Oh, for goodness sakes! Are you two so new to this list that you
> can't realise the PERL implications of the simplest query?
There are no perl implications to this query.
None. Not one. Zero. Zilch.
We know this because we have been around this "list" for a while. You
do not, because you are brand-spankin' new. If you are having problems
understanding where perl starts, and HTTP begins, I would recommend
starting with the appropriate RFCs, followed by extensive time with
perldoc. They contain all the exciting detail you need to know.
> If there's anyone with the slightest PERL experience, perhaps you
> would help me - it's a perfectly reasonable request which doesn't
> warrant the indifference of tin gods.
I can't speak for Tony or Tad, but I make my living writing Perl, mostly
for CGI based applications, and enjoy helping people with problems.
When you have some Perl experience of your own, you will understand that
you have yet to ask a Perl question. When you do, I'm sure you will
receive all the help you need.
> Thanks
You're welcome.
--
Jerome O'Neil, Operations and Information Services
Atrieva Corporation, 600 University St., Ste. 911, Seattle, WA 98101
jeromeo@atrieva.com - Voice:206/749-2947
The Atrieva Service: Safe and Easy Online Backup http://www.atrieva.com
------------------------------
Date: Thu, 18 Mar 1999 13:44:09 -0600
From: "Spike White" <spike_YYwhiteYY@YYdellYY.com>
Subject: Re: Want to learn Perl
Message-Id: <7crkdn$803$1@obsidian.us.dell.com>
Get the "Learning Perl" book by O'Reilly (the Llama book) and the
"Programming Perl" book by O'Reilly (the Camel book). The first
is a gentle intro, you can fly through it. The second is a meaty
reference book (analogous to K&R in the C world).
Spike
akonopka wrote in message <36E15FBE.131D8D67@mtco.com>...
>Hello,
>
>I was looking for information on Websites or Books that may help me get
>started learning Perl. Unfortunately, I run on a windows platform at
>home, but I do have the option of using my ISP's services in Unix. I
>would like to develop under both platforms. My background is C and
>mostly VB, but I believe that Perl can be a better solution to Web
>development that using Java.
>
>If anyone has comments on Java vs Perl please let me know, I know Java
>is the hot topic, but it is still pretty slow over the net.
>
>Thanks
------------------------------
Date: Thu, 18 Mar 1999 14:43:27 -0500
From: comdog@computerdog.com (brian d foy)
Subject: Re: Web Login
Message-Id: <comdog-ya02408000R1803991443270001@news.panix.com>
In article <36F08DFC.146436A@pacific.net.sg>, Simon Ng <simon_ng@pacific.net.sg> posted:
> How to create a webpage that requires user to login with password using
> perl?
see www.modperl.com
--
brian d foy
CGI Meta FAQ <URL:http://www.smithrenaud.com/public/CGI_MetaFAQ.html>
------------------------------
Date: Thu, 18 Mar 1999 13:29:23 -0600
From: "Spike White" <spike_YYwhiteYY@YYdellYY.com>
Subject: Re: Which OS am I in
Message-Id: <7crji2$7qn$1@obsidian.us.dell.com>
Back to the subject. A simple answer would have sufficed, instead of
leading people off in the weeds.
The variable $^O has the OS name. If you're using the English module,
the variable is called $OSNAME. If you don't know what the English
module is, you're not using it.
Spike
David L. Cassell wrote in message <36F02B29.596F4F2@mail.cor.epa.gov>...
>Tad McClellan wrote:
>> Spike White (spike_YYwhiteYY@YYdellYY.com) wrote:
>> : # perldoc -q 'which operating system'
>> : Unknown option: q
>> : perldoc [options] PageName|ModuleName|ProgramName...
>> : perldoc [options] -f BuiltinFunction
>> : ....
>>
>> You have an old version of Perl.
>
>Maybe not *too* terribly ancient, though. The Slowlaris network
>I'm using right now gives that error message with Perl
>5.004_04 .
>
>Yeah, I know, I know. The network sysadmin is going to let
>me install 5.005 on an auxiliary machine and test it out, on
>my own time. Assuming I have any of my own time at work anytime
>soon...
>
>David
>--
>David L. Cassell, OAO cassell@mail.cor.epa.gov
>Senior computing specialist
>mathematical statistician
------------------------------
Date: Thu, 18 Mar 1999 14:08:14 -0500
From: Poohba <poohba@io.com>
Subject: Why can't i create a file with >>$file?
Message-Id: <Pine.BSF.4.05.9903181406190.16980-100000@dillinger.io.com>
I am trying to append to a file and it won't append nor will it create the
file if it isn't there. Why? I am using:
$file = "file.dat";
open (FILE, ">>$file") || die "Can't open $file: $!\n";
print FILE "print all of this junk\n";
close(FILE);
I can't get it to open or append to file. Why?
* Web Page Designs *
/ poohba@io.com | www.io.com/~poohba\
---------------------------------------
\ For info about me send message with /
* subject "send file help" *
------------------------------
Date: Thu, 18 Mar 1999 19:38:22 GMT
From: "Vince Wilding" <vince_wilding@NOSPAMusgs.gov>
Subject: Re: Why can't i create a file with >>$file?
Message-Id: <F8t2K0.GLJ@igsrsparc2.er.usgs.gov>
Possibly a version problem. I seem to remember having this problem with a
prior , trying to append to a non-existant file. Make surte the file exists
before trying to append to it. I'm using build 513 (V 5.005_03), and your
code works as expected.
--
Vince Wilding, Web Wrangler, MetaData Maven, Perl Hacker Wannabee
USGS/BRD/OBIO Voice: 703-648-4220 Fax: 703-648-4224
El Jefe di CASA --- http://www.wdn.com/casa
mailto:vince_wilding@usgs.gov http://biology.usgs.gov/~vwilding/
The pillow on the bed belongs to the cat.
Poohba <poohba@io.com> wrote in message
news:Pine.BSF.4.05.9903181406190.16980-100000@dillinger.io.com...
> I am trying to append to a file and it won't append nor will it create the
> file if it isn't there. Why? I am using:
>
> $file = "file.dat";
> open (FILE, ">>$file") || die "Can't open $file: $!\n";
> print FILE "print all of this junk\n";
> close(FILE);
>
> I can't get it to open or append to file. Why?
>
> * Web Page Designs *
> / poohba@io.com | www.io.com/~poohba\
> ---------------------------------------
> \ For info about me send message with /
> * subject "send file help" *
>
>
------------------------------
Date: Thu, 18 Mar 1999 18:08:03 GMT
From: rob@frii.com (Rob Greenbank)
Subject: Re: Win32 Network problems with ActiveState PERL?
Message-Id: <36f140c2.68655281@news.frii.com>
On Thu, 18 Mar 1999 09:24:57 GMT, c4jgurney@my-dejanews.com wrote:
>In article <36F0433A.B5BC1CDB@dial.pipex.com>,
> Peter Connolly <xni11@dial.pipex.com> wrote:
><snip>
>> I'm trying to write a small program using ActiveState PERL 5.09 plus
>> some BackWeb extensions (which are all working fine). My problem is
>> that my PERL script can't look on a mapped drive. The code below works
>> fine when the drive in question is a local drive. If the drive is
>> mapped through Windows NT as a share, it can't locate the files and
>> halts.
></snip>
>
>If you're sure that the process is logged in with an account with proper file
>access permissions then it might be the good old win32 drive letter problem.
>
>Try changing g: in you script to the full server/drive path e.g.
>\\server\share\dir - then with a little luck all should be fine.
>
>HTH,
>
>Jeremy Gurney
>SAS Programmer
>Proteus Molecular Design Ltd.
>
>-----------== Posted via Deja News, The Discussion Network ==----------
>http://www.dejanews.com/ Search, Read, Discuss, or Start Your Own
I do it that way (giving the full path) and it works fine. -- just
remember to double the backslashes (as in "\\\\server\\share...").
Rob
------------------------------
Date: 12 Dec 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 Dec 98)
Message-Id: <null>
Administrivia:
Well, after 6 months, here's the answer to the quiz: what do we do about
comp.lang.perl.moderated. Answer: nothing.
]From: Russ Allbery <rra@stanford.edu>
]Date: 21 Sep 1998 19:53:43 -0700
]Subject: comp.lang.perl.moderated available via e-mail
]
]It is possible to subscribe to comp.lang.perl.moderated as a mailing list.
]To do so, send mail to majordomo@eyrie.org with "subscribe clpm" in the
]body. Majordomo will then send you instructions on how to confirm your
]subscription. This is provided as a general service for those people who
]cannot receive the newsgroup for whatever reason or who just prefer to
]receive messages via e-mail.
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 5168
**************************************