[19334] in Perl-Users-Digest
Perl-Users Digest, Issue: 1529 Volume: 10
daemon@ATHENA.MIT.EDU (Perl-Users Digest)
Wed Aug 15 09:05:31 2001
Date: Wed, 15 Aug 2001 06:05:09 -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: <997880709-v10-i1529@ruby.oce.orst.edu>
Content-Type: text
Perl-Users Digest Wed, 15 Aug 2001 Volume: 10 Number: 1529
Today's topics:
Re: Encrypted Email (Yves Orton)
Re: error with signal handling <goldbb2@earthlink.net>
FAQ: How do I set a file's timestamp in perl? <faq@denver.pm.org>
For each Object in ObjContainer ... How to translate to (derek chen)
Re: For each Object in ObjContainer ... How to translat <peter.sogaard@tjgroup.com>
Re: From UNIX to Windows (Kev The Condenser)
Re: Help with an HTML parsing problem (Eric Bohlman)
Re: Is it a number? <goldbb2@earthlink.net>
Re: make file's last field as first <krahnj@acm.org>
Re: make file's last field as first <peter.sogaard@tjgroup.com>
Re: Need Perl module or regexp to slurp specific XML re <mel2000@hotmaildot.com>
Re: Need Perl module or regexp to slurp specific XML re (Eric Bohlman)
Re: perldoc is like Greek to a beginner?? (Yves Orton)
Re: screen resolution detection <somewhere@in.paradise.net>
Re: screen resolution detection (wade)
Session Variables <info@rippo>>REMOVE<<.co.uk>
Re: substitution - Linux v Win32 <tinamue@zedat.fu-berlin.de>
Re: substitution - Linux v Win32 <somewhere@in.paradise.net>
Re: Using a fake name on this newsgroup and in places l <djberge@uswest.com>
Re: Why is there so much white space in perl documentat (Yves Orton)
Digest Administrivia (Last modified: 6 Apr 01) (Perl-Users-Digest Admin)
----------------------------------------------------------------------
Date: 15 Aug 2001 04:22:11 -0700
From: demerphq@hotmail.com (Yves Orton)
Subject: Re: Encrypted Email
Message-Id: <74f348f7.0108150322.3ff08616@posting.google.com>
gnari <gnarinn@hotmail.com> wrote in message news:<997727220.722197456285357.gnarinn@hotmail.com>...
> unfortunately, OpenSSL needs compiling, thus shell access, so the OP
> cannot install it.
Oh, I didnt realize that from the first post in this thread. Can he
just get a precompiled for the os he needs and upload it?
> However, there is a chance OpenSSL is already installed on the ISPs
> server. then it is a question whether a cgi can find/use the tools
> (i am assuming you meant to send the emails from cgi)
>
> did you look at the crypt stuff on CPAN to see if there is some
> pure-perl implementations you can use?
Ive been messing around in this area a bit. There are pure perl
implementations of Blowfish and DES (Crypt::Blowfish_PP and
Crypt::DES_PP) so he should be able to sort something out.
yves
------------------------------
Date: Wed, 15 Aug 2001 06:39:49 -0400
From: Benjamin Goldberg <goldbb2@earthlink.net>
Subject: Re: error with signal handling
Message-Id: <3B7A5175.6B317C5D@earthlink.net>
yawnmoth wrote:
>
> I wrote a script to test signal handling, and...
> it doesn't seem to work (as in, when I hit a break key - crtl+c, or
> whatever, it doesn't say ending, and it doesn't stop).
What kind of terminal program or terminal emulator are you running it
from? How fast is the IO? for example, I have to telnet if I want to
use perl with unix, so my terminal is the MS telnet program. So if I
type "cat filename" and it's huge, and send ctrl+C, it ends up sending
most/all of it before the break command gets through.
Does it work if you add inside the while loop something like
select(undef,undef,undef,0.2) ?
--
I'm not a programmer but I play one on TV...
------------------------------
Date: Wed, 15 Aug 2001 12:17:08 GMT
From: PerlFAQ Server <faq@denver.pm.org>
Subject: FAQ: How do I set a file's timestamp in perl?
Message-Id: <8Lte7.114$V3.191999488@news.frii.net>
This message is one of several periodic postings to comp.lang.perl.misc
intended to make it easier for perl programmers to find answers to
common questions. The core of this message represents an excerpt
from the documentation provided with every Standard Distribution of
Perl.
+
How do I set a file's timestamp in perl?
You use the utime() function documented in the utime entry in the
perlfunc manpage. By way of example, here's a little program that copies
the read and write times from its first argument to all the rest of
them.
if (@ARGV < 2) {
die "usage: cptimes timestamp_file other_files ...\n";
}
$timestamp = shift;
($atime, $mtime) = (stat($timestamp))[8,9];
utime $atime, $mtime, @ARGV;
Error checking is, as usual, left as an exercise for the reader.
Note that utime() currently doesn't work correctly with Win95/NT ports.
A bug has been reported. Check it carefully before using utime() on
those platforms.
-
Documents such as this have been called "Answers to Frequently
Asked Questions" or FAQ for short. They represent an important
part of the Usenet tradition. They serve to reduce the volume of
redundant traffic on a news group by providing quality answers to
questions that keep coming up.
If you are some how irritated by seeing these postings you are free
to ignore them or add the sender to your killfile. If you find
errors or other problems with these postings please send corrections
or comments to the posting email address or to the maintainers as
directed in the perlfaq manual page.
Answers to questions about LOTS of stuff, mostly not related to
Perl, can be found by pointing your news client to
news:news.answers
or to the many thousands of other useful Usenet news groups.
Note that the FAQ text posted by this server may have been modified
from that distributed in the stable Perl release. It may have been
edited to reflect the additions, changes and corrections provided
by respondents, reviewers, and critics to previous postings of
these FAQ. Complete text of these FAQ are available on request.
The perlfaq manual page contains the following copyright notice.
AUTHOR AND COPYRIGHT
Copyright (c) 1997-1999 Tom Christiansen and Nathan
Torkington. All rights reserved.
This posting is provided in the hope that it will be useful but
does not represent a commitment or contract of any kind on the part
of the contributers, authors or their agents.
05.22
--
This space intentionally left blank
------------------------------
Date: 15 Aug 2001 03:59:19 -0700
From: u8526505@ms27.hinet.net (derek chen)
Subject: For each Object in ObjContainer ... How to translate to perl
Message-Id: <85789064.0108150259.4a9df698@posting.google.com>
I'm using a VB script with the following statement
set websvc = GetObject("IIS://tw-derek/W3svc/1/root/test")
For Each OBJ in websvc
wscript.echo obj.name
Next
websvc is an object container and I can use "For Each" statement to enumate
all the objects it contains.I'm really confused about how I can use perl
WIN32:OLE module to accomplish the same task.
use WIN32::OLE;
$p=Win32::OLE->GetObject("IIS://tw-derek/W3svc/1/root/test");
?????
------------------------------
Date: Wed, 15 Aug 2001 14:22:53 +0200
From: "Peter Søgaard" <peter.sogaard@tjgroup.com>
Subject: Re: For each Object in ObjContainer ... How to translate to perl
Message-Id: <3b7a69b3$0$328$edfadb0f@dspool01.news.tele.dk>
> use WIN32::OLE;
> $p=Win32::OLE->GetObject("IIS://tw-derek/W3svc/1/root/test");
> ?????
well, if that object is a container, you should store it in list context,
using @, not $.
@p=Win32::OLE->GetObject("IIS://tw-derek/W3svc/1/root/test");
foreach $obj ( @p ){
print $obj->name;
}
I have not tested this...
------------------------------
Date: 15 Aug 2001 10:05:13 GMT
From: mkc@aon.at (Kev The Condenser)
Subject: Re: From UNIX to Windows
Message-Id: <3b7a4959$0$26754$6e365a64@newsreader02.highway.telekom.at>
In article <3B73171E.E164A8BE@earthlink.net>, Benjamin Goldberg wrote:
[cut]
> try this code:
> #!/usr/local/bin/perl -wT
> use strict;
> use CGI;
>
> print header, begin_html;
> print "<H1>Hellow World</H1>";
> print end_html;
> __END__
>
did not thought that the CGI module would be _that_ powerful:)
used it only for getting GETted parameters...
--
Could not open signature - no such file or directory at - line 1 :)
------------------------------
Date: 15 Aug 2001 10:18:10 GMT
From: ebohlman@omsdev.com (Eric Bohlman)
Subject: Re: Help with an HTML parsing problem
Message-Id: <9ldi92$9ir$2@bob.news.rcn.net>
Dav Lam <crud@hongkong.com> wrote:
> I want to determine from an html that if it contains a hyperlink which
> name--the text between the start and end tags of that hyperlink--is
> "next", i've read the HTML::LinkExtor manpage and it seemds that it
> can only parse out the attribute and what tag is it the link
> Can anyone give me a clue how to do this task?
I'd use HTML::TokeParser; initialize everything and then repeatedly do
get_tag('a') followed by get_trimmed_text('/a') until the result of the
latter is "next." See the docs for HTML::TokeParser; it's actually quite
easy to use once you get the hang of it.
------------------------------
Date: Wed, 15 Aug 2001 06:28:21 -0400
From: Benjamin Goldberg <goldbb2@earthlink.net>
Subject: Re: Is it a number?
Message-Id: <3B7A4EC5.B0784D83@earthlink.net>
Philippe PERRIN wrote:
>
> Bart Lateur wrote:
> > >for float : $x =~ /^(\d+)(\.?)(\d*)$/;
> >
> > Why the parens?
>
> easier to read + easier to retrieve the integer part ($1) and the
> floating part ($3)
>
> > Plus: you may just allow a "-" sign. Provisions for an exponent
> > (/[eE][+-]?\d+/) could be added too. And finally, you might allow a
> > sting like ".1" as well.
>
> true.
> let's add "-" and the .1 : /^(-?)(\d*)(\.?)(\d*)\d?$/;
> (allows number of type
> 1.
> .1
> 1.1
> 1
> )
Except that that also allows "." as a number, too.
m[^\s*
([-+])?
(\d+\.\d*|\.\d+)
([eE][-+]?\d+)?
\s*$]x;
--
I'm not a programmer but I play one on TV...
------------------------------
Date: Wed, 15 Aug 2001 10:28:15 GMT
From: "John W. Krahn" <krahnj@acm.org>
Subject: Re: make file's last field as first
Message-Id: <3B7A4EF8.BD11929A@acm.org>
PM Wong wrote:
>
> Sorry for the trivial question.
> I have a file with varying no. of fields (space delimited)
> for each line
> My objective is to make the last field become the first,
> plus adding a tab character to delimit this field from the other
> fields.
> Any perl script could accomplish this ?
perl -lpe's/^(.*)\s+(\S+)$/$2\t$1/' yourfile
John
--
use Perl;
program
fulfillment
------------------------------
Date: Wed, 15 Aug 2001 14:16:19 +0200
From: "Peter Søgaard" <peter.sogaard@tjgroup.com>
Subject: Re: make file's last field as first
Message-Id: <3b7a6829$0$339$edfadb0f@dspool01.news.tele.dk>
> I have a file with varying no. of fields (space delimited)
> for each line
> My objective is to make the last field become the first,
> plus adding a tab character to delimit this field from the other
> fields.
Something like this?
open( FILE, 'myfile.txt' ) or die "cannot open file: $!";
$outFile = "";
while(<FILE>){
s/(.*?) ([^ ]*?)$/$2\t$1/;
$outFile .= $_;
}
close( FILE );
open( FILE, '>myfile.txt' ) or die "cannot open file: $!";
print FILE $outFile;
close( FILE );
------------------------------
Date: Wed, 15 Aug 2001 03:24:59 -0700
From: "M.L." <mel2000@hotmaildot.com>
Subject: Re: Need Perl module or regexp to slurp specific XML records
Message-Id: <9ldio6$8kvt5$1@ID-19545.news.dfncis.de>
> In comp.lang.perl.misc M.L. <mel2000@hotmaildot.com> wrote:
> > Given the following fixed XML records format:
>
> > <record id="0128">
> > <name>John Doe</name>
> > <address>123 Main St.</address>
> > <city>Lake Elsinore</city>
> > <state>CA</state>
> > <phone>(123) 456-7890</phone>
> > <zip>12345</zip>
> > <email>jd@domain.com</email>
> > </record>
>
> > I don't want to slurp the entire database, just those records (and their
> > child elements) where, for example, <state> = NY
>
> > And I'd like to assign each record to a hash where:
>
> > $records{$id}{'id'} = ...
> > $records{$id}{'name'} = ...
> > $records{$id}{'address'} = ...
> > $records{$id}{'city'} = ...
> > $records{$id}{'state'} = NY
> > $records{$id}{'phone'} = ...
> > ...
>
> > Which pure Perl (no C compiler needed) module or Perl regExp solution
would
> > be best for this effort? The other modules I've looked at either needed
a C
> > compiler, or required the entire XML database to be slurped before
parsing.
>
> If "pure Perl" still allows requiring XML::Parser to be installed, you
> could try XML::Records.
>
I couldn't find any info in XML::Records indicating that it can extract
records based on some value of a child element. All the examples showed
record extractions based on an element name only, not a condition of that
element's value. Please correct me if I'm wrong.
Regards,
M.L.
------------------------------
Date: 15 Aug 2001 12:55:36 GMT
From: ebohlman@omsdev.com (Eric Bohlman)
Subject: Re: Need Perl module or regexp to slurp specific XML records
Message-Id: <9ldrg8$9gp$1@bob.news.rcn.net>
In comp.text.xml M.L. <mel2000@hotmaildot.com> wrote:
> I couldn't find any info in XML::Records indicating that it can extract
> records based on some value of a child element. All the examples showed
> record extractions based on an element name only, not a condition of that
> element's value. Please correct me if I'm wrong.
If you're using the latest version of XML::Records (the one based on
XML::TokeParser), you can call begin_saving() at the beginning of a
record, use get_tag() and get_text() to determine if there's a match, and
then call restore_saved() and get_record().
------------------------------
Date: 15 Aug 2001 04:15:57 -0700
From: demerphq@hotmail.com (Yves Orton)
Subject: Re: perldoc is like Greek to a beginner??
Message-Id: <74f348f7.0108150315.47beb688@posting.google.com>
tadmc@augustmail.com (Tad McClellan) wrote in message news:<slrn9nic77.9os.tadmc@tadmc26.august.net>...
> Yves Orton <demerphq@hotmail.com> wrote:
> >tadmc@augustmail.com (Tad McClellan) wrote in message news:<slrn9n34mg.nit.tadmc@tadmc26.august.net>...
> >> Carlos C. Gonzalez <miscellaneousemail@yahoo.com> wrote:
> >> >In article <slrn9n2gsj.mbp.tadmc@tadmc26.august.net>, Tad McClellan at
> >> >tadmc@augustmail.com says...
> MJD manages to describe "Thompson's construction" and
> Non-deterministic Finite state Automata (NFA) without
> using Big Words:
>
> http://www.plover.com/~mjd/perl/Regex/
>
> including a sidebar _with_ Big Words:
>
> http://perl.plover.com/Regex/sidebar.html
>
>
> :-)
>
> Thanks Dominus.
Hmm, I will have to check that out. I got most of my knowledge of
NFA's from the red dragon. I knew a lot about DFA (I always heard
them called FSA or FSM or Turing Machines) from long before from doing
turing machine stuff (palindrome problem and like) as well as from
doing FSA Genetic Algorithyms. (Tracker et al) But a rehash in
simpler words still would be appreciated.
:-)
> >Also, to get picky, strictly speaking Perls regexes are _not_ regular.
>
> Yes, and I got around to saying that later:
>
> Message-Id: <slrn9n4407.onj.tadmc@tadmc26.august.net>
Yeah sorry I hadnt got that far in the thread before I commented.
> >(Come to
> >think of it, I am sure i have seen something somewhere (maybe a faq)
> >that says that perl syntax in general is not propperly speaking
> >regular either.)
> Most programming languages are "Context Free Grammars" the
> next step up in Chomsky's hierarchy from "Regular Grammars".
>
> Arbitrarily-deep nesting indicates that it is not Regular.
SNIP
> Can't parse that (to an arbitrary depth) with a Regular Expression.
Yeah. I knew that. Theres a great example of why just using letters
in the red dragon. Theres a couple of interesting exercises there as
well. Id site a few of them but my memory is inexact and the book is
at home.
On the other hand I think I confused things slightly. with the
earlier point i really meant that you cant produce a grammer for perl.
Not sure if im correct or if I am why that would be.
Question: Are C and Pascal and VB context free? They allow an
arbitrary depth of nesting so my guess is that they are not. If this
is true then surely your above comment about most programming
langauges being context free really only applies to non-gpl (general
purpose langs) languages? Or am I going waaaay off? (Feeling a bit
unsure of things just now... :-)
Anyway, thanks for the posts Tad, youre a good read.
Yves
------------------------------
Date: Wed, 15 Aug 2001 20:38:27 +1000
From: "Tintin" <somewhere@in.paradise.net>
Subject: Re: screen resolution detection
Message-Id: <kkse7.24$VE1.639024@news.interact.net.au>
"MrMean" <lukehall@ace-net.com.au> wrote in message
news:3b79ece7@nap-ns1.netconnect.net.au...
> I'm trying to resize erverthing on my site to allow for users who are
> browsing in 640x480, 800x600, 1024x768.
>
> I've built the site on 800x600.
>
> Anyone know how to detect the screen resolution?
Ring up all your users and ask them what they have the resolution set to.
------------------------------
Date: 15 Aug 2001 04:46:03 -0700
From: jjchen@alumni.ice.ntnu.edu.tw (wade)
Subject: Re: screen resolution detection
Message-Id: <4259465b.0108150346.66583639@posting.google.com>
logan@cs.utexas.edu (Logan Shaw) wrote in message news:<9ld5s5$5av$1@charity.cs.utexas.edu>...
> In article <3b79ece7@nap-ns1.netconnect.net.au>,
> MrMean <lukehall@ace-net.com.au> wrote:
> >I'm trying to resize erverthing on my site to allow for users who are
> >browsing in 640x480, 800x600, 1024x768.
> >
> >I've built the site on 800x600.
>
> My screen resolution is 1280x1024. Why should I help you when you want
> to exclude me?
>
> >Anyone know how to detect the screen resolution?
>
> You can't. No HTML or HTTP standard that I know of even specifies that
> there has to BE a screen resolution at the other end. Some users are
> blind, and don't use a screen at all. Some use text-based browsers
> where resolution is meaningless and all that matters is rows and
> columns of text.
>
> In theory, one could use a vector-based display to implement a
> graphical browser, and also one could certainly use a scalable outline
> format (like display postscript) so that how much the web browser
> displays isn't directly connected to the screen resolution.
>
> Or, like I do, one could set their fonts to a larger size than you
> might expect, so that if you attempt to guess at things based on
> resolution, you'll be way off.
>
> The best idea is to make a web site that will look reasonable on all
> reasonable web browsers. Since you can never predict how all
> reasonable web browsers will behave, the only real way to do this is to
> avoid doing things on a case-by-case basis.
>
> Also, what does this have to do with Perl?
>
> - Logan
Try use javascript's screen or window object to get the size of user's
screen/window.
It means that you can send a web to detect the information, and then,
refresh the page to your cgi.
How to do it?
do u know "onLoad"?
Yes, use it is a not so bad idea, here is an example which need
to be complete by yourself.
<html>
...
<script ...>
function send_back()
{
....get the info of screen/window what you want....
document.forms[0].size = ......;
document.forms[0].submit();
}
</script>
<body onLoad="send_back();">
<form action="MY_CGI">
<input name=size>
</form>
</body>
</html>
------------------------------
Date: Wed, 15 Aug 2001 13:04:36 GMT
From: "Rippo" <info@rippo>>REMOVE<<.co.uk>
Subject: Session Variables
Message-Id: <Erue7.11$p61.400@newreader.ukcore.bt.net>
Hi All,
I have been programming websites using ASP on an NT IIS webserver for many
years. One of the benefits is that you can use session variables in the
GLOBAL.ASA file. These variables can be used on any ASP page for every
session that is open.
Does PERL have an equivalant?
If not what is the best work around? (I do not want to pass variables into a
database or as part of a query string in the URL)
Thanks for your help
Rippo
------------------------------
Date: 15 Aug 2001 10:38:15 GMT
From: Tina Mueller <tinamue@zedat.fu-berlin.de>
Subject: Re: substitution - Linux v Win32
Message-Id: <9ldjen$8krrn$3@fu-berlin.de>
Wyzelli <wyzelli@yahoo.com> wrote:
> I have a squid log file on my Linux server, which I want to copy onto my
> local drive (win2k) before processing.
> Naturally if I copy the file from the Samba share, I have the \r\n v \n
> problem which I can easily fix by doing:
> perl -p -i*.bak -e "s/\r\n/\n/g" filename
> But alas, running the same command on the Linux box via telnet (s/"/'/) does
> not affect the original file at all, though the .bak is created quite
> happily.
> I have not yet delved much into Perl's command line options, and wonder if I
> am missing something, or is this not something I can do on the Linux box?
maybe you have the wrong permissions?
the following works for me:
12:27pm tina@lux:perl 559> cat testfile
Pascal
12:27pm tina@lux:perl 560> perl -p -i*.bak -e 's/ascal/erl/' testfile
12:28pm tina@lux:perl 561> cat testfile
Perl
12:28pm tina@lux:perl 562> cat testfile.bak
Pascal
(note that you can shorten the option part to "perl -pi.bak -e")
regards,
tina
--
http://www.tinita.de \ enter__| |__the___ _ _ ___
tina's moviedatabase \ / _` / _ \/ _ \ '_(_-< of
search & add comments \ \ _,_\ __/\ __/_| /__/ perception
--- Warning: content of homepage hopelessly out-dated ---
------------------------------
Date: Wed, 15 Aug 2001 20:42:13 +1000
From: "Tintin" <somewhere@in.paradise.net>
Subject: Re: substitution - Linux v Win32
Message-Id: <Tnse7.25$7F1.649229@news.interact.net.au>
"Wyzelli" <wyzelli@yahoo.com> wrote in message
news:nfne7.73$1T.191471@wa.nnrp.telstra.net...
>
>
> I have a squid log file on my Linux server, which I want to copy onto my
> local drive (win2k) before processing.
>
> Naturally if I copy the file from the Samba share, I have the \r\n v \n
> problem which I can easily fix by doing:
[snipped list of solutions]
Samba has a configuration option to look after newline mapping for you
automatically.
------------------------------
Date: Wed, 15 Aug 2001 07:53:02 -0500
From: Mr Sunblade <djberge@uswest.com>
Subject: Re: Using a fake name on this newsgroup and in places like perlmonks??
Message-Id: <3B7A70AE.F79A36D6@uswest.com>
>
> Any thoughts on this?
>
> ---
> Carlos
> www.internetsuccess.ca
> *NOTE*: Internet Success is NOT yet fully operational so although you are
> welcomed to visit and take a look, trying to subscribe will only be a
> frustration for you as your data will not be saved at this time.
I do it for strictly utilitarian reasons - to let me know from which machine
I posted. At home, I use my real name. Since I'm on a Sunblade 100 now at
work, I'm "Mr Sunblade". I generally have a separate identity for each
machine.
--
"Evil will always triumph because Good is *dumb*."
-- Dark Helmet, 'Spaceballs: The Movie'
------------------------------
Date: 15 Aug 2001 03:51:54 -0700
From: demerphq@hotmail.com (Yves Orton)
Subject: Re: Why is there so much white space in perl documentation??
Message-Id: <74f348f7.0108150251.1a97bdef@posting.google.com>
Carlos C. Gonzalez <miscellaneousemail@yahoo.com> wrote in message news:<MPG.15e3cb50c7bc407698974f@news.edmonton.telusplanet.net>...
> Nope. For having thought what I was looking at was the official Perl
> documentation instead of realizing I was looking at a copy of it made by
> ActiveState.
Their copy is exactly the same as that that would be produced by
running the appropriate pod through pod2html. They just processed all
the main pods into html and then set up a framed index and etc. Also
if you use ppm unlike cpan (which frankly can be a serious pain in the
ass on a MS os) then this index is altered and updated to contain the
appropriate docs.
The serious *nix types here will blather on about using the command
line and perldoc and the like, but frankly being able to browse your
documentation (structured documentation as well, the index is
heirarchical) for something that might look like its usefull has
serious advantages over perldoc. Such as when you dont have a clue
what it is that you are looking for, nor any idea what it might be
called. (I agree that perldoc is the way to find specific information
on specific known in advance topics, such as keywords and the like)
Also the index is great for browsing to find hidden gems that have
come in the standard distro.
As an added bonus there is a thread [Re: Self-Searchable Perl
documention - Extremely Useful!] on CLPM right now that has links to a
script that allows you to add a search box to the index from
activestate and do dymanic webpages WITHOUT a webserver from within
IE. (Or I can mail my modified version to you if you like) But because
Netscape doesnt do COM/OLE it doesnt work in that relic. (It doesnt
work in opera [see below] either... so relic perhaps is a bit strong
:-)
>
> > >The documentation looks much better there than on my local machine.
> > Heavens no!
> >
> > I use the raw *.pod files
Like I said.. the serious *nix types....
(Yes yes I know I just p*ssed off a bunch of main contributors. If
your on a *nix box then do thing the *nix way, if your on MS box then
do it the MS way. TMTOWTDI)
> Ugh. Yuk. On my Windows 98 the pod files look absolutely terrible from
> the DOS prompt. I feel like I am looking into a black hole with little
> white letters in it =:).
>
> > and a programmer's editor.
>
Check out ultraedit. www.ultraedit.com
Great editor for doing Perl in the MS enviornment. (there are
others... consult a thread here on CLPM about the subject [Re: Perl
editor for win32 needed])
> >
> > Does AS give you the actual .pod files that the .html files
> > are derived from?
>
> Yup. But trying to read them in an editor is not very good for me.
> There are a bunch of =head1, =pod, etc.. statements in them. And they
> are not nicely formatted in color like the www.perldoc.com ones are.
Thats what pod files are for. Your run those files through a
converter to use them properly (unless of course you are 'hard core')
Converters exist for many presentation formats such as TeX (well, that
is an intermediate form, intended to produce professional quality
printed output) or HTML (the ones you get from activestate or
pod2html)
Regarding the original issue of triple spaced PRE blocks in Netscape
there is a very simple way to resolve your problem: get a real
Browser. Like IE 5.5 (Yes I CAN hear the linux mob hissing...)
Netscape at one time was the best browser out there. Then for whatever
reason (I am no serious fan of MS) they got left behind. Far behind.
IE is a MUCH better browser than NetSucks. period. (Throw more
gasoline on fire) If you have serious moral probelsm with using IE
cause of the MS thing then you could check out opera from
www.opera.com (self styled 'fastest browser on earth')
I installed the latest version of opera, and it looks damn good!
Waaaaay better than netscape.
Yves
------------------------------
Date: 6 Apr 2001 21:33:47 GMT (Last modified)
From: Perl-Users-Request@ruby.oce.orst.edu (Perl-Users-Digest Admin)
Subject: Digest Administrivia (Last modified: 6 Apr 01)
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.
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 V10 Issue 1529
***************************************