[10249] in Perl-Users-Digest

home help back first fref pref prev next nref lref last post

Perl-Users Digest, Issue: 3842 Volume: 8

daemon@ATHENA.MIT.EDU (Perl-Users Digest)
Mon Sep 28 13:07:36 1998

Date: Mon, 28 Sep 98 10:00:19 -0700
From: Perl-Users Digest <Perl-Users-Request@ruby.OCE.ORST.EDU>
To: Perl-Users@ruby.OCE.ORST.EDU (Perl-Users Digest)

Perl-Users Digest           Mon, 28 Sep 1998     Volume: 8 Number: 3842

Today's topics:
        About CPAN <gzhel@space.ru>
        About CPAN <gzhel@space.ru>
    Re: an observation on why python will fail <zenin@bawdycaste.org>
    Re: an observation on why python will fail <akuchlin@cnri.reston.va.us>
    Re: an observation on why python will fail (Stefaan A Eeckels)
    Re: an observation on why python will fail (Ilya Zakharevich)
    Re: an observation on why python will fail <JamesL@Lugoj.Com>
    Re: ANSIColor+formats doesnt works? <zenin@bawdycaste.org>
    Re: cat reese > /dev/null (was Re: Perl & Java - differ <frans_van_duinen@myna.com>
    Re: DB failures on DEC Alpha if DB created elsewhere <sfcawley@ix.netcom.com>
        FTP and Perl (Dorene Clark)
    Re: gas 2.5 for HPUX-10.10 <work@nospam.idea.co.uk>
    Re: gas 2.5 for HPUX-10.10 <uri@sysarch.com>
    Re: help a newbie droby@copyright.com
    Re: help a newbie droby@copyright.com
    Re: How do i unpack a 64-bit long? (Ilya Zakharevich)
    Re: How to read contents of all *.TXT files in director droby@copyright.com
    Re: How to read contents of all *.TXT files in director <uri@sysarch.com>
    Re: How to read contents of all *.TXT files in director (Matthew Bafford)
    Re: Internal Server Error (Premature end of script head droby@copyright.com
    Re: Perl and ODBC? <henry@dotrose.com>
    Re: Perl not terminating (Ilya Zakharevich)
        Presenting large html doc by pages <pasztor@sztaki.hu>
    Re: printing a two column sorted HTML table jmh@pubserv.com
        re-direct standard error <kyle.mattes@ac.com>
    Re: Shell command <barnett@houston.Geco-Prakla.slb.com>
    Re: When did you last use AWK (was Re: free book on sh/ <work@nospam.idea.co.uk>
        Special: Digest Administrivia (Last modified: 12 Mar 98 (Perl-Users-Digest Admin)

----------------------------------------------------------------------

Date: Mon, 28 Sep 1998 18:16:54 +0300
From: "news.space.ru" <gzhel@space.ru>
Subject: About CPAN
Message-Id: <6uo710$q3r$1@zware.space.ru>

How download all CPAN or only latest versions of Perl-modules?

Thank You. Yurin Andrey from Russia




------------------------------

Date: Mon, 28 Sep 1998 18:16:54 +0300
From: "news.space.ru" <gzhel@space.ru>
Subject: About CPAN
Message-Id: <6uo9dq$6cp$1@zware.space.ru>

How download all CPAN or only latest versions of Perl-modules?

Thank You. Yurin Andrey from Russia




------------------------------

Date: 28 Sep 98 15:48:24 GMT
From: Zenin <zenin@bawdycaste.org>
Subject: Re: an observation on why python will fail
Message-Id: <906997926.260011@thrush.omix.com>

David A. Black <dblack@saturn.superlink.net> wrote:
	>snip<
: I don't know much about Python, but it seems to me that Guido is a very generous
: programmer and that there is significant spirit among users.  Can't we save the
: fascist analogies for Micros**t and such?  Surely Perl and Python are basically
: on the same side of that great divide.

	They may well be on the same side of that particular divide, however
	they are firmly in two very different camps.  Philosophy wise, they
	aren't even on the same planet.  They both try to solve similar
	issues, but from entirely different solutions, each where there own
	merits and failings.  This isn't a bad thing, but it is definedly an
	issue.

	As far as George, I honestly doubt that any Python supporter would
	even admit to knowing his name for fear any connection could do
	nothing but hurt Python's creditability.

-- 
-Zenin (zenin@archive.rhps.org)           From The Blue Camel we learn:
BSD:  A psychoactive drug, popular in the 80s, probably developed at UC
Berkeley or thereabouts.  Similar in many ways to the prescription-only
medication called "System V", but infinitely more useful. (Or, at least,
more fun.)  The full chemical name is "Berkeley Standard Distribution".


------------------------------

Date: Mon, 28 Sep 1998 16:13:39 GMT
From: "Andrew M. Kuchling" <akuchlin@cnri.reston.va.us>
Subject: Re: an observation on why python will fail
Message-Id: <13839.43130.535708.41804@amarok.cnri.reston.va.us>

Lloyd Wood <eep1lw@surrey.ac.uk> wrote:
>It always comes down to the most visible leading advocate and exemplar:

	True, but George Reese is a quixotic figure who's come out of
nowhere, and has only been visible in comp.lang.perl.misc for the last
week or two, not elsewhere. More realistic advocates would be those of
us who are actually doing work in Python, such as Infoseek, Red Hat,
various conference presenters, etc.

Elaine -HappyFunBall- Ashton writes:
>While I do believe that is a pretty hasty gross generalisation, at the core
>it does have some merit. Larry Wall is somewhat charismatic, seemingly
>diplomatic and has encouraged the diversity of contribution from others to
>make Perl the language that it is. 

	I wonder where this curious misconception stems from?  A quick
tour through Misc/NEWS will turn up contributions from lots of people,
and various language features -- metaclasses, raw strings, docstrings
-- were suggested.  Usually significant new features are thrashed
around in public, whether on the main list or in a SIG; threading.py
is one example, a different form of comparision overloading is
another, and the whole /-vs-div thread recently is also an example.

	In fact, some people have complained that comp.lang.python has
*too many* threads about language design, and not enough threads that
newbies can follow.  (That's something new; a newsgroup drowning in
threads that are too advanced...)  Diversity of contribution is *not*
something that's lacking in the Python community.

>Python has not failed, but has not gained
>the popularity that Perl has primarily because it lacks all of those.

	More like historical reasons, I'd expect, particularly
pointing to Perl's early association with CGI scripts, which is still
the primary application bringing new users to Perl.  But events move
on, and new fields such as Java bring new opportunities for things
such as JPython.

>Mussolini made the trains run on time but at what cost?

	Coming dangerously close to invoking Godwin's law there...

-- 
A.M. Kuchling			http://starship.skyport.net/crew/amk/
What kind of theological education are kids getting today?!
    -- An highly-annoyed goofy-looking orange demon in STANLEY AND HIS MONSTER
       #4



------------------------------

Date: 28 Sep 1998 13:53:50 GMT
From: Stefaan.Eeckels@ecc.lu (Stefaan A Eeckels)
Subject: Re: an observation on why python will fail
Message-Id: <6uo4de$i8r$1@justus.ecc.lu>

In article <Pine.SOL.3.95.980928000958.8164M-100000@petra.ee.surrey.ac.uk>,
	Lloyd Wood <eep1lw@surrey.ac.uk> writes:
> It always comes down to the most visible leading advocate and exemplar:
> tcl:    John Ousterhout
> perl:   T^HLarry Wall
> python: George Reese
It's not because George tried to get into the Guinness book with the
longest thread on c.p.l.m that he is Python's most visible leading
advocate and exemplar.

I am about as keen on having only one language as I am
on having only a single OS. Variety is the spice of life.

-- 
Stefaan
-- 

PGP key available from PGP key servers (http://www.pgp.net/pgpnet/)
___________________________________________________________________
Perfection is reached, not when there is no longer anything to add,
but when there is no longer anything to take away. -- Saint-Exupiry



------------------------------

Date: 28 Sep 1998 16:46:22 GMT
From: ilya@math.ohio-state.edu (Ilya Zakharevich)
Subject: Re: an observation on why python will fail
Message-Id: <6uoegu$8g1$1@mathserv.mps.ohio-state.edu>

[A complimentary Cc of this posting was sent to Zenin 
<zenin@bawdycaste.org>],
who wrote in article <906997926.260011@thrush.omix.com>:
> 
> 	As far as George, I honestly doubt that any Python supporter would
> 	even admit to knowing his name for fear any connection could do
> 	nothing but hurt Python's creditability.

Hmm, did you see Perl advocacy in the python group?  I glanced once,
and if I read this post only (or was it a web page?) I would not touch
Perl with a ten-foot-long pole.

Ilya


------------------------------

Date: Mon, 28 Sep 1998 09:31:17 -0700
From: James Logajan <JamesL@Lugoj.Com>
Subject: Re: an observation on why python will fail
Message-Id: <360FB9D5.45BAC641@Lugoj.Com>

Lloyd Wood wrote:
> It always comes down to the most visible leading advocate and exemplar:
> tcl:    John Ousterhout
> perl:   T^HLarry Wall
> python: George Reese

George who?

P.S. Don't what you're talking about, but I suspect you must be trolling.

Just another satisfied user of Python who doesn't read comp.lang.perl.misc
or talk.bizarre.


------------------------------

Date: 28 Sep 1998 16:06:13 GMT
From: Zenin <zenin@bawdycaste.org>
Subject: Re: ANSIColor+formats doesnt works?
Message-Id: <906998701.610137@thrush.omix.com>

Petr Sturc <sturc@pc038b.fzu.cz> wrote:
:  But on the output I see only ESC-sequences but
:  no color!

	It's a known bug in perl's format.  I haven't had time to check
	if it has been fixed in 5.005 or not.

-- 
-Zenin (zenin@archive.rhps.org)           From The Blue Camel we learn:
BSD:  A psychoactive drug, popular in the 80s, probably developed at UC
Berkeley or thereabouts.  Similar in many ways to the prescription-only
medication called "System V", but infinitely more useful. (Or, at least,
more fun.)  The full chemical name is "Berkeley Standard Distribution".


------------------------------

Date: Mon, 28 Sep 1998 13:02:33 -0400
From: Frans van Duinen <frans_van_duinen@myna.com>
Subject: Re: cat reese > /dev/null (was Re: Perl & Java - differences and uses)
Message-Id: <360FC129.C6E@myna.com>

[lots of diatribe deleted]

Has anyone told you recently that you're off-topic and to kindly take
your bickering elsewhere?

-- 
Frans van Duinen     (416) 588-0698,  Fax (416) 588-9690
Master Programmer Group Inc.
Toronto, Ont.


------------------------------

Date: Mon, 28 Sep 1998 10:33:54 -0400
From: "Stephen F. Cawley" <sfcawley@ix.netcom.com>
To: hmahaffey@aol.com
Subject: Re: DB failures on DEC Alpha if DB created elsewhere
Message-Id: <360F9E52.80C16EC5@ix.netcom.com>

Mike,

    I am using an Alpha 8400 (two boxes, two different OS versions: 4.0b
and 4.0d), and received error messages when testing my installation.
Tests failed under tests: lib/db-btree.t (28.43 % failed) and
lib/db-recno.t (74.24% failed).  Since we are not using the db modules,
I am going to install and use without tracking and fixing this problem.
It would be nice if the install went without error, but the 64-bit
platform is still pretty new out there :(

sfc



------------------------------

Date: Mon, 28 Sep 1998 10:37:59 -0400
From: soswww@ibm.net (Dorene Clark)
Subject: FTP and Perl
Message-Id: <H95D2sd+aJsQ090yn@ibm.net>

Can someone tell me if it's possible to start FTP from
within a perl script? To elaborate: On our website I
have a form that the user fills out, it calls a perl script,
which brings up an html page where they can click to
get their download. The only thing I changed was the link
on the page where they click to download - I changed it
to ftp. I can no longer get the script to work. When they
fill out the information and hit enter - it just hangs there
then says the form contains no data. Any help???
Thanks in advance.

Dorene
soswww@ibm.net


------------------------------

Date: Mon, 28 Sep 1998 16:05:23 +0100
From: Kiril <work@nospam.idea.co.uk>
Subject: Re: gas 2.5 for HPUX-10.10
Message-Id: <360FA5B3.DA76374F@nospam.idea.co.uk>

Uri Guttman wrote:
> 
> >>>>> "l" == lbello  <lbello@gartner.com> writes:
> 
>   l> Does anyone know where I can get gas 2.5 for hp-ux 10.10?  thanks,
> 
> boy, this has to be one of the most off-topic, non-spam posts we have
> ever seen. how does this in any way have to do with perl?
> 
> uri
> 
<snip sig>

wild guess:
wants to use perl --> downloads it --> tries to build it -->
fails miserably --> ... --> downloads GCC --> tries to build it -->
fails miserably --> reads GCC docs --> looks for GAS --> asks in
c.l.p.m

Whoever said humans fail logically ?



Kiril


------------------------------

Date: 28 Sep 1998 11:15:32 -0400
From: Uri Guttman <uri@sysarch.com>
Subject: Re: gas 2.5 for HPUX-10.10
Message-Id: <x7d88guv3f.fsf@sysarch.com>

>>>>> "K" == Kiril  <work@nospam.idea.co.uk> writes:

  K> Uri Guttman wrote:
  >>  >>>>> "l" == lbello <lbello@gartner.com> writes:
  >> 
  l> Does anyone know where I can get gas 2.5 for hp-ux 10.10?  thanks,
  >>  boy, this has to be one of the most off-topic, non-spam posts we
  >> have ever seen. how does this in any way have to do with perl?
  >> 
  >> uri
  >> 
  K> <snip sig>

  K> wild guess: wants to use perl --> downloads it --> tries to build
  K> it --> fails miserably --> ... --> downloads GCC --> tries to build
  K> it --> fails miserably --> reads GCC docs --> looks for GAS -->
  K> asks in c.l.p.m

  K> Whoever said humans fail logically ?

i was thinking along those lines, but i am still p.o. about the post. it
never mentioned any of that (if your line of logic is true). and doesn't
hpux come with an assembler (or cc)? even solaris ships with one! anyway on
solaris you should never use gnu gas or ld, they are broken.

uri

-- 
Uri Guttman  -----------------  SYStems ARCHitecture and Software Engineering
Perl Hacker for Hire  ----------------------  Perl, Internet, UNIX Consulting
uri@sysarch.com  ------------------------------------  http://www.sysarch.com
The Best Search Engine on the Net -------------  http://www.northernlight.com


------------------------------

Date: Mon, 28 Sep 1998 16:09:03 GMT
From: droby@copyright.com
Subject: Re: help a newbie
Message-Id: <6uocav$ik1$1@nnrp1.dejanews.com>

In article <6ul87c$8jm$1@gellyfish.btinternet.com>,
  Jonathan Stowe <gellyfish@btinternet.com> wrote:
> On Sun, 27 Sep 1998 09:48:30 GMT cim@online.ee wrote:
> > i know how to put a <BR> after each line:
>
> > foreach $line(@file) {
> > #$line =~ s/\n/<BR>/;
> > ...
>
> > but i need to put a <P> where there is a newline with no chars.:
> > example:
>
> This does it for me:
>
> #!/usr/bin/perl
>
> @file = <>;
>
> foreach (@file)

Better to use while (<>)

> {
>    s/\n$/<BR>\n/s unless s/^$/<P>/;
>    print;
> }
>
> > actually, if i could put each paragraph inside <P>...</P> would be the
> > best for me.
>
> I'm sure you can work it out from there - the only slight difficulty
> is with the first <P>;
>

There will be a similar slight difficulty with the last </P>.

If you're trying to write a text2html converter, there are plenty of things
that might occur in text to screw up your html.  For instance if you want an
html listing of this particular program I suspect you'll find a few extra line
and paragraph breaks.

--
Don Roby

-----== Posted via Deja News, The Leader in Internet Discussion ==-----
http://www.dejanews.com/rg_mkgrp.xp   Create Your Own Free Member Forum


------------------------------

Date: Mon, 28 Sep 1998 15:58:18 GMT
From: droby@copyright.com
Subject: Re: help a newbie
Message-Id: <6uobmq$hms$1@nnrp1.dejanews.com>

In article <360e065b.0@news.greatbasin.net>,
  "Henry Wolff" <admin@hatsoft.com> wrote:
> maybe this?
>
> foreach $line(@file) {
>   $line =~ s/\n/<BR>/;
>   $line = "<p>" if  ($line eq "");
>

Maybe not.

> Henry Wolff
> HAT'Soft Banner Exchange
> Now with multi-account credit transfers and 'Credit Bank'
> http://www.hatsoft.com/featured/index.html
>
> cim@online.ee wrote in message <360e088e.2618846@news.online.ee>...
> >i know how to put a <BR> after each line:
> >
> >foreach $line(@file) {
> >#$line =~ s/\n/<BR>/;
> >...
> >
> >but i need to put a <P> where there is a newline with no chars.:
> >example:
> >
> >this is a just an example.
> >this is just another example
> >this is just an example
> >                                       <-- this is were <P> should be
> >this is a just an example.
> >this is just another example
> >this is just an example
> >
> >
> >actually, if i could put each paragraph inside <P>...</P> would be the
> >best for me.
> >help me! please
>
>

-----== Posted via Deja News, The Leader in Internet Discussion ==-----
http://www.dejanews.com/rg_mkgrp.xp   Create Your Own Free Member Forum


------------------------------

Date: 28 Sep 1998 16:43:10 GMT
From: ilya@math.ohio-state.edu (Ilya Zakharevich)
Subject: Re: How do i unpack a 64-bit long?
Message-Id: <6uoeau$75m$1@mathserv.mps.ohio-state.edu>

[A complimentary Cc of this posting was sent to Zenin 
<zenin@bawdycaste.org>],
who wrote in article <906980394.597804@thrush.omix.com>:

>       my $bignum = new Math::BigInt ($high * 2 ** 32 + $low);

Of course not!  What is the reason to convert a double $high * 2 ** 32
+ $low to Math::BigInt?  The information in high bits is already lost!

  my $bignum = (new Math::BigInt $high) * 2 ** 32 + $low;

should work, though.  (2*32 is an exact number even in current Perl,
which has completely broken arithmetic for large numbers, and
overloaded operations are smart enough to propagate Math::BigInt
throughout the expression, doing necessary conversions.)

Ilya



------------------------------

Date: Mon, 28 Sep 1998 15:20:10 GMT
From: droby@copyright.com
Subject: Re: How to read contents of all *.TXT files in directory into one file?
Message-Id: <6uo9f9$fhc$1@nnrp1.dejanews.com>

In article <8cemsxk6m3.fsf@gadget.cscaper.com>,
  Randal Schwartz <merlyn@stonehenge.com> wrote:
> >>>>> "Bart" == Bart Lateur <bart.mediamind@ping.be> writes:
>
> Bart> perl -p *.TXT >output.all
>
> Bart> Yup, this is a command line. No script necessary.
>
> Nope.  You need at least a single statement:
>
> 	perl -perl *.TXT >output.all
>

Aha!  An appropriate place to NOT use -w!

-----== Posted via Deja News, The Leader in Internet Discussion ==-----
http://www.dejanews.com/rg_mkgrp.xp   Create Your Own Free Member Forum


------------------------------

Date: 28 Sep 1998 11:45:36 -0400
From: Uri Guttman <uri@sysarch.com>
Subject: Re: How to read contents of all *.TXT files in directory into one file?
Message-Id: <x790j4utpb.fsf@sysarch.com>

>>>>> "d" == droby  <droby@copyright.com> writes:

  d> In article <8cemsxk6m3.fsf@gadget.cscaper.com>, Randal Schwartz
  d> <merlyn@stonehenge.com> wrote:
  >> >>>>> "Bart" == Bart Lateur <bart.mediamind@ping.be> writes:
  >> 
  Bart> perl -p *.TXT >output.all
  >>
  Bart> Yup, this is a command line. No script necessary.
  >>  Nope.  You need at least a single statement:
  >> 
  >> perl -perl *.TXT >output.all
  >> 

  d> Aha!  An appropriate place to NOT use -w!

i rarely see or use -w with -e. it doesn't make much sense! i think even
randal and tom c. would agree with that. but i am open to flaming
responses and counterexamples of where the combo would be needed.

uri

-- 
Uri Guttman  -----------------  SYStems ARCHitecture and Software Engineering
Perl Hacker for Hire  ----------------------  Perl, Internet, UNIX Consulting
uri@sysarch.com  ------------------------------------  http://www.sysarch.com
The Best Search Engine on the Net -------------  http://www.northernlight.com


------------------------------

Date: Mon, 28 Sep 1998 12:04:14 -0400
From: dragons@scescape.net (Matthew Bafford)
Subject: Re: How to read contents of all *.TXT files in directory into one file?
Message-Id: <MPG.10797d7bb15995099896bd@news.south-carolina.net>

In article <x790j4utpb.fsf@sysarch.com> on 28 Sep 1998 11:45:36 -
0400, Uri Guttman (uri@sysarch.com) pounded in the following 
text:
=> >>>>> "d" == droby  <droby@copyright.com> writes:
=> i rarely see or use -w with -e. it doesn't make much sense! i think even
=> randal and tom c. would agree with that. but i am open to flaming
=> responses and counterexamples of where the combo would be needed.
=> 
=> uri

Hmm, when you are testing something before you post? :)

Larry Rosler caught me with that one. :(

--Matthew


------------------------------

Date: Mon, 28 Sep 1998 14:59:44 GMT
From: droby@copyright.com
Subject: Re: Internal Server Error (Premature end of script headers)
Message-Id: <6uo890$e7p$1@nnrp1.dejanews.com>

In article
<D4510F6FD9AB3552.A031836BBBBBB4DF.E232DCF028C94ED5@library-proxy.airnews.net
>,  "JD Lampard" <lampard@ticnet.com> wrote:

> Sorry folks--I didn't get the semicolong when i copied the code.  So, yes,
> it was/is there, and it still doesn't work.
>

Well...

If you put the semi-colon in, the script works, at least on a working server
with correct permissions.

So the thing to do now is to look at your server's logs and see if they give
hints as to what's not working.

A few other notes:

	#!/usr/bin/perl -w

	If you get something working, save a copy before changing it.

	Look at some FAQs, especially the Perl FAQ on your system or at
http://language.perl.com/faq/ and the CGI Programming FAQ at (among other
places) http://www.htmlhelp.org/faq/cgifaq.html and posted periodically in

	        news:comp.infosystems.www.authoring.cgi
        	news:comp.answers
        	news:news.answers

	This also has pointers to many other places with CGI info.

	Use the CGI.pm module.  This is much safer than reinventing the wheel.

--
Don Roby


-----== Posted via Deja News, The Leader in Internet Discussion ==-----
http://www.dejanews.com/rg_mkgrp.xp   Create Your Own Free Member Forum


------------------------------

Date: Mon, 28 Sep 1998 12:19:54 -0400
From: Henry Hartley <henry@dotrose.com>
To: "David J. Topper" <topper@virginia.edu>
Subject: Re: Perl and ODBC?
Message-Id: <360FB72A.8BE1B3D2@dotrose.com>

I've had no problems doing what you want to do.  I'm also fighting the Perl
vs. Cold Fusion battle and only having limited success.  Rest assured that
Perl and ODBC on NT work, however.

David J. Topper wrote:

> Hello there,
>
> I'm trying to convince my boss to use perl instead of cold fusion.  The
> snags are:
>
> a)  he needs to use NT (ok ... there is perl for NT)
> b)  he wants to talk with an MS Access database (preferrably with ODBC)
>
> I've heard there are other mechanisms for talking with MS Access, but he
> seems to really want ODBC stuff.  I don't even know what the hell the
> difference is. We used to use sybperl back at Time Inc., then later some
> special functions that opened connections with a Sybase database.
>
> Any input would be appreciated.
>
> Thanks,
>
> Dave Topper
> --
> Technical Director, Virginia Center for Computer Music
> Programmer / Analyst, Dean's Office (School of A&S)
> http://www.panix.com/~topper
> (804) 924-6887





------------------------------

Date: 28 Sep 1998 16:26:54 GMT
From: ilya@math.ohio-state.edu (Ilya Zakharevich)
Subject: Re: Perl not terminating
Message-Id: <6uodce$o6$1@mathserv.mps.ohio-state.edu>

[A complimentary Cc of this posting was sent to Michel Prevost 
<michel.prevost@cactuscom.ca_REMOVE_TO_MAIL>],
who wrote in article <360F8458.29404A6E@cactuscom.ca_REMOVE_TO_MAIL>:
> I know that the script is in exit() because i put the folllowing:
> 
> print "about to exit\n";
> exit(0);
> 
> I did that to make sure that the script was exiting (or trying to or
> whatever). In
> fact, this began to happen to many scripts that haven't been touched since eons.
> It may be because of some module(s) we updated. Maybe there is an
> infinite loop in
> some DESTROY function.
> 
> I will try truss. It may help

If this is a Perl loop, you will need Perl debugger.  Do the recomended

   env "PERLDB_OPTS=N f=2" perl -d your_script args

(change f=2 to f=63 if it suits you, and/or add 'A').  Use 'L=outfile'
to get the messages to a file (otherwise they go to /dev/tty, thus are
not redirectable).

In fact, you may want to omit f=2, and do

   $DB::trace = 1;

before exiting.  (Lemme look...  Aha, it is simply $DB::frame = 63 to
set f=63 in runtime.)

Ilya


------------------------------

Date: Mon, 28 Sep 1998 17:48:57 +0200
From: PASZTOR Miklos <pasztor@sztaki.hu>
Subject: Presenting large html doc by pages
Message-Id: <Pine.LNX.3.96.980928174525.27022W-100000@kapa.aszi.sztaki.hu>


 Hello,
 
 I would like to have a tool that takes a large html (text) page, 
 and presents it in pages upon request. The user would see
 a page like:
 "This is a large html document. If you wish you can *download*
 it as one page, look at it *page by page*, or *search* for a 
 page which contains specified text."
 The pages in question contain just some (formatted) text, and tables.

 I guess that such a tool exists.
 Perl/CGI would be great.  
 I'd appriciate any help.
 Miklss

---------  Pasztor Miklss ------------------ pasztor@sztaki.hu
      MTA SZTAKI/ASZI Budapest
      1132 V. Hugo u. 18-22               Tel: (36)-(1)-349-75-32






------------------------------

Date: Mon, 28 Sep 1998 15:51:45 GMT
From: jmh@pubserv.com
Subject: Re: printing a two column sorted HTML table
Message-Id: <6uobah$hep$1@nnrp1.dejanews.com>

In article <360c3f68.8382263@news.flash.net>,
  tingdale@flash.net (Tom Tingdale) wrote:
> [...] I have
> tried splitting the array in the middle to stagger the output, but I
> haven't figured it out yet. Any ideas, solutions? Thanks in advance
> from your help.

Simple text version:

#!/usr/bin/perl

@array_element=(1,2,3,4,5,6,7);
$n=$#array_element ;

for ( $i=0; $i<int($n/2)+1; $i++ ) {
     print $array_element[$i]."\t" ;#  column 1
     if ( $i==$n && $n/2 != int($n/2) ) {
           # last row, nothing in column 2
           print "\n" ;
           last;
     } else {
           print $array_element[$i+int($n/2)+1]."\n" ;# column 2
     }
}
&#137;

-----== Posted via Deja News, The Leader in Internet Discussion ==-----
http://www.dejanews.com/rg_mkgrp.xp   Create Your Own Free Member Forum


------------------------------

Date: Mon, 28 Sep 1998 11:46:33 -0500
From: Kyle Mattes <kyle.mattes@ac.com>
Subject: re-direct standard error
Message-Id: <360FBD68.18964E6@ac.com>

I am in a WinNT environment, and need help with using the backquotes
(backticks).

I know that @logfile = `command` will redirect the standard OUTPUT to
the array @logfile.

How do I redirect the standard ERROR instead??

Thanks,
Kyle



------------------------------

Date: Mon, 28 Sep 1998 09:34:49 -0500
From: Dave Barnett <barnett@houston.Geco-Prakla.slb.com>
Subject: Re: Shell command
Message-Id: <360F9E89.7DB56A3F@houston.Geco-Prakla.slb.com>

sblenkhorn@my-dejanews.com wrote:
> 
> I am having problems with a perl script where I am trying to run a command
> line pkzip and create a self-extracting exe.  The script is running on a NT
> Server running IIS3.0.  Here is the line that isn't doing what it is suppose
> to:
> 
> system("pkzip25 -add -sfx d:\www\rp\main\$dir_type\$dir_name\$file_name
> d:\www\rp\main\$dir_type\$dir_name\*.*");
Perl is unix-centric.  My guess is that perl is taking your '\'
character to be an escape sequence, not a path delimiter, so, for
example, \$dir_name is being passed as SCALAR(0xbe910) or similar.  Try
double backslashes in place of single, or use '/'.  Perl should
interpret / to \ when it executes the system command.

HTH.

> 
> Can anyone help me with this problem?  I think it just must be my syntax.
> 
> Thanks in advance,
> Sean Blenkhorn
> PERC Intranet Development Team, CIBC
> 
> -----== Posted via Deja News, The Leader in Internet Discussion ==-----
> http://www.dejanews.com/rg_mkgrp.xp   Create Your Own Free Member Forum
Cheers,
Dave

-- 
Dave Barnett	Software Support Engineer	(281) 596-1434

Accept that some days, you're the pigeon, and some days you're the
statue.


------------------------------

Date: Mon, 28 Sep 1998 15:58:06 +0100
From: Kiril <work@nospam.idea.co.uk>
Subject: Re: When did you last use AWK (was Re: free book on sh/sed/awk)
Message-Id: <360FA3FE.2AE39110@nospam.idea.co.uk>

Jonathan Stowe wrote:
> 

<deletia>

> But apart from that I cant think of a possible situation where I might use
> AWK nowadays.  But of course others may differ in their opinion.
> 
> /J\
> --
> Jonathan Stowe <jns@btinternet.com>
> Some of your questions answered:
> <URL:http://www.btinternet.com/~gellyfish/resources/wwwfaq.htm>

Hmm, if you meant to start a general query on the subject :-)

I "tend" to use awk for one-liners, not because they are better/worse
then perl, just that my fingers sorta go ahead and type them.

Then again, I first met awk, oh, (c.f. G.Reese) ~10 years ago, and
perl ~2 years ago, so that might be it.


Kiril


------------------------------

Date: 12 Jul 98 21:33:47 GMT (Last modified)
From: Perl-Request@ruby.oce.orst.edu (Perl-Users-Digest Admin) 
Subject: Special: Digest Administrivia (Last modified: 12 Mar 98)
Message-Id: <null>


Administrivia:

Special notice: in a few days, the new group comp.lang.perl.moderated
should be formed. I would rather not support two different groups, and I
know of no other plans to create a digested moderated group. This leaves
me with two options: 1) keep on with this group 2) change to the
moderated one.

If you have opinions on this, send them to
perl-users-request@ruby.oce.orst.edu. 


The Perl-Users Digest is a retransmission of the USENET newsgroup
comp.lang.perl.misc.  For subscription or unsubscription requests, send
the single line:

	subscribe perl-users
or:
	unsubscribe perl-users

to almanac@ruby.oce.orst.edu.  

To submit articles to comp.lang.perl.misc (and this Digest), send your
article to perl-users@ruby.oce.orst.edu.

To submit articles to comp.lang.perl.announce, send your article to
clpa@perl.com.

To request back copies (available for a week or so), send your request
to almanac@ruby.oce.orst.edu with the command "send perl-users x.y",
where x is the volume number and y is the issue number.

The Meta-FAQ, an article containing information about the FAQ, is
available by requesting "send perl-users meta-faq". The real FAQ, as it
appeared last in the newsgroup, can be retrieved with the request "send
perl-users FAQ". Due to their sizes, neither the Meta-FAQ nor the FAQ
are included in the digest.

The "mini-FAQ", which is an updated version of the Meta-FAQ, is
available by requesting "send perl-users mini-faq". It appears twice
weekly in the group, but is not distributed in the digest.

For other requests pertaining to the digest, send mail to
perl-users-request@ruby.oce.orst.edu. Do not waste your time or mine
sending perl questions to the -request address, I don't have time to
answer them even if I did know the answer.


------------------------------
End of Perl-Users Digest V8 Issue 3842
**************************************

home help back first fref pref prev next nref lref last post