[16139] in Perl-Users-Digest
Perl-Users Digest, Issue: 3551 Volume: 9
daemon@ATHENA.MIT.EDU (Perl-Users Digest)
Mon Jul 10 15:22:29 2000
Date: Mon, 10 Jul 2000 12:22:17 -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: <963256937-v9-i3551@ruby.oce.orst.edu>
Content-Type: text
Perl-Users Digest Mon, 10 Jul 2000 Volume: 9 Number: 3551
Today's topics:
Can an <a href tag have multiple targets ? <m@daggins.com>
Re: Can an <a href tag have multiple targets ? (brian d foy)
Re: Can an <a href tag have multiple targets ? <s0218327@unix1.cc.ysu.edu>
Re: Can an <a href tag have multiple targets ? <emusick@garagedoor.org>
Re: Can an <a href tag have multiple targets ? (brian d foy)
Re: Can an <a href tag have multiple targets ? <m@daggins.com>
Re: Can an <a href tag have multiple targets ? <m@daggins.com>
Re: Can an <a href tag have multiple targets ? <flavell@mail.cern.ch>
Can AWK be used in Perl?? <stevieo_l@hotmail.com>
Re: Can AWK be used in Perl?? <sariq@texas.net>
Re: Can AWK be used in Perl?? <mike.solomon@eps.ltd.uk>
Re: Can AWK be used in Perl?? (Tad McClellan)
Re: Can AWK be used in Perl?? <bcaligari@shipreg.com>
Re: Can AWK be used in Perl?? <uri@sysarch.com>
Re: Can AWK be used in Perl?? <bcaligari@shipreg.com>
Re: Can get perl to open doc, but how do I get it to op <dmeyers@panix.com>
Re: Can get perl to open doc, but how do I get it to op (Villy Kruse)
Re: Can get perl to open doc, but how do I get it to op (Tad McClellan)
Re: Can get perl to open doc, but how do I get it to op (brian d foy)
Re: Can get perl to open doc, but how do I get it to op (Craig Berry)
Re: Can get perl to open doc, but how do I get it to op <flavell@mail.cern.ch>
Re: Can get perl to open doc, but how do I get it to op <dmeyers@panix.com>
Digest Administrivia (Last modified: 16 Sep 99) (Perl-Users-Digest Admin)
----------------------------------------------------------------------
Date: Sat, 8 Jul 2000 22:19:17 +0100
From: "daggins" <m@daggins.com>
Subject: Can an <a href tag have multiple targets ?
Message-Id: <8k85s8$hu2$1@lyonesse.netcom.net.uk>
If not, are there any methods of achieving the same functionality using perl
?
Basically I want a click in frame A to call a cgi in both frame B and frame
C.
Alternatively is there a way to make frame B call a cgi with target C ?
Any help GREATLY appreciated,
m@
------------------------------
Date: Sat, 08 Jul 2000 17:49:50 -0400
From: brian@smithrenaud.com (brian d foy)
Subject: Re: Can an <a href tag have multiple targets ?
Message-Id: <brian-ya02408000R0807001749500001@news.panix.com>
In article <8k85s8$hu2$1@lyonesse.netcom.net.uk>, "daggins" <m@daggins.com> posted:
> If not, are there any methods of achieving the same functionality using perl
> ?
> Basically I want a click in frame A to call a cgi in both frame B and frame
> C.
> Alternatively is there a way to make frame B call a cgi with target C ?
see the CGI Meta FAQ.
--
brian d foy
CGI Meta FAQ <URL:http://www.smithrenaud.com/public/CGI_MetaFAQ.html>
Perl Mongers <URL:http://www.perl.org/>
------------------------------
Date: Sat, 8 Jul 2000 21:52:50 -0400
From: NagaPutih <s0218327@unix1.cc.ysu.edu>
Subject: Re: Can an <a href tag have multiple targets ?
Message-Id: <Pine.A41.4.20.0007082018550.5394-100000@unix1.cc.ysu.edu>
On Sat, 8 Jul 2000, daggins wrote:
>> Basically I want a click in frame A to call a cgi in both frame B and frame
>> C.
on frame/page A, create a javascript function similar to one below:
<script language="JavaScript">
function callMulti(type) {
switch(type) {
case '1':
case '2':
case '3':
parent.b_frame.document.location =
"http://where.your/B_script/is?TYPE=" + type
parent.c_frame.document.location =
"http://where.your/C_script/is?TYPE=" + type
break
default:
alert("Invalid type: (" + type + ")")
break
}
return false
}
</script>
your next step is to have your multiple-target links to execute the above
function on click:
<a href="/" onClick="return callMulti('1')">first link</a>
few things to notice from my example above:
1) i'm using switch() which means that variable 'type' has to be
either numeric or single character (can't be string). if string
values are desired, use nested if instead
2) you may want to customize the frame references above (parent.blabla)
according to your frameset
3) see statement 'return false' above? false means that when the link
(within frame/page A) is clicked, its actual href location won't be
loaded (current page remains). true means that whatever you specify in
the link's href will be loaded into frame A
>> Alternatively is there a way to make frame B call a cgi with target C ?
i assume 'frame B' you mentioned above is script-generated, as a result of
clicking a link within frame A, by something like:
<a href="http://path.to/b/script?TYPE=1" target="b_frame">here</a>
one way to do it is to include a javascript function inside the
script-generated frame/page B, and execute it on load:
...
<script language="JavaScript">
function loadCFrame() {
parent.c_frame.document.location =
"http://some.other/script"
return false
}
</script>
</head>
<body ... onLoad="return loadCFrame()">
...
note: you may want to pass parameter(s) of frame B's script (e.q. TYPE)
to frame C's script, similar to what's shown in the above.
have fun!
-NagaPutih
------------------------------
Date: Sat, 8 Jul 2000 22:19:31 -0500
From: "CompGuy" <emusick@garagedoor.org>
Subject: Re: Can an <a href tag have multiple targets ?
Message-Id: <3967ef9a$0$33690$726baab@news.execpc.com>
you could have a click in frame A load a script in the frame b AND c area,
and then have that script load two frames this could also be done with HTML.
or you could do it with javascript:
function loadFrames(b,c) {
frameb.location.href = b;
framec.location.href = c;
}
and then have <A
HREF="javascript:loadFrames('http://url1.com','http://url2.com')">.....</A>
in frame A
i'd probably use the javascript one..
Erich Musick
Lead Designer, Web Services Unlimited
emusick@garagedoor.org
Personal: http://emusick.garagedoor.org
Business: http://design.garagedoor.org
daggins <m@daggins.com> wrote in message
news:8k85s8$hu2$1@lyonesse.netcom.net.uk...
> If not, are there any methods of achieving the same functionality using
perl
> ?
> Basically I want a click in frame A to call a cgi in both frame B and
frame
> C.
> Alternatively is there a way to make frame B call a cgi with target C ?
>
> Any help GREATLY appreciated,
>
> m@
>
>
>
------------------------------
Date: Sun, 09 Jul 2000 01:38:13 -0400
From: brian@smithrenaud.com (brian d foy)
Subject: Re: Can an <a href tag have multiple targets ?
Message-Id: <brian-ya02408000R0907000138130001@news.panix.com>
In article <3967ef9a$0$33690$726baab@news.execpc.com>, "CompGuy" <emusick@garagedoor.org> posted:
> you could have a click in frame A load a script in the frame b AND c area,
> and then have that script load two frames this could also be done with HTML.
> i'd probably use the javascript one..
you'd have to use the javascript one because you can't do the first one,
in general.
--
brian d foy
CGI Meta FAQ <URL:http://www.smithrenaud.com/public/CGI_MetaFAQ.html>
Perl Mongers <URL:http://www.perl.org/>
------------------------------
Date: Sun, 9 Jul 2000 10:52:21 +0100
From: "daggins" <m@daggins.com>
Subject: Re: Can an <a href tag have multiple targets ?
Message-Id: <8k9i09$ji5$1@taliesin2.netcom.net.uk>
Damn, i was trying to avoid using javascript. Not that i have anything
against it, but i'm trying to keep it down to html,cgi (although not a
language you still need to know the syntax), and perl. A short time ago i
knew nothing about any of this except what i wanted for my web site; having
to get into javascript also is not what i wanted- still if it's the only
way....
m@
"brian d foy" <brian@smithrenaud.com> wrote in message
news:brian-ya02408000R0907000138130001@news.panix.com...
> In article <3967ef9a$0$33690$726baab@news.execpc.com>, "CompGuy"
<emusick@garagedoor.org> posted:
>
> > you could have a click in frame A load a script in the frame b AND c
area,
> > and then have that script load two frames this could also be done with
HTML.
>
> > i'd probably use the javascript one..
>
> you'd have to use the javascript one because you can't do the first one,
> in general.
>
> --
> brian d foy
> CGI Meta FAQ <URL:http://www.smithrenaud.com/public/CGI_MetaFAQ.html>
> Perl Mongers <URL:http://www.perl.org/>
------------------------------
Date: Sun, 9 Jul 2000 11:04:42 +0100
From: "daggins" <m@daggins.com>
Subject: Re: Can an <a href tag have multiple targets ?
Message-Id: <8k9inf$jjq$1@taliesin2.netcom.net.uk>
Excellent. Thank you for the explanations as well as the src.
m@
"NagaPutih" <s0218327@unix1.cc.ysu.edu> wrote in message
news:Pine.A41.4.20.0007082018550.5394-100000@unix1.cc.ysu.edu...
> On Sat, 8 Jul 2000, daggins wrote:
> >> Basically I want a click in frame A to call a cgi in both frame B and
frame
> >> C.
>
> on frame/page A, create a javascript function similar to one below:
>
> <script language="JavaScript">
> function callMulti(type) {
> switch(type) {
> case '1':
> case '2':
> case '3':
> parent.b_frame.document.location =
> "http://where.your/B_script/is?TYPE=" + type
> parent.c_frame.document.location =
> "http://where.your/C_script/is?TYPE=" + type
> break
> default:
> alert("Invalid type: (" + type + ")")
> break
> }
> return false
> }
> </script>
>
> your next step is to have your multiple-target links to execute the above
> function on click:
>
> <a href="/" onClick="return callMulti('1')">first link</a>
>
> few things to notice from my example above:
> 1) i'm using switch() which means that variable 'type' has to be
> either numeric or single character (can't be string). if string
> values are desired, use nested if instead
> 2) you may want to customize the frame references above (parent.blabla)
> according to your frameset
> 3) see statement 'return false' above? false means that when the link
> (within frame/page A) is clicked, its actual href location won't be
> loaded (current page remains). true means that whatever you specify in
> the link's href will be loaded into frame A
>
> >> Alternatively is there a way to make frame B call a cgi with target C ?
>
> i assume 'frame B' you mentioned above is script-generated, as a result of
> clicking a link within frame A, by something like:
>
> <a href="http://path.to/b/script?TYPE=1" target="b_frame">here</a>
>
> one way to do it is to include a javascript function inside the
> script-generated frame/page B, and execute it on load:
>
> ...
> <script language="JavaScript">
> function loadCFrame() {
> parent.c_frame.document.location =
> "http://some.other/script"
> return false
> }
> </script>
> </head>
>
> <body ... onLoad="return loadCFrame()">
> ...
>
> note: you may want to pass parameter(s) of frame B's script (e.q. TYPE)
> to frame C's script, similar to what's shown in the above.
>
>
>
> have fun!
> -NagaPutih
>
>
>
------------------------------
Date: Sun, 9 Jul 2000 12:12:44 +0200
From: "Alan J. Flavell" <flavell@mail.cern.ch>
Subject: Re: Can an <a href tag have multiple targets ?
Message-Id: <Pine.GHP.4.21.0007091204570.9688-100000@hpplus03.cern.ch>
On Sun, 9 Jul 2000, brian d foy wrote:
> In article <3967ef9a$0$33690$726baab@news.execpc.com>, "CompGuy" <emusick@garagedoor.org> posted:
>
> > you could have a click in frame A load a script in the frame b AND c area,
> > and then have that script load two frames this could also be done with HTML.
>
> > i'd probably use the javascript one..
>
> you'd have to use the javascript one because you can't do the first one,
> in general.
Hmmm. Using frames is not only so complicated that authors can't work
out how to do it without help from off-topic groups: it has comparable
detrimental effects on its would-be readers. Those who implement
browsers don't seem to have coped with frames very well either.
The solution is not to throw yet more complexity at it. The solution
is in fact very straightforward, and doesn't necessitate javascript.
Just take away the complexity. :-)
my 2Rp anyhow
------------------------------
Date: Fri, 07 Jul 2000 08:48:08 GMT
From: "Steve L" <stevieo_l@hotmail.com>
Subject: Can AWK be used in Perl??
Message-Id: <cPg95.2472$V8.478664@news1.dbsch1.nb.nl.home.com>
New to Perl and want to strip the end off a string [sure there is an easy
way to do it in Perl :-) ] can use AWK to do this easily but not sure if AWK
can be used with Perl - does a module have to be loaded??
Thanks,
Steve.
------------------------------
Date: Fri, 07 Jul 2000 08:37:49 -0500
From: Tom Briles <sariq@texas.net>
Subject: Re: Can AWK be used in Perl??
Message-Id: <3965DD2D.B4DC5E39@texas.net>
Steve L wrote:
>
> New to Perl and want to strip the end off a string [sure there is an easy
> way to do it in Perl :-) ] can use AWK to do this easily but not sure if AWK
> can be used with Perl - does a module have to be loaded??
Perl is a superset of Awk.
Perl's base functions are documented in the perlfunc page of the
manual. Type:
perldoc perlfunc
at the command line, and perhaps you'll find a function that can chomp
off the newline at the end of a string.
Then, learn to fish by reading:
perldoc perldoc
perldoc perl
- Tom
------------------------------
Date: Fri, 7 Jul 2000 14:59:32 +0100
From: "mike solomon" <mike.solomon@eps.ltd.uk>
Subject: Re: Can AWK be used in Perl??
Message-Id: <8k4np1$1q14d$1@ID-36965.news.cis.dfn.de>
if you are new to perl but know awk you can write an awk script and then
convert it to perl using a2p
Regards
Mike Solomon
Tom Briles <sariq@texas.net> wrote in message
news:3965DD2D.B4DC5E39@texas.net...
> Steve L wrote:
> >
> > New to Perl and want to strip the end off a string [sure there is an
easy
> > way to do it in Perl :-) ] can use AWK to do this easily but not sure if
AWK
> > can be used with Perl - does a module have to be loaded??
>
> Perl is a superset of Awk.
>
> Perl's base functions are documented in the perlfunc page of the
> manual. Type:
>
> perldoc perlfunc
>
> at the command line, and perhaps you'll find a function that can chomp
> off the newline at the end of a string.
>
> Then, learn to fish by reading:
>
> perldoc perldoc
> perldoc perl
>
> - Tom
------------------------------
Date: Fri, 7 Jul 2000 10:07:21 -0400
From: tadmc@metronet.com (Tad McClellan)
Subject: Re: Can AWK be used in Perl??
Message-Id: <slrn8mbp0p.lg3.tadmc@magna.metronet.com>
On Fri, 07 Jul 2000 08:48:08 GMT, Steve L <stevieo_l@hotmail.com> wrote:
>New to Perl and want to strip the end off a string [sure there is an easy
>way to do it in Perl :-) ]
perldoc -f substr
----------------
#!/usr/bin/perl -w
use strict;
$_ = 'New to Perl and want to strip the end off a string';
substr($_, -6) = ''; # remove last 6 characters
print "'$_'\n";
----------------
>can use AWK to do this easily
can also use Perl to do this easily then, since Perl is a
superset of awk (except for the $/ thing :-).
If fact, part of the normal installation of "perl" also installs
a program called "a2p", an "awk to Perl" translator.
So, you can write it in awk, then run it through a2p to see
how to do the same thing in (often non-idiomatic) Perl.
>but not sure if AWK
>can be used with Perl -
You _can_ use awk (indeed you can use _any_ external program),
but it will be faster, more portable, and more maintainable
to do it all in native Perl.
"Shelling out" is something that should be avoided if possible.
>does a module have to be loaded??
No.
--
Tad McClellan SGML Consulting
tadmc@metronet.com Perl programming
Fort Worth, Texas
------------------------------
Date: Fri, 7 Jul 2000 15:31:06 +0200
From: "Brendon Caligari" <bcaligari@shipreg.com>
Subject: Re: Can AWK be used in Perl??
Message-Id: <8k4lg8$us$1@news.news-service.com>
"Steve L" <stevieo_l@hotmail.com> wrote in message
news:cPg95.2472$V8.478664@news1.dbsch1.nb.nl.home.com...
> New to Perl and want to strip the end off a string [sure there is an easy
> way to do it in Perl :-) ] can use AWK to do this easily but not sure if
AWK
> can be used with Perl - does a module have to be loaded??
>
> Thanks,
>
> Steve.
>
>
awk is a fantastic language which i prefer to perl for many things.
however, anthing that can be done in awk can be just as easily (more or
less) although less 'academically' in perl
i've been messing around with perl for about 2 weeks, and can say that
despite being a moron i'm already in a position to do in perl everything i
used to do in sed and awk. Many guys in this channel seem to be perlphiles
who think the world revolves around perl. I still use csh/sed/awk for many
daily tasks.
Brendon
------------------------------
Date: Fri, 07 Jul 2000 22:16:50 GMT
From: Uri Guttman <uri@sysarch.com>
Subject: Re: Can AWK be used in Perl??
Message-Id: <x7og49povh.fsf@home.sysarch.com>
>>>>> "BC" == Brendon Caligari <bcaligari@shipreg.com> writes:
BC> i've been messing around with perl for about 2 weeks, and can say
BC> that despite being a moron i'm already in a position to do in perl
BC> everything i used to do in sed and awk. Many guys in this channel
BC> seem to be perlphiles who think the world revolves around perl. I
BC> still use csh/sed/awk for many daily tasks.
as someone who used to be in your shoes (10 years ago), i will bet you
will grow out of the csh/sed/awk world. other than for VERY simple
tasks, they all pale in comparison to perl. and this is not a flame
against those tools, and i would totally regret losing them from the
unix toolbox, but i never use them anymore.
just wait until you have to make one of your old scripts do something a
little more complex. then you will rewrite it in perl. that will happen
more and more until you just start to write them in perl to begin with.
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: Sat, 8 Jul 2000 11:15:56 +0200
From: "Brendon Caligari" <bcaligari@shipreg.com>
Subject: Re: Can AWK be used in Perl??
Message-Id: <8k6qt1$9sq$1@news.news-service.com>
"Uri Guttman" <uri@sysarch.com> wrote in message
news:x7og49povh.fsf@home.sysarch.com...
> >>>>> "BC" == Brendon Caligari <bcaligari@shipreg.com> writes:
>
> BC> i've been messing around with perl for about 2 weeks, and can say
> BC> that despite being a moron i'm already in a position to do in perl
> BC> everything i used to do in sed and awk. Many guys in this channel
> BC> seem to be perlphiles who think the world revolves around perl. I
> BC> still use csh/sed/awk for many daily tasks.
>
> as someone who used to be in your shoes (10 years ago), i will bet you
> will grow out of the csh/sed/awk world. other than for VERY simple
> tasks, they all pale in comparison to perl. and this is not a flame
> against those tools, and i would totally regret losing them from the
> unix toolbox, but i never use them anymore.
>
> just wait until you have to make one of your old scripts do something a
> little more complex. then you will rewrite it in perl. that will happen
> more and more until you just start to write them in perl to begin with.
>
> uri
>
I agree with you fully. I never saw myself writing 'application class'
stuff
in csh/awk :) I find sed pretty handy when doing simple edits across
multiple
files (say, a batch edit of zone files on bind). I prefer shell to perl
when doing
no more than say, running certain processes according to certain
'circumstances'.
I believe that the simplest solutions are always the best.
At times, channels like this at piss me off because of a few tunnel visioned
topic-philes. I used to hate so called 'Dbase programmers' back in the
early
90s who used to try to translate all problems in terms of the only tool they
(thought they) knew how to use. I accept and embrace perl as a brilliant
and useful tool, but not as the answer to all the problems of the world :-)
Brendon
+++
------------------------------
Date: 07 Jul 2000 10:17:25 -0400
From: David Meyers <dmeyers@panix.com>
Subject: Re: Can get perl to open doc, but how do I get it to open html on thefly?
Message-Id: <yobem56t47e.fsf@panix2.panix.com>
tadmc@metronet.com (Tad McClellan) writes:
> On Sun, 02 Jul 2000 17:05:50 GMT, arthur <star@sonic.net> wrote:
> >Thanks for the help I just spent 2 hours and could not find perldoc.
> It *comes with* perl.
> You _do_ have perl, don't you?
To be fair, unfortunately, some folks who are trying
to write perl code might not actually have perl -- ie.
they may be uploading perl cgi programs to a server on
which they may have only ftp, not shell access. One of
the places I work with is that way. It's a hell of a
crappy way to have to work, and I highly recommend that
even if that's the situation, the OP installs perl on
his local machine, webserver or not, and try things
from the command line.
Nevertheless, even with the local installation of perl,
I frequently find myself looking up stuff on the various
web pages. www.perl.com, etc.
> >I even telneted to my server.
Evidence that the OP is not in the unfortunate situation
I describe above.
> The docs and FAQs can be found at www.perl.com by clicking
> on the appropriate ("DOCUMENTATION" and "FAQs") links there.
--d
------------------------------
Date: 7 Jul 2000 15:15:09 GMT
From: vek@pharmnl.ohout.pharmapartners.nl (Villy Kruse)
Subject: Re: Can get perl to open doc, but how do I get it to open html on thefly?
Message-Id: <slrn8mbsvl.s9u.vek@pharmnl.ohout.pharmapartners.nl>
On 07 Jul 2000 10:17:25 -0400, David Meyers <dmeyers@panix.com> wrote:
>tadmc@metronet.com (Tad McClellan) writes:
>
>> On Sun, 02 Jul 2000 17:05:50 GMT, arthur <star@sonic.net> wrote:
>
>> >Thanks for the help I just spent 2 hours and could not find perldoc.
>
>> It *comes with* perl.
>> You _do_ have perl, don't you?
>
>To be fair, unfortunately, some folks who are trying
>to write perl code might not actually have perl -- ie.
>they may be uploading perl cgi programs to a server on
>which they may have only ftp, not shell access. One of
>the places I work with is that way. It's a hell of a
>crappy way to have to work, and I highly recommend that
>even if that's the situation, the OP installs perl on
>his local machine, webserver or not, and try things
>from the command line.
>
And it is so sad, because for a very modest investment you can
get perl for win9x or even a full blown webserver running on
a linux system to test with.
Villy
------------------------------
Date: Fri, 7 Jul 2000 11:08:12 -0400
From: tadmc@metronet.com (Tad McClellan)
Subject: Re: Can get perl to open doc, but how do I get it to open html on thefly?
Message-Id: <slrn8mbsis.lsu.tadmc@magna.metronet.com>
On 7 Jul 2000 15:15:09 GMT, Villy Kruse <vek@pharmnl.ohout.pharmapartners.nl> wrote:
>On 07 Jul 2000 10:17:25 -0400, David Meyers <dmeyers@panix.com> wrote:
>>tadmc@metronet.com (Tad McClellan) writes:
>>
>>> On Sun, 02 Jul 2000 17:05:50 GMT, arthur <star@sonic.net> wrote:
>>
>>> >Thanks for the help I just spent 2 hours and could not find perldoc.
>>
>>> It *comes with* perl.
>>> You _do_ have perl, don't you?
>>
>>To be fair, unfortunately, some folks who are trying
>>to write perl code might not actually have perl -- ie.
>>they may be uploading perl cgi programs to a server on
>>which they may have only ftp, not shell access. One of
>>the places I work with is that way. It's a hell of a
>>crappy way to have to work, and I highly recommend that
>>even if that's the situation, the OP installs perl on
>>his local machine, webserver or not, and try things
>>from the command line.
>>
>
>
>And it is so sad, because for a very modest investment you can
>get perl for win9x or even a full blown webserver running on
>a linux system to test with.
^^^^^^^^^^^^
You can also have a full blown webserver running on win32, no?
Linux is not required. A web server is all that is required
(to be able to fully test CGI programs locally).
(but, of course, none of the "web server" part in on-topic
in the Perl newsgroup...
)
--
Tad McClellan SGML Consulting
tadmc@metronet.com Perl programming
Fort Worth, Texas
------------------------------
Date: Fri, 07 Jul 2000 13:17:08 -0400
From: brian@smithrenaud.com (brian d foy)
Subject: Re: Can get perl to open doc, but how do I get it to open html on thefly?
Message-Id: <brian-ya02408000R0707001317080001@news.panix.com>
In article <slrn8mbsis.lsu.tadmc@magna.metronet.com>, tadmc@metronet.com (Tad McClellan) posted:
> Linux is not required. A web server is all that is required
> (to be able to fully test CGI programs locally).
but then, with CGI.pm, you don't even need a webserver, although
you will need an operating system which has the concept of
environment variables.
--
brian d foy
CGI Meta FAQ <URL:http://www.smithrenaud.com/public/CGI_MetaFAQ.html>
Perl Mongers <URL:http://www.perl.org/>
------------------------------
Date: Fri, 07 Jul 2000 19:24:10 GMT
From: cberry@cinenet.net (Craig Berry)
Subject: Re: Can get perl to open doc, but how do I get it to open html on thefly?
Message-Id: <smcbiq5fnu154@corp.supernews.com>
David Meyers (dmeyers@panix.com) wrote:
: To be fair, unfortunately, some folks who are trying
: to write perl code might not actually have perl -- ie.
: they may be uploading perl cgi programs to a server on
: which they may have only ftp, not shell access.
Presumably there's a machine they're editing the code on, and running that
ftp client on, true? So why not install Perl on *that*? Even if they
can't run their CGI app locally for whatever reason, this will give them
all the doc locally.
: One of
: the places I work with is that way. It's a hell of a
: crappy way to have to work, and I highly recommend that
: even if that's the situation, the OP installs perl on
: his local machine, webserver or not, and try things
: from the command line.
Exactly! What conceivable excuse is there for *not* doing this?!
: Nevertheless, even with the local installation of perl,
: I frequently find myself looking up stuff on the various
: web pages. www.perl.com, etc.
Well, yes; and in various books, Deja archives, code (my own and
otherwise), and so forth.
--
| Craig Berry - http://www.cinenet.net/users/cberry/home.html
--*-- "Beauty and strength, leaping laughter and delicious
| languor, force and fire, are of us." - Liber AL II:20
------------------------------
Date: Fri, 7 Jul 2000 17:37:18 +0200
From: "Alan J. Flavell" <flavell@mail.cern.ch>
Subject: Re: Can get perl to open doc, but how do I get it to open html on thefly?
Message-Id: <Pine.GHP.4.21.0007071732210.8422-100000@hpplus03.cern.ch>
On 7 Jul 2000, David Meyers wrote:
> To be fair, unfortunately, some folks who are trying
> to write perl code might not actually have perl
You give a very poor impression of trying to be "fair". To be fair, a
surprising number of people expert in their subject come here to
discuss technical issues with us, and I for one deeply appreciate
that. I don't want to see them driven away by people who think it's
OK to spend thousands of dollars worth of other people's time
worldwide in reading their plaintive cries of (in effect) "please read
the documentation to me, I'm too pathetic to get it and read it for
myself".
> Nevertheless, even with the local installation of perl,
> I frequently find myself looking up stuff on the various
> web pages. www.perl.com, etc.
They won't even do that, it seems.
------------------------------
Date: 07 Jul 2000 10:34:25 -0400
From: David Meyers <dmeyers@panix.com>
Subject: Re: Can get perl to open doc, but how do I get it to open html on thefly?
Message-Id: <yob8zvet3f2.fsf@panix2.panix.com>
arthur <star@sonic.net> writes:
Arthur, one more formatting suggestion - though I thank you, too,
for having taken a couple of others already -- please make sure
your newsreader puts quote marks (traditionally > ) in front of
the text you quote. In the following, it is not clear which
text was Tad's and which was yours. I know only because I just
finished reading Tad's previous note. I'll add > as necessary.
>> >Thanks for the help I just spent 2 hours and could not find perldoc.
> in article slrn8lv0fp.amr.tadmc@magna.metronet.com, Tad McClellan at
> tadmc@metronet.com wrote on 7/2/00 9:55 AM:
>> It *comes with* perl.
>> You _do_ have perl, don't you?
> Right now I have MacPerl because I am on a Mac. But I want to ftp my perl
> script on to my server and run it from there. Otherwise I think? I will have
> to convert the macPerl to Perl so it will work on the WWW
MacPerl actually does come with a complete set of docs, but
since you don't have a command line, things like "perldoc something"
obviously are hard to parse. However, since MacPerl runs as a
regular mac application, check out the excellent help which
comes with it (ie. the help menu). Also, see this:
http://www.macperl.com/depts/mpcd/PTF/Install.html to make
sure you've installed correctly and completely.
To be quite honest, I've barely played around with MacPerl,
since I normally telnet from my mac to a unix machine which
has a more traditional perl installation as well as my
preferred development environment.
If you are telnetting to such a place, try typing "perldoc"
on the command line there. If you are not actually telnetting,
but instead just ftping (ie. you can send a file over but
you don't have a command line), it'll be trickier as you'll
have to develop and test on your mac and then ftp the finished
programs over. One hugely helpful thing to have for that would
be an editor which lets you open and edit files which are
being ftp'd transparently - BBEdit does this (Alpha might, I
don't remember).
--d
------------------------------
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 3551
**************************************