[6289] in Perl-Users-Digest
Perl-Users Digest, Issue: 911 Volume: 7
daemon@ATHENA.MIT.EDU (Perl-Users Digest)
Fri Feb 7 12:29:50 1997
Date: Fri, 7 Feb 97 09:00:21 -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 Fri, 7 Feb 1997 Volume: 7 Number: 911
Today's topics:
"ORDER BY" does not seem to work through ODBC call <chiue@nortel.ca>
Re: -w switch and the require statement (Mike Stok)
Re: ANNOUNCEMENT: Perl documentation and FAQ discontinu (Tad McClellan)
Re: ANNOUNCEMENT: Perl documentation and FAQ discontinu (Nathan V. Patwardhan)
Re: Cgi script help, please! (Jagadeesh Venugopal)
CGI.pm - unintialized value ()
Re: Commercial success stories using perl. (Jim Esten)
Re: DNS lookups in perl <Gregory.Scher@sgw.com>
ENV sizes on NT (cgi) (Ken)
Re: ftp mirroring package needed (Mike Stok)
HELP NEEDED: pb with 'system' <pagib@aur.alcatel.com>
How to convert a text file of arbitrary length lines to <jackb@pgw.picker.com>
Re: How to convert a text file of arbitrary length line (Nathan V. Patwardhan)
Re: How to convert a text file of arbitrary length line <rootbeer@teleport.com>
Re: Patch to add threads to Perl5.003 (Malcolm Beattie)
Perl and Crontabs (Bryan C. Liles)
Re: perl bug? side effect of using != where ne is requi (Bob Wilkinson)
Re: Perl vs Korn Shell <seay@absyss.fr>
Re: Perl vs Korn Shell <david_stagner@ncs.com>
Re: perl? <rootbeer@teleport.com>
PROBLEM: My extension's stack gets trashed... <depriest@mindspring.com>
regexps challenge - movies.txt (0/1) (Helen)
regexps challenge - movies.txt (1/1) (Helen)
Re: Sending results to two frames at once <Christoph_Marquardt@bbn.hp.com>
Re: Sort on third element of an Multi-Dim Array (Nathan V. Patwardhan)
Re: Using exec-Why won't this work? <ez045864@peseta.ucdavis.edu>
Re: Using exec-Why won't this work? <ez045864@peseta.ucdavis.edu>
Re: Who can write a perl-search script for our company? <nmljn@wombat.staff.ichange.com>
Re: Write help please (John W. Komp)
Digest Administrivia (Last modified: 8 Jan 97) (Perl-Users-Digest Admin)
----------------------------------------------------------------------
Date: Fri, 07 Feb 1997 11:22:33 -0500
From: Hokee Chiu <chiue@nortel.ca>
Subject: "ORDER BY" does not seem to work through ODBC call
Message-Id: <32FB56C9.617D@nortel.ca>
I am writing a query to return information from SQL Server 6.5.
The query itself works. When I added the "ORDER BY colname"
the query failed (colname is in same table).
I am using Perl 5.003 with ODBC to do the work. NT4 server.
Any hints?
------------------------------
Date: 7 Feb 1997 14:26:12 GMT
From: mike@stok.co.uk (Mike Stok)
Subject: Re: -w switch and the require statement
Message-Id: <5dfe24$8qp@news-central.tiac.net>
In article <01bc14d0$540e2ee0$6d9d16cb@dialup.ozemail.com.au>,
Kim Ryan <kimaryan@ozemail.com.au> wrote:
>When my programs get fairly large, I like to split them into several files,
>and include each file with the require statement. This causes the -w switch
>to issue spurious messages, such as identifier only used once, when in fact
>it is used more than once, but in a different file to the one I am
>currently checking. The line numbers that errors are reported on also seem
>to get confused. Is there any solution to this problem?
If you're using perl 5 you can use vars. Assuming I have
$ cat try.pl
#!/usr/local/bin/perl -w
require 'other.pl';
print "$x\n";
$ cat other.pl
$x = 5;
$ ./try.pl
Name "main::x" used only once: possible typo at ./try.pl line 5.
5
Then adding
use vars qw/$x/;
near the top of try.pl shuts the warning up and lets you have a place to
declare all your globals.
With regard to the confused line numbering, do you have multilined
statements or are things seriously out to lunch?
Hope I'm not barking up the wrong tree,
Mike
--
mike@stok.co.uk | The "`Stok' disclaimers" apply.
http://www.stok.co.uk/~mike/ | PGP fingerprint FE 56 4D 7D 42 1A 4A 9C
http://www.tiac.net/users/stok/ | 65 F3 3F 1D 27 22 B7 41
stok@psa.pencom.com | Pencom Systems Administration (work)
------------------------------
Date: Fri, 7 Feb 1997 07:08:47 -0600
From: tadmc@flash.net (Tad McClellan)
Subject: Re: ANNOUNCEMENT: Perl documentation and FAQ discontinued
Message-Id: <vg9fd5.m01.ln@localhost>
Geoffrey Leach (geoff@netcom.com) wrote:
: Tom Christiansen <tchrist@mox.perl.com> writes:
: >As of the next release of Perl, no documentation or examples will
: >be shipped, since no one reads them anyway. Furthermore, the FAQ
: >is also discontinued. Please remove copies of any of this documentation
: >wherever you may find it, since it's obvious from the postings in this
: >group that it has never done a bit of good.
: Tough day, Tom? Don't worry, we all still love you. Now Tom, put down that
: Fortran book. Tom ... Tom!
Put down the skunky programming language, and slowly back away...
--
Tad McClellan SGML Consulting
Tag And Document Consulting Perl programming
tadmc@flash.net
------------------------------
Date: 7 Feb 1997 14:27:48 GMT
From: nvp@shore.net (Nathan V. Patwardhan)
Subject: Re: ANNOUNCEMENT: Perl documentation and FAQ discontinued
Message-Id: <5dfe54$5ua@fridge-nf0.shore.net>
Tad McClellan (tadmc@flash.net) wrote:
: Put down the skunky programming language, and slowly back away...
I looooove you, man??!?!!?!
--
Nathan V. Patwardhan
nvp@shore.net
"What is your quest?"
------------------------------
Date: 7 Feb 1997 14:34:23 GMT
From: jvenu@ctp.com (Jagadeesh Venugopal)
Subject: Re: Cgi script help, please!
Message-Id: <5dfehf$133@concorde.ctp.com>
In article <32F9DE09.155A@grasberg.se> magnus@grasberg.se writes:
>Hi...
>
>
>I want to know how to make a kind of search and replace from within a
>pearl script................
>
>The search should be in a external text file...????
>
>please help me...
>
>
>Magnus Grdsberg
>magnus@grasberg.se
Looks like you need to get "Learning Perl" by Randal Schwartz which will
tell you exactly what you want plus a lot more.
Jagadeesh
--
/\/\ |Jagadeesh K. Venugopal, jvenu@ctp.com |http://w3.ctp.com/~jvenu
/ /_.\|Cambridge Technology Partners, Inc. |http://www.ccs.neu.edu/home/jkvg
\ /./|304 Vassar St. Cambridge, MA 02139 |
\/\/ |Phone: 617.374.2028 FAX: 617.374.8300 +
------------------------------
Date: 7 Feb 1997 15:40:56 GMT
From: gsi@visi.com ()
Subject: CGI.pm - unintialized value
Message-Id: <5dfie8$c47@darla.visi.com>
Can someone point me to whatever FAQ explains this?
I've installed CGI.pm, but when I run a program using it, I
get the intended output along with the warning:
Use of uninitialized value at /home/gsi/lib/perl/CGI.pm-2.30/CGI.pm line 83.
The program is pretty basic:
#!/usr/local/bin/perl5 -w
use lib '/home/gsi/lib/perl/CGI.pm-2.30';
use CGI;
print "hello world\n";
--
***************************************************************
Disclaimer: You do not exist
------------------------------
Date: 7 Feb 1997 14:21:58 GMT
From: jesten@earth.execpc.com (Jim Esten)
Subject: Re: Commercial success stories using perl.
Message-Id: <5dfdq6$iu4@newsops.execpc.com>
I am currently working as the lead contractor on a web project for a major
midwest utility. We have taken legacy FORTRAN codes from the mainframe
environment, ported them to UNIX, and then used perl to do all the web
interface programming for input to and display from these programs and
fill in the pieces to get these programs to work with each other. Along
the way, we have replaced MS Word stuff, MS Excel stuff, and a Visual C
app that never quite worked right....the project has gotten international
exposure in the nuclear fuels industry....
...thus far, a success on all fronts and we've just scratched the surface!
Jim
--
Jim Esten
(temporarily between .sigs)
------------------------------
Date: Fri, 7 Feb 1997 15:38:43 GMT
From: "Gregory I. Scher" <Gregory.Scher@sgw.com>
Subject: Re: DNS lookups in perl
Message-Id: <32FB4C83.7B1D@sgw.com>
Russ Allbery wrote:
>
> Michael Fuhr <mfuhr@dimensional.com> writes:
>
> > Net::DNS 0.01 was written mostly in C and used the system's resolver
> > (libresolv) and another library called resparse.
>
> > Net::DNS 0.02 is written entirely in Perl, so it reimplements the
> > resolver library using many of the same algorithms. I know that sounds
> > like reinventing the wheel, but I chose to do it for the following
> > reasons:
>
> > 1. To let Perl handle more of the memory management.
> > 2. To provide more consistent behavior across different platforms.
> > 3. To see if I could.
>
> > The Perl version runs much slower than the C version, but if you're
> > doing remote lookups then a busy network will probably be your
> > bottleneck. Personally I'm partial to the Perl version but future
> > versions may be a combination of both. User input will certainly
> > provide guidance.
>
> I personally would prefer to see the module written mostly in C, or at
> least as a Perl wrapper around a sufficient amount of C to link against
> libresolv, so that when compiling the module I could link it against the
> libresolv in BIND rather than against the system version.
>
> There are a few reasons why I prefer that:
>
> 1. One is pretty much guaranteed that if one uses BIND, one will be
> able to access the latest and greatest in DNS in the most efficient
> and compatible way possible.
>
> 2. Things like NIS, local hosts files, and so forth are all potentially
> handled automagically for you (if you link against the system
> version).
>
> 3. When the next version of BIND comes out, you don't have to
> reimplement all of the changes yourself.
>
> It seems like reimplementing things in Perl is going to result in forking
> and version skew between your version and BIND. Of course, you have a
> very good point about other platforms where libresolv isn't available.
>
> --
> Russ Allbery (rra@cs.stanford.edu) <URL:http://www.eyrie.org/~eagle/>
--
Where can this DNS library be found?
Regards,
Greg
!!!!!
O O
>
*-*-*-*-*-*-*-ooo-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*
| Gregory I. Scher |
| Perot Systems Corporation - NT SysAdmin |
| 277 Park Avenue |
| New York, N.Y. 10179 |
| Bus E-Mail: Gregory.Scher@sgw.com |
| Telephone: 212.224.7744 USA |
| FAX: 212.224.7251 |
*-*-*-*-*-*-*-*-*-*-*-*-*-*-ooo-*-*-*-*-*-*-*-*-*
|| ||
|| ||
@@@ @@@
------------------------------
Date: Fri, 07 Feb 1997 13:30:08 GMT
From: soulhuntre@pobox.com (Ken)
Subject: ENV sizes on NT (cgi)
Message-Id: <33002e55.9283716@news.earthlink.net>
Using Purveyor for Windows NT, but I think the problem has a generic
answer.
1) The script uses CGI.pm and runs fine from command line and under
unix.
2) if uses as a GET, the script gets SOME of the data (truncates at
about 200 chars?)
3) if used as a POST, the script never runs.
Am I hitting an ENV size limit here? Seems so, the GET stops when the
max command line length kicks in, and the POST would be bound by the
max size of ENV?
------------------------------
Date: 7 Feb 1997 14:06:24 GMT
From: mike@stok.co.uk (Mike Stok)
Subject: Re: ftp mirroring package needed
Message-Id: <5dfct0$7ga@news-central.tiac.net>
In article <32faab2e.16545621@news.citynet.net>,
Tony Schliesser <aschlies@citynet.net> wrote:
>Once upon a time, I had a rather nifty ftp package that would mirror
>other ftp sites. It was written in perl and I am looking for that same
>package again (the machine that it was on -- is no more).
You might want to look in the scripts/ftpstuff directory on a CPAN site.
The master CPAN site is at ftp.funet.fi under /pub/langueges/perl/CPAN and
you can get to it using a web browser using Tom's multiplexor at
http://www.perl.com/CPAN/
This probably won't help you find the original machine, but I hope it's
helpful anyway,
Mike
--
mike@stok.co.uk | The "`Stok' disclaimers" apply.
http://www.stok.co.uk/~mike/ | PGP fingerprint FE 56 4D 7D 42 1A 4A 9C
http://www.tiac.net/users/stok/ | 65 F3 3F 1D 27 22 B7 41
stok@psa.pencom.com | Pencom Systems Administration (work)
------------------------------
Date: Fri, 07 Feb 1997 11:30:50 -0500
From: Bruno Pagis <pagib@aur.alcatel.com>
Subject: HELP NEEDED: pb with 'system'
Message-Id: <32FB58BA.17BA@aur.alcatel.com>
The following command:
% remsh Hostname -l UserName ls
works perfectly.
When embedded in a Perl script:
#!/usr/local/bin/perl
@args=("remsh", "Hostname", "-l UserName", "ls");
system(@args);
I raise the following error message: permission denied.
Could anybody help ?
--
Name : Bruno Pagis Phone: (919) 850-5174
Company: Alcatel Network Systems Fax : (919) 850-6670
2912 Wake Forest Road email: pagib@aur.alcatel.com
Raleigh, NC 27609 www :
http://aurwww.aur.alcatel.com/~pagib
------------------------------
Date: Fri, 7 Feb 1997 12:20:49 GMT
From: Jack Burton <jackb@pgw.picker.com>
Subject: How to convert a text file of arbitrary length lines to fixed length?
Message-Id: <32FB1E21.41C6@pgw.picker.com>
I'd like to know if anyone is willing to provide me an example perl
script
that does the following.
Given a text file that consists of lines of arbitrary length, convert it
so
that no line is longer than 80 characters and line breaks don't happen
in
the middle of a word (unless the word is itself greater than 80
characters
long). I tried this myself, what I have isn't very pretty, and it
doesn't
break on word boundries. There is probably a better way to do this.
Any pointers are appreciated.
TIA
-Jack
Here is my attempt:
#!/usr/bin/perl
while (<>) {
chop;
$line=$_;
$length = length($line);
if ($length <= 80) {
# Un this case print the line as is
print $line, "\n";
next;
}
# If the line is > 80 characters do the following
$num_times = int ($length / 80);
$remainder= $length % 80;
for ($i=1, $j=0, $k=0 ; $j < $num_times; $i++, $j++, ($k += 80) ) {
print substr($line, $k, ($i * 80)), "\n";
}
if ($remainder) {
print substr($line, $k, $remainder), "\n";
}
}
------------------------------
Date: 7 Feb 1997 15:45:07 GMT
From: nvp@shore.net (Nathan V. Patwardhan)
Subject: Re: How to convert a text file of arbitrary length lines to fixed length?
Message-Id: <5dfim3$bth@fridge-nf0.shore.net>
Jack Burton (jackb@pgw.picker.com) wrote:
: I'd like to know if anyone is willing to provide me an example perl
: script
: that does the following.
Oh, so you need something to fix your broken linewrap. :-)
Check out the Text::Wrap module for Perl 5. It does exactly what you
want, and contains documentation.
--
Nathan V. Patwardhan
nvp@shore.net
"What is your quest?"
------------------------------
Date: Fri, 7 Feb 1997 08:20:43 -0800
From: Tom Phoenix <rootbeer@teleport.com>
To: Jack Burton <jackb@pgw.picker.com>
Subject: Re: How to convert a text file of arbitrary length lines to fixed length?
Message-Id: <Pine.GSO.3.95.970207081913.3726J-100000@linda.teleport.com>
On Fri, 7 Feb 1997, Jack Burton wrote:
> Subject: How to convert a text file of arbitrary length lines to fixed
> length?
> There is probably a better way to do this.
Indeed. This is called word wrapping, and you'll find plenty of ways to do
it if you search a Usenet archive like Deja News. hope this helps!
-- Tom Phoenix http://www.teleport.com/~rootbeer/
rootbeer@teleport.com PGP Skribu al mi per Esperanto!
Randal Schwartz Case: http://www.lightlink.com/fors/
------------------------------
Date: 7 Feb 1997 16:22:52 GMT
From: mbeattie@sable.ox.ac.uk (Malcolm Beattie)
Subject: Re: Patch to add threads to Perl5.003
Message-Id: <5dfkss$41d@news.ox.ac.uk>
Keywords: Perl, Threads
In article <5d3ipm$cpn$1@nadine.teleport.com>,
Eric Arnold Anderson <eanders@u98.CS.Berkeley.EDU> wrote:
>I've created a patch that adds threads to Perl5.003; since this
>requires that the interpreter and any extensions are recompiled, and
>since it hasn't been extensively tested, I haven't submitted it yet to
>CPAN, and am just making it available from a web page. The web page
>is: <http://www.cs.berkeley.edu/~eanders/thrperl/>; since we've been
>having some trouble with file servers, you may also try the reference
><http://now.cs.berkeley.edu/~eanders/thrperl/>. The release notes
>from the patch are included below.
My multi-threading patches have been around for a couple of years
and are queued to be folded into the perl core once 5.004 is out.
Eric's patches are for "fake" threads (i.e. state explicitly saved
and restored by perl and scheduled within perl at op granularity).
They are rather like the Plthread module I put out a couple of
years back. The threading support going in to the perl core for
5.006/5.006 subsumes both fake threads and real threads. Systems
with real threads (POSIX pthreads API or others can be added) get
real, those without can get (via macro support which needs adding
but shouldn't be too hard) the explicit save/restore of contexts
that give you "fake" threads. It may well be that Eric's patches
are useful for some until the official support comes along (it may
be a while before core threading is stable) but be aware that the
API may well be different for the real thing.
--Malcolm
--
Malcolm Beattie <mbeattie@sable.ox.ac.uk>
Oxford University Computing Services
"Widget. It's got a widget. A lovely widget. A widget it has got." --Jack Dee
------------------------------
Date: 7 Feb 1997 16:39:08 GMT
From: bliles@power.digex.net (Bryan C. Liles)
Subject: Perl and Crontabs
Message-Id: <5dflrc$3e6@news3.digex.net>
This code snippet below works when I run it from the command line, but it
doesn't work from cron. Do I need to define something somewhere?
$date_format is empty when I run it from cron, but it gets the
correct value when ran from the command line
Any suggestions?
--------------------------------------------------------------
$datadir = "/local/home/bliles/snmp/programs/getuser/data";
open(DATE, "date +\"%d%m%Y-%H%M\ |");
$date_format = <DATE>;
chomp($date_format);
$logfile = join('/',$datadir,$date_format);
chomp($logfile);
$current = "/local/home/bliles/snmp/programs/getuser/current";
--
Bryan Liles
bliles@digex.net
------------------------------
Date: Fri, 07 Feb 1997 14:55:43 -0500
From: b.wilkinson@pindar.co.uk (Bob Wilkinson)
Subject: Re: perl bug? side effect of using != where ne is required (semi-long)
Message-Id: <b.wilkinson-0702971455430001@ip57-york.pindar.co.uk>
In article <5dcq99$fis@client3.news.psi.net>, klassa@ivc1.ivc.com (John
Klassa) wrote:
> A co-worker came to me with some strange output he was seeing... We managed
> to figure out that the root of his problem was that he was using "!=" where
> he needed to be using "ne". The symptoms were puzzling, though, so I set
> about to write a minimal test case that would demonstrate the behavior.
> This almost looks like a perl bug, to me. What do y'all think?
>
> Code deleted
>
Warning!! Non-expert writing!
However, I think that this is a manifestation of
the magic which Perl uses to determine whether a scalar is number-like or
string-like. Using a != comparison on $begin forces Perl to think of this as a
numeric variable, which type is forced on to $idx when it is initialised. Hence
the first pass through the loop the value is "001" (numeric), which when
incremented is rationalised to be "2" (numeric). Conversely when a "ne"
comparison is used on $begin, the type forced onto $idx is that of a string-like
variable. When string-like variables undergo ++ increments Perl uses more magic
so that the string value is incremented.
e.g. if $tmp = "ab" then $tmp++ will be "ac" (pp. 81 in pink camel)
The behaviour you describe seems consistent with my view of the world according
to Perl.
Bob
--
All is flux, nothing is still; nothing endures but change
- Heraclitus
------------------------------
Date: Fri, 07 Feb 1997 16:13:47 +0000
From: Douglas SEAY <seay@absyss.fr>
Subject: Re: Perl vs Korn Shell
Message-Id: <32FB54BB.20B0@absyss.fr>
Ed King wrote:
>
> I'm at the point where I want to write some simple programs for my
> private use. I bought the Bolsky book entitled "The New Korn Shell" and
> the author maintains the Korn shell is the greatest thing since sliced
> bread. I want to know if Korn shell scripting or Perl is more
> versatile. If I just want to invest time learning one which one should
> it be and why.
What do you mean by "simple programs"?
What platforms do you want to run them on?
As a rule, ksh is on every modern unix system, but perl
is hit or miss. Sure, it is easy to install perl,
but it is an extra step.
Personally, I use Perl for nearly everything. If something
is going to be one or two lines that call other programs to
do the work, I'll use a shell. For anything larger than
this, I'll go with Perl.
If you already have a background in unix, Perl is easy
to learn. But if you have this background, the Korn shell
is easy to learn too.
My thoughts are that Perl is *much* more versatile.
Things that are fairly easy to do in Perl that I've never
heard of people doing in ksh
- IP networking
- DBM file maniuplation
- Compiler/Language Translation
- Image manipulation
- GUI programming
When scripting, you'll need to launch large numbers of
subprocesses to do things that Perl does for you, such
as grep, sort and awk(ugh!). This means only one syntax
to learn.
As I am biased for Perl, I've never looked into what
libraries exist for the Korn shell. Perl's CPAN is
great. Who wants to re-invent the wheel?
Hope this helps.
doug seay
seay@absyss.fr
------------------------------
Date: Fri, 07 Feb 1997 10:27:33 -0600
From: Dave Stagner <david_stagner@ncs.com>
To: Ed King <kinge@oklahoma.net>
Subject: Re: Perl vs Korn Shell
Message-Id: <32FB57F5.41C6@ncs.com>
Whether perl or korn shell is better depends largely on what you're
doing. Korn shell is much more effective as an interactive command line
than perl. :}
As a programming language, perl is far, far more powerful than Korn
shell or any other Unix shell. For that matter C++ is (arguably) more
powerful than perl. That doesn't mean you should use C++ for everything
that can be done in perl, right? Nor should you use perl for everything
that can be done in a Unix shell. Quickie shell programming, especially
simple loops and stuff on the command line, can be very powerful and
useful.
Like someone else said, a good hacker should learn BOTH shell and perl.
And C, and maybe Lisp. Not sed or awk, because perl is much better. :}
--
David Stagner david_stagner@ncs.com
National Computer Systems vox 319 354 9200
Iowa City, IA fax 319 339 6555
Economics is the "dismal science". Software is the "dismal
engineering".
------------------------------
Date: Fri, 7 Feb 1997 07:57:36 -0800
From: Tom Phoenix <rootbeer@teleport.com>
To: ehsan zarrabi <ezarrabi@direct.ca>
Subject: Re: perl?
Message-Id: <Pine.GSO.3.95.970207075501.3726H-100000@linda.teleport.com>
On Thu, 6 Feb 1997, ehsan zarrabi wrote:
> How do I run this Perl Script.
[ Entire script snipped. ]
You can run it the same way you would run this much shorter one.
#!/usr/bin/perl
print "The Perl docs will help you out.\n";
Hope this helps!
-- Tom Phoenix http://www.teleport.com/~rootbeer/
rootbeer@teleport.com PGP Skribu al mi per Esperanto!
Randal Schwartz Case: http://www.lightlink.com/fors/
------------------------------
Date: Fri, 07 Feb 1997 08:22:27 -0600
From: Mike DePriest <depriest@mindspring.com>
Subject: PROBLEM: My extension's stack gets trashed...
Message-Id: <32FB3AA3.7A57@mindspring.com>
After considered review of the documentation and the FAQ, and scanning
the last 3500 messages here, I am soliciting your assistance.
Using: Perl 5.002 on HP-UX 9.07, built with HP ANSI C.
I have written an extension that implements an interface to the pstat()
family of functions (which are not 'documented' on HP-UX 9.x but work
OK).
One of the functions I extended is having problems with the stack
getting corrupted when it is invoked in a certain way.
If I do this in my script:
@values = pstat_getdynamic;
the @values array is fully populated with the expected number of return
values (33) and everything seems OK.
However, if I do this instead (which I would rather do):
@values = pstat_getdynamic || warn "pstat_getdynamic failed\n";
the @values array is trashed - $values[0] contains the data that should
be in $values[3], and $values[1..32] are undefined.
This worked fine under 5.000 on HP-UX 9.03.
Is there something obvious about this problem that I am missing? I'll be
happy to share any of the gory details on request, I won't post them
here now because of the size.
I really appreciate your time and effort in considering this problem.
--Mike DePriest
--I can only aspire to Perl hackerdom
------------------------------
Date: Thu, 06 Feb 1997 20:50:57 GMT
From: forr@ultranet.ca (Helen)
Subject: regexps challenge - movies.txt (0/1)
Message-Id: <32fa4142.17493007@news.ultranet.ca>
I wish to pull the url's, links, and descripive text out of an html
page and place them in a colon delimited text file; like so:
www.byte.com:Byte Magazine:Cross-platform computer magazine:0
(the 0 needs to be on the end for later programming)
The code below will take out url's and their ensuing links, giving me
the following table:
www.byte.com:Byte Magazine: :0
But ff I try to take out the descriptive text as well, I get nothing.
Any suggestion as to why this is happening would be greatly
appreciated.
I've attached the html document I'm trying to get this to work on.
__________________________________________________
#!/usr/bin/perl -w
#match url's
$url = "http:\/\/(.+?)(?=\">)";
#match links between url and </a>
$link = "\">(.+?)(?=<\/a>)";
#match descriptive text between</a> and next markup
#This one doesn't work!
$descr = "<\/a>\b(.*?)<";
# $/ ="";
while (<>) {
# pull url's, links, and descriptions out of markup text
if (/$url$link/gis) {
#put matches in : delimited list; add 0
@flatline = join ':', $1, $2, $3, '0';
print (@flatline, "\n");
}
}
------------------------------
Date: Thu, 06 Feb 1997 20:50:58 GMT
From: forr@ultranet.ca (Helen)
Subject: regexps challenge - movies.txt (1/1)
Message-Id: <32fa4432.18244579@mail.ultranet.ca>
begin 644 movies.txt
M/"%$3T-465!%($A434P@4%5"3$E#("(M+R]342\O1%1$($A434P@,BXP("L@
M86QL(&5X=&5N<VEO;G,O+T5.(B`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875G92!&
M:6QM(&%N9`T*5FED96\\+T$^("`@+2!T96-H;FEC86P@86YD(&%E<W1H971I
M8R!H:7-T;W)Y+"!N97=S+"!A;F0@:7-S=65S(&]F('=I9&4@9V%U9V4L#0IL
M87)G92!F;W)M870L(&%N9"!W:61E('-C<F5E;B!F:6QM(&%N9"!V:61E;RX@
M#0H\+U1$/CPO5%(^/"]404),13X-"CQ!($A2148](FAT='`Z+R]W=W<N=6QT
M<F%N970N8V$O=V5B<R]M86=A>FEN97,O;6%G87II;F5S+FAT;6PB/CQ)34<-
M"E-20STB:'1T<#HO+W=W=RYU;'1R86YE="YC82]I;6%G97,O8G5T=&]N-RYG
F:68B($)/4D1%4CTB,"(^/"]!/B`-"CPO0D]$63X\+TA434P^#0H`
`
end
------------------------------
Date: Fri, 07 Feb 1997 14:29:27 +0100
From: Christoph Marquardt <Christoph_Marquardt@bbn.hp.com>
To: "Nathan V. Patwardhan" <nvp@shore.net>
Subject: Re: Sending results to two frames at once
Message-Id: <32FB2E37.5E38@bbn.hp.com>
you might want to insert a sub frame-layout-document into your document
to make this work
(e.g. have one file with 3 frames where the middle frame might have the
name "middle_frame" and then load a 2 frame document to target
"middle_frame", then you just need to replace this "middle_frame" frame
with another 2 frame document by targetin the according output)
sounds complicated? it isn't! :)
an example:
frame1.html:
<framset ...>
<frame name="one" src="x.html">
<frame name="middle_frame" src="twoframes.html">
<frame name="three" src="y.html">
</frameset>
and twoframes.html:
<frameset ...>
<frame ...>
<frame ...>
</frameset>
does that help?
Christoph
--
Hewlett Packard GmbH email: Christoph_Marquardt@bbn.hp.com
Network & System voice: (49)7031-147846 (HP: 778-7846)
Management Division fax: (49)7031-141388 (HP: 778-1388)
This message does not necessarily reflect my employer's opinions
"Talking about music is like dancing about architecture" - FZ
------------------------------
Date: 7 Feb 1997 14:25:29 GMT
From: nvp@shore.net (Nathan V. Patwardhan)
Subject: Re: Sort on third element of an Multi-Dim Array
Message-Id: <5dfe0p$5ua@fridge-nf0.shore.net>
Mike Stok (mike@stok.co.uk) wrote:
: How would I do that at a site where store & forward is allowed (e.g. mail
: and news) but TCP/IP connections to the outside world are not allowed or
: possible? I know I can do ftp by mail in a bind, but more and more
: places are getting selective about where people get to surf (for better
: or for worse...)
Agreed. It's difficult. In the past I'd used LWP through my ISP,
ran queries to www.whatever.site, and mailed the results to myself
(at my other account). Mucho extra kludge, but it did what I needed.
--
Nathan V. Patwardhan
nvp@shore.net
"What is your quest?"
------------------------------
Date: Fri, 7 Feb 1997 07:53:43 -0800
From: "D.M. Johnson" <ez045864@peseta.ucdavis.edu>
Subject: Re: Using exec-Why won't this work?
Message-Id: <Pine.GSO.3.95.970207074944.26047B-100000@bullwinkle.ucdavis.edu>
On 7 Feb 1997, Tom Christiansen wrote:
> It probably has something to do with your not reading what
> the perlfunc man page says about the exec() call, not to
> mention what the perltrap man page says about the -w switch.
>
Alright already!!! I get the point. The reason I didn't read the man
page was because I had a deadline (about 30 minutes after I originally
posted) and I had just attempted to read the man page for perlxstut, which
were confusing. Being pressed for time I hoped that by posting my problem
someone could see what was wrong and let me know before the deadline
(which is what happened). I do read man pages, so to everyone out there
who has written me replies telling me I am stupid for not reading
them...STOP!!!!!
Sincerely,
Douglas M. Johnson
------------------------------
Date: Fri, 7 Feb 1997 07:55:30 -0800
From: "D.M. Johnson" <ez045864@peseta.ucdavis.edu>
Subject: Re: Using exec-Why won't this work?
Message-Id: <Pine.GSO.3.95.970207075447.26047C-100000@bullwinkle.ucdavis.edu>
BTW, to everyone who sent me suggestions and didn't harp on me, thanks a
lot. You guys saved my butt.
D.J.
------------------------------
Date: 07 Feb 1997 10:09:25 -0500
From: nelson <nmljn@wombat.staff.ichange.com>
Subject: Re: Who can write a perl-search script for our company?
Message-Id: <w107mkkk5zu.fsf@wombat.staff.ichange.com>
WWW@pang.de (Miggy) writes:
> Hi,
> I have no experience in perl programming whatsoever. I'm doin pretty
> well with HTML so i'm looking for a partner who can write the perl
> part. Situation :
[snip]
You may know this already, but perl is not necessary to write programs
on your web server. So if you don't have experience in perl, but you
do have experience in C/Fortran/Visual Basic/sh, then you could write
the program you need in one of those languages instead.
Many books imply that perl is somehow necessarily connected to "the
web". It is not. It *is* very convenient, if you know how to program
it, of course, because it is very good at processing text, talking to
other programs via sockets, etc., which are all things that most
programs that receive their input via the Common Gateway Interface
(the CGI) usually need to do.
I hope this helps,
Laird
--
Laird J. Nelson (617) 252-5147
Systems Engineer 25 First Street
Nets, Inc. Cambridge, MA 02141
nmljn@wombat.staff.ichange.com http://www.netsinc.com/
------------------------------
Date: 7 Feb 1997 13:57:29 GMT
From: jk0101@medtronic.COM (John W. Komp)
Subject: Re: Write help please
Message-Id: <5dfcc9$qib@gazette.medtronic.com>
Thanks for the info on the Select instruction. I was baffled as my
camel book spends only a half page on formats (page 106) and my Sam's
Publishing Perl 5.0 book spends no pages on the select instruction.
I assume that if I set $~, $^ etc to specific values for each output
stream that as I cycle through the streams later in the program by
using the select instruction these values will change to the last
value set for that stream (ie I don't have to reset them each time I
change streams).
-John
--
****************************************************
This morning I shot six holes in my freezer
I think I've got cabin fever
Somebody sound the alarm
- J. Buffett
****************************************************
------------------------------
Date: 8 Jan 97 21:33:47 GMT (Last modified)
From: Perl-Request@ruby.oce.orst.edu (Perl-Users-Digest Admin)
Subject: Digest Administrivia (Last modified: 8 Jan 97)
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.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.
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 V7 Issue 911
*************************************