[10083] in Perl-Users-Digest
Perl-Users Digest, Issue: 3676 Volume: 8
daemon@ATHENA.MIT.EDU (Perl-Users Digest)
Thu Sep 10 07:07:29 1998
Date: Thu, 10 Sep 98 04:00:21 -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 Thu, 10 Sep 1998 Volume: 8 Number: 3676
Today's topics:
/bin/sh -x output for perl? yeekoon@my-dejanews.com
British Graduate looking for US employment andya@earthling.net
Re: eof check on output stream <koos_pol@nl.compuware.com>
Re: How can I draw simple chart using perl? <sidi@angband.org>
Re: How to act as a cookie enable browser? (was: Any LW <aas@sn.no>
Re: learning perl......... dave@mag-sol.com
max function in perl jasjeet14@my-dejanews.com
Need help from users of Mail::* <NOSPAM.stephane.barizien@ocegr.fr>
Re: Object serialization? <heje@heje-pc.int.tele.dk>
Re: Perl & Java - differences and uses (David Cantrell)
Re: Perl Data Structures: trees etc... (David Formosa)
Re: Perl gurus opinion needed. (Lack Mr G M)
Re: Perl gurus opinion needed. (Lack Mr G M)
Re: Perl-Cgi-htaccess is this as simple as I think it i <ray@blacki.com>
Re: Printing images (A Watcher)
problem with recursion in perl <ggy22@dial.pipex.com>
Re: QUESTIONS (was: Perl Programmer Needed) (Craig Berry)
sorting strings <st@fr.com>
sybperl installation problems <malcolm.stevens@fnbinvest.co.za.remove_nospam>
Re: System call in PERL <Tony.Curtis+usenet@vcpc.univie.ac.at>
Re: System call in PERL <gzevin@cisco.com>
Re: System call in PERL <malcolm.stevens@fnbinvest.co.za.remove_nospam>
uniq (Jerrad Pierce)
Re: uniq <ajohnson@gpu.srv.ualberta.ca>
What version does the CPAN doc document? <NOSPAM.stephane.barizien@ocegr.fr>
Re: Why Perl ? (David Cantrell)
Special: Digest Administrivia (Last modified: 12 Mar 98 (Perl-Users-Digest Admin)
----------------------------------------------------------------------
Date: Thu, 10 Sep 1998 09:48:11 GMT
From: yeekoon@my-dejanews.com
Subject: /bin/sh -x output for perl?
Message-Id: <6t878h$9s6$1@nnrp1.dejanews.com>
Hiya,
I'm a perl newbie. I have just came across some perl code and I need to
understand how it works without actually running the code.
I know in the Bourne shell, there is this command -x. This command will
actually run the script but not execute the commands. So, I can see the output
and trace through the code to understand what each part is doing.
Is there a similar switch in perl that I can use?
I have tried the -w switch as recommened in the FAQ but it just checks the
syntax and does not give the running output.
TIA
yee koon
ps : Please drop me a mail at lohyk@xssc.sgp.xerox.com as I'm not a regular
here.
-----== Posted via Deja News, The Leader in Internet Discussion ==-----
http://www.dejanews.com/rg_mkgrp.xp Create Your Own Free Member Forum
------------------------------
Date: Thu, 10 Sep 1998 10:35:05 GMT
From: andya@earthling.net
Subject: British Graduate looking for US employment
Message-Id: <6t8a0p$cuq$1@nnrp1.dejanews.com>
Sorry if post this causes any offence!
I am a recent graduate from a British University with a Masters degree in
Electronic Engineering, and I am looking for work in the US (and
therefore sponsorship for a H1-B visa).
A copy of my Resume can be found at:
http://www.maxmon.com/andycv.htm
and I can provide a more detailed version on request.
My skills include VHDL, Cadence, pSpice, C, Visual C++, Perl, HTML, UNIX
and HiLo. My final year project was the design of an embedded system for
education purposes based around an 8051 microcontroller using the Keil C
Compiler. In addition. I have taken part in group IC design and embedded
system design projects.
Details of my final year project can be found at:
http://www.maxmon.com/phizzyb.htm
and more are included in my extended resume.
I have a mountain of enthusiasm and motivation to succeed, so if you have
any questions please get in touch!
Andrew Ayre MEng AMIEE
-----== Posted via Deja News, The Leader in Internet Discussion ==-----
http://www.dejanews.com/rg_mkgrp.xp Create Your Own Free Member Forum
------------------------------
Date: Thu, 10 Sep 1998 11:21:55 +0200
From: Koos Pol <koos_pol@nl.compuware.com>
Subject: Re: eof check on output stream
Message-Id: <35F79A33.1681@nl.compuware.com>
Doug Azzarito (aka "Mr. HPFS") wrote:
>
> I am using perl 5.003_07 under Win98. I have a script that opens a file for
> output, and one of my subroutines does an eof check on the filehandle to see
> if anything was written. This puts a garbage character into the output
> stream.
[snip]
> open (TEST, '>junk.txt');
> print TEST "Start.....";
> if (eof(TEST)) {
> print TEST "EOF\n";
> }
> else {
> print TEST "Not EOF\n";
> }
$ perl -w t.pl
$ cat junk.txt
Start.....Not EOF
Seems to work ok on 5_004_04 (Solaris)
Isn't there a later Perl port for the MS series? 5.003 is considered
old.
--
Koos Pol
----------------------------------------------------------------------
S.C. Pol T: +31 20 3116122
Systems Administrator F: +31 20 3116200
Compuware Europe B.V. E: Koos_Pol@nl.compuware.com
Amsterdam PGP public key available
------------------------------
Date: 10 Sep 1998 07:18:20 GMT
From: Chris Sidi <sidi@angband.org>
Subject: Re: How can I draw simple chart using perl?
Message-Id: <6t7ufs$89u$1@news-int.gatech.edu>
novice <peace1@writeme.com> wrote:
> Hello, there!
> I wanna draw simple chart using perl like below but graphically.(not
> text!!!)
> (I actually wanna draw chart similar to UNIX performance meter.)
* Teach a man to fish Answer:
Go to www.perl.com, and on the lower left hand side use the textfield to
search for "graph" (or click graphics). Or search www.dejanews.com for
"graph & ~g comp.lang.perl*"
* Go Fish Answer:
gifgraph module
http://www.perl.com/CPAN-local/modules/by-category/18_Images_Pixmaps_Bitmaps/GIFgraph/
http://www.tcp.chem.tue.nl/~tgtcmv/perl/
-Sidi
--
Does Arkansas suck?
"I am not going to allow my son to stay in Arkansas... We're going to get
him the hell out of here. This isn't the place for a rabid animal, say
nothing about a 14-year-old boy." -Scott Johnson, father of killer schoolboy
"I think a lot of this is prejudice against our state. They wouldn't do
this if we were from some other state," - Hillary Clinton on Investigation
------------------------------
Date: 10 Sep 1998 11:40:07 +0200
From: Gisle Aas <aas@sn.no>
Subject: Re: How to act as a cookie enable browser? (was: Any LWPng example?)
Message-Id: <m3btoos3uw.fsf@furu.g.aas.no>
hup@addall.com writes:
> Do you have any idea where could I find a example code which can make
> my program act like a cookie enable browser?
> As some web site do cookie checking, I have to enable cookie for accesing.
This should do the trick;
# assuming you already have $ua contain a reference to an LWP::UserAgent
use HTTP::Cookies;
$ua->cookie_jar(HTTP::Cookies->new);
--
Gisle Aas
------------------------------
Date: Thu, 10 Sep 1998 08:12:30 GMT
From: dave@mag-sol.com
Subject: Re: learning perl.........
Message-Id: <6t81lc$3b4$1@nnrp1.dejanews.com>
In article <35F6EE41.3ABA@klaskycsupo.com>,
jamdiaz@klaskycsupo.com wrote:
> I am trying to learn to create some reports on a UNIX based system..I
> what to take output,such as df -k and output to file...then make it
> readable...
>
> I tried using split to create fields, but the split(//): only takes one
> space into account...How can I parse fields with various number spaces
> in between....
The first parameter to 'split' is a regular expression. Read up on regular
expressions ('perldoc perlre' is a good start) until you can work one out that
matches various numbers of spaces.
hth,
Dave...
--
dave@mag-sol.com
London Perl M[ou]ngers: <http://www.mag-sol.com/London.pm/>
-----== Posted via Deja News, The Leader in Internet Discussion ==-----
http://www.dejanews.com/rg_mkgrp.xp Create Your Own Free Member Forum
------------------------------
Date: Thu, 10 Sep 1998 06:14:25 GMT
From: jasjeet14@my-dejanews.com
Subject: max function in perl
Message-Id: <6t7qo0$qu8$1@nnrp1.dejanews.com>
How do we calculate the max or min value on particular field records in a
database ie. if wish to display the maximum value of a field say rate in a
database. Please help me on this.
jasjeet
-----== Posted via Deja News, The Leader in Internet Discussion ==-----
http://www.dejanews.com/rg_mkgrp.xp Create Your Own Free Member Forum
------------------------------
Date: Thu, 10 Sep 1998 08:32:33 GMT
From: "Stephane Barizien" <NOSPAM.stephane.barizien@ocegr.fr>
Subject: Need help from users of Mail::*
Message-Id: <Ez27tF.1sn@oce.nl>
I want to create a gizmo that allows one to post replies to archived mail
articles grabbed from HTML archives. The idea is that the user starts from
the URL of an HTML file generated by 'hypermail'; out of it I get the
archived article in HTML form, something like:
<!-- received="Wed Dec 10 14:38:28 1997 MET DST" -->
<!-- sent="Wed, 10 Dec 1997 14:38:00 +0100" -->
<!-- name="Stephane Barizien" -->
<!-- email="javerage@domain.com" -->
<!-- subject="thesubj" -->
<!-- id="9712101338.AA09300@domain.com" -->
<!-- inreplyto="thesubj_of_the_message_replied_to" -->
<title>archivename: thesubj</title>
<h1>thesubj</h1>
Stephane Barizien (<i>javerage@domain.com</i>)<br>
<i>Wed, 10 Dec 1997 14:38:00 +0100</i>
<p>
<ul>
<li> <b>Messages sorted by:</b> <a href="date.html#1441">[ date ]</a><a
href="index.html#1441">[ thread ]</a><a
href="subject.html#1441">[ subject ]</a><a
href="author.html#1441">[ author ]</a>
<!-- next="start" -->
<li> <b>Next message:</b> <a href="foo.html">somesubj</a>
<li> <b>Previous message:</b> <a href="bar.html">yetanothersubj</a>
<li> <b>Maybe in reply to:</b> <a href="gee.html">asubj</a>
<!-- nextthread="start" -->
</ul>
<!-- body="start" -->
message body, with <p>'s and <br>'s
<!-- body="end" -->
<p>
<ul>
<!-- next="start" -->
<li> <b>Next message:</b> <a href="foo.html">somesubj</a>
<li> <b>Previous message:</b> <a href="bar.html">yetanothersubj</a>
<li> <b>Maybe in reply to:</b> <a href="gee.html">asubj</a>
<!-- nextthread="start" -->
</ul>
and post the requesting user a mail message to which (s)he does a "reply to
all" to post a follow-up to the original thread.
In need someone's experience with Mail::* to give me some hints (OK, I can
RTFM, but I want a kickstart; call me lazy if you wish -- anyway I'm not a
RFC822/sendmail/SMTP expert) towards the required Perl code to send the mail
with the proper headers (massaging the message _body_ should be a
nobrainer).
I'm somewhat lucky: hypermail preserves the original header fields in the
form of HTML comments!
TIA for any help.
------------------------------
Date: 10 Sep 1998 11:15:48 +0200
From: Helge Jensen <heje@heje-pc.int.tele.dk>
Subject: Re: Object serialization?
Message-Id: <m3iuiw49bv.fsf@heje-pc.int.tele.dk>
mike@stok.co.uk (Mike Stok) writes:
> In article <35F546CB.C3634F6F@uni.lrz-muenchen.de>,
> Florian Pahl <pahl@uni.lrz-muenchen.de> wrote:
> >-=-=-=-=-=-
> >
> >I want to transmit Perl objects from one site to
> >another.
> You might consider the Data::Dumper module which is included in recent
> distributions of Perl or can be retrieved from CPAN (the comprehensive
> perl archive network - see http://www.perl.com/CPAN/ ) or the FreezeThaw
> module which are a couple of ways you can start.
I have had success with the Storable module, doing exactly what you
want. Unfortunatly i do not have access to RPC on the remote site, so
i have written a modules that does RPC through a httpdaemon passing
objects back and forth.
My next step is to implement encryption and authentication on the
protocol (using multiple types, so you can have SSL or some other
algorithm at will).
I will be looking into making a Java class for serializing /
deserializing data encoded by Storable, so I can exchange objects
between Java & Perl (Corba doesn't exchange objects, just
references!).
--
|-----------------------------------------------------------------------------|
|- Work ----- Home ----- University -|
|-----------------------------------------------------------------------------|
|Helge Jensen | Helge Jensen |Helge Jensen |
|Systems Architect | Norsgade 7b, 6 |BNF in TAAGEKAMMERET |
|Tele Danmark Internet | 8000 Erhus C |email: |
|Nordlandsvej 82 A | TLF: 86 76 35 99 | jensen@daimi.aau.dk |
|8240 Risskov | email: slog@slog.dk | |
|TLF: 893-76878 | | |
|email: helge@webmaster.dk | | |
|-----------------------------------------------------------------------------|
------------------------------
Date: Thu, 10 Sep 1998 10:20:44 GMT
From: NukeEmUp@ThePentagon.com (David Cantrell)
Subject: Re: Perl & Java - differences and uses
Message-Id: <35fda7ec.62346619@thunder>
On Thu, 10 Sep 1998 00:53:00 GMT,
George Reese <borg@imaginary.com> enlightened us thusly:
>Perl has no real use. If you have to do scripting or text processing,
>use Python. Otherwise, use Java.
Care to back that up?
--
David Cantrell, part-time NT/java/SQL techie
full-time chef/musician/homebrewer
http://www.ThePentagon.com/NukeEmUp
------------------------------
Date: 10 Sep 1998 16:50:41 +1000
From: dformosa@zeta.org.au (David Formosa)
Subject: Re: Perl Data Structures: trees etc...
Message-Id: <6t7ss1$uiu$1@godzilla.zeta.org.au>
In <x7n288zfm1.fsf@sysarch.com> Uri Guttman <uri@sysarch.com> writes:
>>>>>> "DF" == David Formosa <dformosa@zeta.org.au> writes:
> DF> In <6t7c93$o4g$1@monet.op.net> mjd@op.net (Mark-Jason Dominus) writes:
> >> In article <6t72bl$qes$1@godzilla.zeta.org.au>,
> >> David Formosa <dformosa@zeta.org.au> wrote:
> >>> Hierarchically nested hashes are trees.
> >> So they are. But they're trees in an awfully funny way.
> DF> Most peaple seem to think of trees like this (pydo-code)
[...]
>the implementation of a tree is irrelevant to whether the data
>structure is interpreted as a tree.
Of cause, I didn't mean to imple that it was. I was just talking about the
way I like to implement trees.
------------------------------
Date: Thu, 10 Sep 1998 09:51:51 BST
From: gml4410@ggr.co.uk (Lack Mr G M)
Subject: Re: Perl gurus opinion needed.
Message-Id: <1998Sep10.095151@ukwit01>
|> On 2 Sep 1998 23:40:53 -0400, Mark-Jason Dominus <mjd@op.net> wrote:
|> At the conference, when we were printing certificates, people asked us
|> for the darndest things. We certified people as Perl Programmers,
|> Perl Studmuffins, Perl Gurus, Perl Hackers, Perl Engineers, Perl
|> Experts, Perl Wizards, Perl Poets, Perl Porters, Perl Pornographers,
|> and Perl Pimps.
What about Perl Swine?
(As in casting ....)
--
----------- Gordon Lack ----------------- gml4410@ggr.co.uk ------------
The contents of this message *may* reflect my personal opinion. They are
*not* intended to reflect those of my employer, or anyone else.
------------------------------
Date: Thu, 10 Sep 1998 10:52:13 BST
From: gml4410@ggr.co.uk (Lack Mr G M)
Subject: Re: Perl gurus opinion needed.
Message-Id: <1998Sep10.105213@ukwit01>
|> On Wed, 02 Sep 1998 21:42:24 GMT, Elaine -HappyFunBall- Ashton
|> <eashton@bbnplanet.com> wrote:
|>
|> i have always found the word 'hacker' to be interesting. its root comes
|> from the word 'hackney'...
No it doesn't.
It comes from the verb "to hack", as it "to cut with rough blows" or
"to chop or mangle". Ie. to set about something in a rough-and-ready
fashion.
--
----------- Gordon Lack ----------------- gml4410@ggr.co.uk ------------
The contents of this message *may* reflect my personal opinion. They are
*not* intended to reflect those of my employer, or anyone else.
------------------------------
Date: Thu, 10 Sep 1998 02:43:17 -0400
From: Ray Willig <ray@blacki.com>
To: dmorel <dmorel@stny.lrun.com>
Subject: Re: Perl-Cgi-htaccess is this as simple as I think it is?
Message-Id: <35F77505.F731F826@blacki.com>
Is the page with the script the only page in the secure area? i mean, if
not, a user could bookmark a different page than the one you want him to go
to and never have his access count decreased. maybe you could set a session
cookie and include an ssi execcgi in every page. store the cookie value in
the DB with session count and decrement when the cookie changes.
dmorel wrote:
> Hi,
> I am barely a novice perl programer, but I am getting around ok.
> Here is my concern, I need to password protect a directory, assigning
> permissions on the fly, for those that register, but here is the catch.
> I need
> to set a variable for the number of times they are allowed to enter.
> So, the password and username, could be used only once, or
> 500 times (or whatever number)
> My programing concern here is that this seems like a pretty easy task,
> since
> using .htaccess you can more or less call your .htpasswd file whatever
> you want.
> This being the case, could I not have a script that would read the
> contents
> of a form (user-name, password, number of times allowed) and write this
> information to a file on a directory only accesible from root (so it
> would be secure)
> Then, have it write the same information, minus the number of times
> allowed, to
> another file, which would be the file refreanced in my AuthUserFile line
> in
> .htaccess
> So in doing this, I have allowed my user to create her own password, and
> now,
> when she logs in, I run a script that goes to the first file, and
> decreases the number
> of logins allowed by 1 and then an if statment saying if it is less then
> 1 (or equal to zero?)
> go to the other file, read it, and delete the line on which this user
> name exsists.
> Having entered the secure area to get the page on which the script
> resides,
> a user with only 1 allowed access, would not get in more then once, as
> the
> password and username would be deleted after entry.
> This seems to me to be a relatively easy thing to do, relative in the
> sense that I have
> some real good books on perl, and would know how to do it in C++
> But I spent some time looking for scripts like this and did not find
> any.
> One of the things that scared me was that I was not sure how to deal
> with the encryption
> of the password, but I did find a script someone wrote to generate the
> encryption, so
> I am presuming I can just make this part a function of the sign up page
> where I write the
> files to begin with.
> And now, I get to the reason of this post.
> Am I correct? Can I do this in perl, and if so, is it a good idea.
> Or is my newbie perl/cgi mind missing something very obvious?
> Any thoughts or comments on either the procedure or the
> concept as a whole would be most apreciated.
> Regards,
> -david
------------------------------
Date: 09 Sep 1998 23:49:57 PDT
From: jsuzuki@concentric.net (A Watcher)
Subject: Re: Printing images
Message-Id: <35f773c4.5226194@news.concentric.net>
Hi,
Thanks for the help.
On 08 Sep 1998 11:15:35 +0200, Tony Curtis
<Tony.Curtis+usenet@vcpc.univie.ac.at> wrote:
>Then the problem lies elsewhere (I'd guess you've got the
>wrong path to the images in the src attribute). Any road
>up, this is not a perl problem, you'll get more exact help
>on writing HTML & CGI in
I placed the less than 1k gif files in the cgi directory as well as
the default directory of the web site. The program is called from
various subdirectories of the site. I think the problem also has to
do with my placing the images within one of the separate form tables
generated, not directly on the background page. Will try putting the
images on the background page generated too. Not as effective but,
perhaps the easy way to do this.
>
> <URI:news:comp.infosystems.www.authoring.html>
> <URI:news:comp.infosystems.www.authoring.cgi>
> <URI:news:comp.infosystems.www.servers.YOURPLATFORM>
I'll check the links you list. I really appreciate your thoughtful
input.
Thanks again
The more I know, the more I know - - - I don't know.
{:>)=
http://www.spiced.com
------------------------------
Date: Thu, 10 Sep 1998 11:45:11 +0100
From: "Gary Evans" <ggy22@dial.pipex.com>
Subject: problem with recursion in perl
Message-Id: <6t8apa$a2r$1@plug.news.pipex.net>
I'm pretty new to perl (in fact this is the first script I've written - and
I already have problems!!). The script below is a cut down version of the
one I've written, it's designed to recursively go through a directory
structure and print out whether it's a directory or a file (the real version
creates html based on this information to create a directory structure that
can be navigated on the browser).
It starts out OK but on the way out of the recursion it seems to lose the
ability to tell if a file is a directory or file.
I've tried it on NT and unix.
Is this a known problem? Am I trying to do things I shouldn't? and does
anyone have a way around it?
Any help would be very much appreciated.
The script:
print "Content-type: text/html\n\n";
&printdir("/home/gevans");
sub printdir {
if (chdir $_[0]){
foreach (<*>){
if (-d $_){
print "$_ is a directory\n";
&printdir($_[0] . "/" . $_);
}else{
print "$_ is a file\n";
}
}
}else{
print "error changing directory";
}
return;
}
Cheers
Gary
------------------------------
Date: 10 Sep 1998 05:42:26 GMT
From: cberry@cinenet.net (Craig Berry)
Subject: Re: QUESTIONS (was: Perl Programmer Needed)
Message-Id: <6t7os2$lfg$1@marina.cinenet.net>
Ronald J Kimball (rjk@coos.dartmouth.edu) wrote:
: Patrick Timmins <ptimmins@netserv.unmc.edu> wrote:
:
: > help me out quick buds ...
: > [etc.]
:
: *rofl*
:
: That was hilarious! Although it was rather frightening that several
: people responded apparently unaware that it was in jest. Some people
: just don't understand satire.
<sheepish grin> Whoops...thought my sense of humor was mil-spec reliable;
turns out that reading enough spam in clpm can pound it into
inoperability. Live and learn. And yeah, in retrospect, hilarious. OK,
gonna go crawl under a rock, now. :)
---------------------------------------------------------------------
| Craig Berry - cberry@cinenet.net
--*-- Home Page: http://www.cinenet.net/users/cberry/home.html
| "Ripple in still water, when there is no pebble tossed,
nor wind to blow..."
------------------------------
Date: Thu, 10 Sep 1998 12:29:28 +0200
From: "st" <st@fr.com>
Subject: sorting strings
Message-Id: <6t89fv$dld$1@buggy.easynet.fr>
Could someone point me in the right direction.
I want to get @givenSizes to
13, 15, 22, "S", "M", "L", "XL", "XXL", "XXXL"
I've obviously not got sort() sorted. What am doing wrong ?
Cheers,
Stuart
-----------------------------
my @givenSizes = ( "S", "XXL", "M", "L", 13, 22, 15, "XL", "XXXL" );
sub sizeSort {
my $sizes = { "S", "M", "L", "XL", "XXL", "XXXL" };
$a <=> $b
or
$sizes{$a} cmp $sizes{$b}
or
$a cmp $b;
}
my @vals = sort sizeSort @givenSizes;
print join( "\n", @vals );
------------------------------
Date: Thu, 10 Sep 1998 08:51:42 +0200
From: "Mal" <malcolm.stevens@fnbinvest.co.za.remove_nospam>
Subject: sybperl installation problems
Message-Id: <6t7t01$cva$1@hermes.is.co.za>
Hi
I am trying to install perl and sybperl on a solaris box.
I have compiled perl 5.004_04 and vanilla perl works well.
I then untarred sybperl into it's own directory and followed the
instructions in the README file.
"make" runs fine.
"make test" ran fine one I added ".././blib/arch/auto/Sybase/CTlib" and
".././blib/arch/auto/Sybase/DBlib" to my LD_LIBRARY_PATH.
In a sample app I have:
#!/usr/local/bin/perl
use Sybase::DBlib;
This falls over with:
Can't locate Sybase/DBlib.pm in @INC (@INC contains: /usr/local/lib/perl5
/usr/local/lib/perl5 /usr/local/lib/perl5 .) at ...
I have created a softlink to some of the sybperl pm modules etc in
/usr/local/lib/perl5 where my perl modules are but this is not mentioned in
the sybperl installation guide and really doesn't seem right to me. Should I
be doing this?
My questions are thus:
1. Do I have to recompile the perl binary after installing sybperl?
2. What environment variables must be set for sybperl?
3. Does the sybperl installation try to link itself to perl when installing
sybperl?
4. What exactly is happening with the sybperl installation?
thanx
Malcolm
------------------------------
Date: 10 Sep 1998 09:23:45 +0200
From: Tony Curtis <Tony.Curtis+usenet@vcpc.univie.ac.at>
Subject: Re: System call in PERL
Message-Id: <83emtkctxa.fsf@vcpc.univie.ac.at>
Re: System call in PERL, Jules <julius@clara.net> said:
Jules> Dear all, how do I make a system call in PERL?
Jules> Thanx, Jules
perldoc -f syscall
hth
tony
--
Tony Curtis, Systems Manager, VCPC, | Tel +43 1 310 93 96 - 12; Fax - 13
Liechtensteinstrasse 22, A-1090 Wien, | <URI:http://www.vcpc.univie.ac.at/>
"You see? You see? Your stupid minds! | private email:
Stupid! Stupid!" ~ Eros, Plan9 fOS.| <URI:mailto:tony_curtis32@hotmail.com>
------------------------------
Date: Thu, 10 Sep 1998 18:03:43 +1000
From: Greg Zevin <gzevin@cisco.com>
Subject: Re: System call in PERL
Message-Id: <35F787DF.6E1E04C1@cisco.com>
RTFM
Jules wrote:
>
> Dear all, how do I make a system call in PERL?
>
> Thanx,
> Jules
>
> ***There is not enough darkness in the whole world to extinguish the light
> of a small candle***
------------------------------
Date: Thu, 10 Sep 1998 11:54:38 +0200
From: "Mal" <malcolm.stevens@fnbinvest.co.za.remove_nospam>
Subject: Re: System call in PERL
Message-Id: <6t87mv$dnc$1@hermes.is.co.za>
qx or backticks "`"
Jules wrote in message <6t76cu$gst$2@eros.clara.net>...
:Dear all, how do I make a system call in PERL?
:
:Thanx,
: Jules
:
:***There is not enough darkness in the whole world to extinguish the light
:of a small candle***
:
:
:
:
------------------------------
Date: Thu, 10 Sep 1998 06:30:54 GMT
From: belg4mit@mit.edu (Jerrad Pierce)
Subject: uniq
Message-Id: <6t7rqe$b9v$1@news.tdl.com>
is there a (good) way to do uniq entirely within perl (no exec of the
utillity)?
I really even need the uniq'd list, just a count of the uniq lines in a list.
(this is then uniq -n [print all lines once only], or in some versions that
do not have -n, uniq -du)
E-mail replies preferred.
Thanks!
------------------------------
Date: Thu, 10 Sep 1998 01:47:53 -0500
From: Andrew Johnson <ajohnson@gpu.srv.ualberta.ca>
Subject: Re: uniq
Message-Id: <35F77619.5D980BC@gpu.srv.ualberta.ca>
[cc'd to author]
Jerrad Pierce wrote:
>
> is there a (good) way to do uniq entirely within perl (no exec of the
> utillity)?
>
> I really even need the uniq'd list, just a count of the uniq lines in a list.
>
> (this is then uniq -n [print all lines once only], or in some versions that
> do not have -n, uniq -du)
there are several methods for getting the unique elements of an
array (list) in perlfaq4:
perlfaq4.pod:=head2 How can I extract just the unique elements of an array?
perhaps one of them might be of some help in your situation.
regards
andrew
------------------------------
Date: Wed, 9 Sep 1998 17:52:50 +0200
From: "Stephane Barizien" <NOSPAM.stephane.barizien@ocegr.fr>
Subject: What version does the CPAN doc document?
Message-Id: <6t7vbi$hl2@janus.ocegr.fr>
In my recent woes with Perl patterns I tried to use '\z' (yes, lowercase)
because the perlre.html I found on CPAN mentioned it. As several people
mentioned, it doesn't exist; and I indeed can't find it when I do 'man
perlre' on my Solaris 2 5.004_1 setup.
Is this a 5.005 feature? If yes, where is this kind of addition documented
(in a detailed "whatsnew for 5.005" kind of doc, maybe?) If not, what does
this perlre.html refer to?
TIA
--
---
Stephane Barizien
Please remove the 'NOSPAM.' prefix when replying by e-mail.
Don't forget to cc: the newsgroup(s) in that case: others might
be interested in your answer!
------------------------------
Date: Thu, 10 Sep 1998 10:16:45 GMT
From: NukeEmUp@ThePentagon.com (David Cantrell)
Subject: Re: Why Perl ?
Message-Id: <35fca642.61920066@thunder>
On Tue, 08 Sep 1998 11:31:08 -0400,
John Porter <jdporter@min.net> enlightened us thusly:
>Jerry Pank wrote:
>>
>> Is there a way, with a $atan$pawn O$ to use command line perl (and not
>> have the results scroll off into oblivion)?
>
>It doesn't have to be "get a proper OS". You can make do with a
>proper shell program. I highly recommend 4-Win (or whatever the
>current incarnation is called; it was originally 4-DOS)
If you're on NT, get 4NT. For Win9x stick with 4DOS. They're at
http://www.jpsoft.com
>If you're on NT, a cmd.exe window can have scroll buffering (not
>the same as command history, though it has that too).
Or if you want a nice Unixy environment, get the cygwin32 package. It
includes the bash shell, most of the commonly used Unix utilities, and
gcc. http://www.cygnus.com/misc/gnu-win32
--
David Cantrell, part-time NT/java/SQL techie
full-time chef/musician/homebrewer
http://www.ThePentagon.com/NukeEmUp
------------------------------
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 3676
**************************************