[7506] in Perl-Users-Digest

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

Perl-Users Digest, Issue: 1132 Volume: 8

daemon@ATHENA.MIT.EDU (Perl-Users Digest)
Mon Oct 6 11:17:38 1997

Date: Mon, 6 Oct 97 08:00:24 -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, 6 Oct 1997     Volume: 8 Number: 1132

Today's topics:
     "reliability" of Win32 perl distribution (Jake Morrison)
     Re: "reliability" of Win32 perl distribution <Steve_Kilbane@cegelecproj.co.uk>
     Re: Candidate for new syntex (Brandon S. Allbery KF8NH; to reply, change "void" to "kf8nh")
     Re: change referer and ip address ? (Jeremy D. Zawodny)
     Re: check password on shadow password system.. <mewilcox@unt.edu>
     child labour <nuekar@edith.antenna.nl>
     Re: child labour (I R A Aggie)
     Re: click on cgi script to download file (Jeremy D. Zawodny)
     Re: Filehandle to file name? <seay@absyss.fr>
     Re: Filehandle to file name? (John Moreno)
     Re: Filehandle to file name? (Bart Lateur)
     Re: How can I write an pixel to the browser? <seay@absyss.fr>
     Re: How to use string contents as string name <seay@absyss.fr>
     Re: how to write HTML form data to a text file??? (Jay Flaherty)
     how to write to two or more file with one command ?  <frederic.corne@erli.fr>
     Loop variables changing? (Jerry Britton)
     Re: Loop variables changing? <friedman@uci.edu>
     my() redeclaring? why? <kimball@stsci.edu>
     Re: Net::FTP doesn't seem to work... (Jay Flaherty)
     Re: New to Perl - How to get Windows version (Jeremy D. Zawodny)
     Re: Newbie ques: How to concatenate two strings? (I R A Aggie)
     Perl & C++ Routines <miran.sepic4@mss.tel.hr>
     Re: perl c-link indenter (Gabriel Millerd)
     Re: perl: getting started <jeff@webdesigns1.com>
     Re: sfio on Solaris Intel 2.5.1 (Gene Gotimer)
     Re: Wanted: Wall/Schwartz book (1st ed) <seay@absyss.fr>
     Re: Wanted: Wall/Schwartz book (1st ed) (Bart Lateur)
     Digest Administrivia (Last modified: 8 Mar 97) (Perl-Users-Digest Admin)

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

Date: 6 Oct 1997 10:11:44 GMT
From: jake@twntpe.cdc.com (Jake Morrison)
Subject: "reliability" of Win32 perl distribution
Message-Id: <61adh0$q9f$1@cdshub.cdc.com>

Hello all,

I need to put together a simple end-user application (sending files
via MAPI from remote machines to a central server), and
I was wondering how well Win32 perl runs on various machines. 

That is, can I put together a binary distribution (using InstallShield
or maybe Gurusamy Sarathy's (sp?) distribution), and expect it to
work on a range of end user machines without trouble. 

I ask this because I was burned before using the perl4.036 386 version;
it worked fine on my development machine, but the DOS extender would die if 
the end-user's machine didn't have a math coprocessor.

On a similar note, anyone have experience with large-scale distribution
of the new perl5.004 DOS port?

Please save me from yet another Visual Basic nightmare :-)

Regards,
Jake




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

Date: Mon, 06 Oct 1997 13:46:04 GMT
From: Steve Kilbane <Steve_Kilbane@cegelecproj.co.uk>
Subject: Re: "reliability" of Win32 perl distribution
Message-Id: <a67cd$d2e4.d7@news.cegelecproj.co.uk>

In article <61adh0$q9f$1@cdshub.cdc.com>, jake@twntpe.cdc.com (Jake Morrison) writes:
> On a similar note, anyone have experience with large-scale distribution
> of the new perl5.004 DOS port?

Not large scale, but I'm pushing it internally. I built the system
locally, tarred up the resulting binary tree, and dumped it onto
an FTP server. So far, it's been extracted and used on a number
of machines, mainly NT 4.0, but it has been used on some OS/2
boxes, too.

This binary *doesn't* run on DOS, btw...
-- 
<Steve_Kilbane@cegelecproj.co.uk> - All opinions are mine alone.
Kilbane's law of integration: standardise on protocols and file
formats, and the applications take care of themselves.



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

Date: Mon, 06 Oct 97 09:28:03 -0400
From: bsa@void.apk.net (Brandon S. Allbery KF8NH; to reply, change "void" to "kf8nh")
Subject: Re: Candidate for new syntex
Message-Id: <3438e7ec$1$ofn$mr2ice@speaker>

In <m2u3evef2c.fsf@lbrenner.ne.mediaone.net>, on 10/05/97 at 11,
   A Man of the 90's <brenner@lbrenner.ne.mediaone.net> said:
+-----
| sub scanarray{
|   my $reg = shift;
|   my @array = @_;
|   my @subarr;
|   foreach $_(@array) {
|     push @subarr, $_ if (/$reg/);
|   }
|   return @subarr;
| }
+--->8

How does this differ in substance from grep(/re/, @array) ?

-- 
brandon s. allbery              [Team OS/2][Linux]          bsa@void.apk.net
cleveland, ohio              mr/2 ice's "rfc guru" :-)                 KF8NH
Warpstock '97:  OS/2 for the rest of us!  http://www.warpstock.org
Memo to MLS:  End The Burn Scam --- Doug Logan MUST GO!  FORZA CREW!



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

Date: Mon, 06 Oct 1997 13:45:41 GMT
From: zawodny@hou.moc.com (Jeremy D. Zawodny)
Subject: Re: change referer and ip address ?
Message-Id: <3439eb44.410960409@igate.hst.moc.com>

[cc'd automagically to original author]

On Sat, 04 Oct 97 10:44:11 GMT, javier@vr-web.com (Javier Vargas)
wrote:

>someone knows where i can get some info or how can i send another referer and 
>ip when making an http call using perl ? 

It sounds as though you're asking us how to modify existing code to do
something different. However, you've provided us no clue as to what
your existing code is like and how it works.

Are you using the LWP modules? Something home-grown?

Jeremy
-- 
Jeremy Zawodny
Internet Technology Group
Information Technology Services
Marathon Oil Company, Findlay Ohio

http://www.marathon.com/

Unless explicitly stated, these are my opinions only--not those of my employer.


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

Date: Mon, 06 Oct 1997 08:26:28 -0500
From: Mark Wilcox <mewilcox@unt.edu>
To: "Ask Bjxrn Hansen" <ask@netcetera.dk>
Subject: Re: check password on shadow password system..
Message-Id: <3438E703.1C35D212@unt.edu>

There is a system call, getspnam that will return the Shadow Password.
As mentioned earlier you will have to be root to do this.
You will have to link the system call with Perl to use it however. Or write
your own specialized program to do that.
If you are using NIS you can use
/usr/bin/ypmatch $name passwd.adjunct.byname
Where $name is the username. Again you have to be root, but that's what we are
using at UNT.

Mark

Ask Bjxrn Hansen wrote:

> Hi,
>
> How can I check a password on a system with shadow passwords?  getpwnam
> just returns 'x' in the password field (as it should do afaik).  Do I have
> to create a suid program just to do this?
>
> Please cc your replies to ask@netcetera.dk; my newsfeed are pretty
> unstable at the moment.
>
> kind regards,
>
> ask
>
> ---------------------------------------------------------------------
> ask bjoern hansen - Netcetera - Finsensvej 80 - DK-2000 Frederiksberg
> tlf 38 88 32 22 / 40 44 58 66 / 38 88 20 38 ext 341 - Fax 38 88 30 38
> Webdesign, Webhotel, Mailhotel, UUCP & more! http://www.netcetera.dk/



--
--------------------------------------------
Mark Wilcox
mewilcox@unt.edu
Web Administrator
University of North Texas
(940)565-2568
http://www.unt.edu/




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

Date: Mon, 06 Oct 1997 12:42:47 -0700
From: karin <nuekar@edith.antenna.nl>
Subject: child labour
Message-Id: <34393F37.1257@edith.antenna.nl>

child labour



>From           karin <nuekar@edith.antenna.nl>
Organization   NLnet
Date           Mon, 29 Sep 1997 15:47:16 -0700
Newsgroups     soc.rights.human
Message-ID     <34302FF4.6B4A@edith.antenna.nl>



First of all we would like to thank you for taking the time to read our
news.
We are three students from The Netherlands and we have to write a paper
about child-labour.
We will confront you with ten statements and we would be for ever
greatefull if you would take the time to respond.

Statement 1.
Child labour is a good thing. It makes the children tough and they
wouldn't be a great burden to their parents. If children don't work,
they come out of school and the only thing they do is bother their
parents in stead of doing something usefull. 

Statement 2.
There are a lot of countries in this world who have an economical
interest in countries where child labour is accepted. Countries where
child labour is accepted should be shot out of the world economie.
Not only economical area's but shot out completely until they change.

Statement 3.
In India schools should be free for everybody but most of the schools
require money and uniforms which the parents can't afford.
Children then have to work to pay for their education.
If in every country education would be free, children wouldn't have to
work.

Statement 4.
The way India has divided his population in four different groups
stimulates child labour.
It's tough to climb up the ladder and at the bottum child labour is seen
as normal and fully accepted.

Statement 5.
Some shops in The Netherlands only sell carpets if it has a no
child-labour-label. All toys, clothing and carpets which are produced
without children should have such a label. 

Statement 6.
All children who worked at a young age are not developt as they should
be.All infants have a need to play and if they don't get that
oppertunity
their developtment will fall behind.

Statement 7.
Child labour is good for the economie of a county. Low payement for the
same labour.

Statement 8.
You will only see child labour in third-world-countries.
In other countries it's not happening because it just won't be allowed.

Statement 9.
Child labour is a wrong investement in human possebilities.
When children are young it may look good but its better to give them a
good education because then they will be of better use.

Statement 10.
In every country where you will find child labour it has its roots in
the counties culture. It doesn't just start at birth, the culture says
so.

We hope you will respond. We would love to hear from you!!

greetings,
Svenja, Chantal and Karin.

09-29-'97.


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

Date: Mon, 06 Oct 1997 10:41:11 -0400
From: fl_aggie@thepentagon.com (I R A Aggie)
Subject: Re: child labour
Message-Id: <-0610971041110001@aggie.coaps.fsu.edu>

In article <34393F37.1257@edith.antenna.nl>, karin
<nuekar@edith.antenna.nl> wrote:

+ We will confront you with ten statements and we would be for ever
+ greatefull if you would take the time to respond.

Are these children perl programmers? If not, you're asking in the wrong
newsgroup.

BTW, go over to a stats book and see if you can figure out why a 
self-selecting sample is a biased sample.

James

-- 
Consulting Minister for Consultants, DNRC
Support the anti-Spam amendment <url:http://www.cauce.org/>
To cure your perl CGI problems, please look at:
<url:http://www.perl.com/perl/faq/idiots-guide.html>


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

Date: Mon, 06 Oct 1997 13:54:19 GMT
From: zawodny@hou.moc.com (Jeremy D. Zawodny)
Subject: Re: click on cgi script to download file
Message-Id: <343becd7.411363299@igate.hst.moc.com>

[cc'd automagically to original author]

On Mon, 06 Oct 1997 08:51:27 GMT, dwaters@delphi.co.uk (David Waters)
wrote:

>I've seen on some web pages, where you click a script
>and it downloads an appropriate file.

You click a button, which causes your browser to request a URI from a
web server, the web server runs a "script", and your browser
interprets the result as a file to download.

>How is this done within the script to tell the browser
>to download a file.

The browser must decide to do with the file. It typically inspects the
MIME Type and/or file extension associated with the request. Your
script simply needs to return a MIM Type that the browser is likely to
interpret as "I need to download this file."

This is all well documented in virtually every CGI programming book
that I've seen.

>Preferably in perl please

Ah, here's the part of the message that deals with Perl. :-)

Use the CGI.pm module. There are examples in the documentation which
suit your purpose.

Jeremy
-- 
Jeremy Zawodny
Internet Technology Group
Information Technology Services
Marathon Oil Company, Findlay Ohio

http://www.marathon.com/

Unless explicitly stated, these are my opinions only--not those of my employer.


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

Date: Mon, 06 Oct 1997 14:57:13 +0200
From: Doug Seay <seay@absyss.fr>
To: John Moreno <phenix@interpath.com>
Subject: Re: Filehandle to file name?
Message-Id: <3438E029.6E22852F@absyss.fr>

[posted and mailed]

John Moreno wrote:
> 
> Recently I wanted to delete a file using the filehandle.  I found a work
> around so that I didn't need to do this, but is it possible?  Or is it
> possible to get the file name from the filehandle?

This is a Unix FAQ.  There is no way to map a file descriptor back to a
file name because the object may have already been deleted from the name
tree (or never had one in the case of pipes).  Since Perl's file handle
is based on top of the standard file descriptor, there isn't much Perl
can do about it.  Even if it stored the name (from the first argument of
the open?), there is no proof that no one deleted/renamed the file while
it was opened.  The data is still the same, but the "name" now refers to
a different inode.

The general rule here is to come up with a solution where you don't need
to know the filename.  It can be a pain in the rear.

I think the Unix FAQ has possible solutions (checking every file in the
file system for the right device/inode number), but they are _slow_ and
will not always work.

- doug


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

Date: Mon, 6 Oct 1997 09:53:11 -0400
From: phenix@interpath.com (John Moreno)
Subject: Re: Filehandle to file name?
Message-Id: <199710060953119620015@roxboro-186.interpath.net>

Tad McClellan <tadmc@flash.net> wrote:

] John Moreno (phenix@interpath.com) wrote:
] 
] [ snip ]
] 
] 
] : Or is it possible to get the file namefrom the 
] : filehandle?
]
] 
] What filename should it return for these?
] 
] 
]    STDIN       # keyboard
] 
]    open(PIPE, "foobar |");
] 
] 
] Filehandles might not correspond to any filename...

Well, I didn't want to get the names when it didn't exist.
Realistically, a null string or undefined.  But according to Tom Phoenix
it's not possible.  Oh well.  In email Tom had suggested saving the name
but, in the circumstances I was opening the file with a expression, i.e.
<*.c> (well actually it was <path*.articles>).

-- 
John Moreno


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

Date: Mon, 06 Oct 1997 14:47:21 GMT
From: bart.mediamind@tornado.be (Bart Lateur)
Subject: Re: Filehandle to file name?
Message-Id: <343bf99f.4574813@news.tornado.be>

phenix@interpath.com (John Moreno) wrote:

>Recently I wanted to delete a file using the filehandle.  I found a work
>around so that I didn't need to do this, but is it possible?  Or is it
>possible to get the file name from the filehandle?

I don't have the answer to your question, but anyway, I'd like to point
out that on most system you can't delete (or rename) a file that is
open. It won't work on my system anyway.

	Bart.


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

Date: Mon, 06 Oct 1997 14:49:16 +0200
From: Doug Seay <seay@absyss.fr>
To: jakob <jakob.vad.nielsen@manpower.no>
Subject: Re: How can I write an pixel to the browser?
Message-Id: <3438DE4C.2A865590@absyss.fr>

[posted and mailed]

jakob wrote:
> 
> How can I easy write an image to the browser. I only need writing a white
> pixel
> to the browser. ( 1x1 pixel ) The reason is that I am using the <img
> src=...> tag to
> run a counter script. I can't run SSI comands on the server.

I'd say that this is more of a CGI question than a Perl question.  If
you don't find your answer in the CGI.pm module, you should go to one of
the WWW newsgroups (perhaps comp.infosystems.www.authoring.cgi).

- doug


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

Date: Mon, 06 Oct 1997 14:42:53 +0200
From: Doug Seay <seay@absyss.fr>
Subject: Re: How to use string contents as string name
Message-Id: <3438DCCD.4E81E1B6@absyss.fr>

Daniel wrote:
> 
> Thanks in advance for any help.
> 
>         I'm trying to take name/value pairs from a file, and assign the $name
> from
> 
> ($name,$value) = split(/=/,$inline);
> 
> to make a new stringname from the contents of $name.
> 
> For instance if the value of $name is JOE I'd like to create a string
> called $JOE.

Mike Stok has already given you the answer, but I'd like to say that I
don't think that this is usually all that useful.  When getting in
imported data, I prefer keeping all of it in hash tables, something like

	($name,$value) = split(/=/,$inline);
	$table{$name} = $value;

because this prevents the code from corrupting something important
($name is "_", which changes $_) and it doesn't use soft references. 
But this may not be useful depending on what you are doing.

- doug


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

Date: 6 Oct 1997 11:57:48 GMT
From: fty@hickory.engr.utk.edu (Jay Flaherty)
Subject: Re: how to write HTML form data to a text file???
Message-Id: <61ajns$1fh$1@gaia.ns.utk.edu>

Scott Kahn (scott@netobjects.com) wrote:
: There are a billion Perl scripts on the Web that capture the contents of
: an HTML form and E-mail them to someone, but what I want to do is to
: take the form contents and append them to a text file sitting on my
: server (I'll later import the data into a database).

Why the two steps? Why not get the perl DBI module and the DBD module
for your particular database and write code to take the data from the
web form and insert it directly into your database.

Just curious...Jay

--
**********************************************************************  
Jay Flaherty                                               fty@utk.edu
"Once in awhile you get shown the light, in the strangest of places if
you look at it right" - R. Hunter
**********************************************************************



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

Date: 06 Oct 1997 10:40:33 +0200
From: Frederic Corne <frederic.corne@erli.fr>
Subject: how to write to two or more file with one command ? 
Message-Id: <uvhzb473y.fsf@erli.fr>


Hi,

I have a big script which send all its output to stdout. I known how to
redirect stdout to a file with
open(SAVEOUT, ">&STDOUT");
open(STDOUT, "> /foo/bar")|| die "Can't redirect stdout";

This works but I have to use 'tail -f ' to see what happens ...

Now I wish to print to stdout AND to a file without duplicate all the print
 commands of the script. I can use 'tee' but ... 

How can I do this ?

TYA

FC

-- 

--- Frederic Corne --- ERLI --- frederic.corne@erli.fr ---


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

Date: Mon, 06 Oct 1997 13:58:39 GMT
From: jerryb@jmeo.nl (Jerry Britton)
Subject: Loop variables changing?
Message-Id: <61aqq6$8r2$1@news2.xs4all.nl>

In the following fragment:

   foreach $line (@result) {
      if (/^Reply from/) {
        print "found Reply from in ", $line, "\n";
        last;
      }
    }

print $line;

 ..if I get the found message, the value of the variable $line printed 
after the loop is not the same as printed in the "found" message. In fact, it 
points to the next element of the array @result"

If I change the above to:

   foreach (@result) {
      if (/^Reply from/) {
        $line = $_;
        print "found Reply from in ", $line, "\n";
        last;
      }
    }

print $line;

 ..the second line printed shows the same value for $line as the first line 
printed.


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

Date: 6 Oct 1997 14:24:12 GMT
From: "Eric D. Friedman" <friedman@uci.edu>
Subject: Re: Loop variables changing?
Message-Id: <61asac$1s1@news.service.uci.edu>

In article <61aqq6$8r2$1@news2.xs4all.nl>,
Jerry Britton <jerryb@jmeo.nl> wrote:
<In the following fragment:
<
<   foreach $line (@result) {
<      if (/^Reply from/) {

This pattern match looks at $_, but you're assigning each element of
@result to $line, not $_.

Looks like you've used $line elsewhere in your code, or maybe you're
using global variables and you're not running with -w and use strict;
(Global variable abuse is the reason for your results in the second
snippet you posted)

<        print "found Reply from in ", $line, "\n";
<        last;
<      }
<    }
<
<print $line;
<

Try this:

my $match = undef;
foreach my $line (@result) # my limits scope of $line to the foreach block
{
  next unless $line =~ /^Reply from/;
  print "found Reply from in ", $line, "\n";
  $match = $line;
  last;
}
    
print $match if defined $match;

or use grep

my @matches = grep /^Reply from/ @result;
print join "\n", @matches;

<..if I get the found message, the value of the variable $line printed 
<after the loop is not the same as printed in the "found" message. In fact, it 
<points to the next element of the array @result"
<
<If I change the above to:
<
<   foreach (@result) {
<      if (/^Reply from/) {
<        $line = $_;
<        print "found Reply from in ", $line, "\n";
<        last;
<      }
<    }
<
<print $line;
<
<..the second line printed shows the same value for $line as the first line 
<printed.


-- 
Eric D. Friedman
friedman@uci.edu


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

Date: Mon, 06 Oct 1997 10:13:11 -0400
From: Tim Kimball <kimball@stsci.edu>
Subject: my() redeclaring? why?
Message-Id: <3438F1F7.FAF5B4D4@stsci.edu>

Hi folks,

This little script (5.00401): =


	#!/opt/gnu/bin/perl
	my $one =3D 1;
	my $foo[$one] =3D "uno";

produces this error message:

	"my" variable $one masks earlier declaration in same scope at yyy line
3.
	Can't declare array element in my at yyy line 3, near "] =3D"
	Execution of yyy aborted due to compilation errors.

Now I can understand the part about not being able to declare an array
element - that's a decaf error :) - but why the complaint about
redeclaring $one? What's my() doing? simply declaring every symbol it
sees on the LHS of the assignment?

(The complaint disappears when I change the script to:

	#!/opt/gnu/bin/perl
	my $foo[$one =3D 1] =3D "uno";

but I still get the "Can't declare array element" error.)
--
Tim Kimball =B7 Data Systems Division =A6 kimball@stsci.edu =B7 410-338-4=
417
Space Telescope Science Institute   =A6 http://www.stsci.edu/~kimball/
3700 San Martin Drive               =A6 http://archive.stsci.edu/
Baltimore MD 21218 USA              =A6 http://faxafloi.stsci.edu:4547/


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

Date: 6 Oct 1997 12:00:16 GMT
From: fty@hickory.engr.utk.edu (Jay Flaherty)
Subject: Re: Net::FTP doesn't seem to work...
Message-Id: <61ajsg$1fh$2@gaia.ns.utk.edu>

M.J.T. Guy (mjtg@cus.cam.ac.uk) wrote:
: Jay Flaherty <fty_no_spam@utk.edu> wrote:
: >2. put some error trapping routines in. ie:
: >
: >$ftp{$host}->login("LoginName","LoginPassword") 
: >or die "Unable to log into $ftp{$host}: !$\n";
:                                          ^^
: I presume you mean $!.   Otherwise good advice.
: 
: >$ftp{$host}->get($fullfile, "./$file") 
: >
: >or die "Unable to get file $fullfile: !$\n"
:                                        ^^
: And here.

Your right. Would the above produce a dyslexic error message? :-)

Thanks for the correction...Jay

--
**********************************************************************  
Jay Flaherty                                               fty@utk.edu
"Once in awhile you get shown the light, in the strangest of places if
you look at it right" - R. Hunter
**********************************************************************



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

Date: Mon, 06 Oct 1997 10:36:21 GMT
From: jzawodn@wcnet.org (Jeremy D. Zawodny)
Subject: Re: New to Perl - How to get Windows version
Message-Id: <3438bed0.661854446@woody.wcnet.org>

[original author automagically cc'd via e-mail]

On Mon, 06 Oct 1997 06:31:19 GMT, dho@nospam.gulf.com (David Ho)
wrote:

>I am not sure about the other one (unofficial one ? ).  At least I know that
>the Activeware's perl is perfect for NT but  not for 95.

I wouldn't go *that* far. :-)

The Gurusamy Sarathy (sp?) port it more "perfect" for NT/95, if there
is such a thing. ActiveState's it a bit old and still has some bugs to
be worked out and/or features to be added. It is, after all, based on
the 5.003 core.

Jeremy
-- 
Jeremy D. Zawodny
WCNet Technical Geek & Web Stuff
<URL:http://www.wcnet.org/~jzawodn/>

"That's an example of how Perl can bring school yard cruelty to new heights."
    -- Jon Orwant at the 1st Annual Perl Conference


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

Date: Mon, 06 Oct 1997 10:37:14 -0400
From: fl_aggie@thepentagon.com (I R A Aggie)
Subject: Re: Newbie ques: How to concatenate two strings?
Message-Id: <-0610971037140001@aggie.coaps.fsu.edu>

In article <34386417.3258575@news-server>, jglosz@san.rr.com (Joseph) wrote:

+ The way I posted it, those inclined to help, could. Those who weren't,
+ could just ignore it. I don't see why there should be a big debate
+ about RTF'ing.

Because if you had taken 5 minutes to read the documentation -- you
*do* have documentation, don't you? -- you would have FOUND YOUR ANSWER
instead of having to rely on the generousity of others.

You would have done it yourself.
You would have avoided public ridicule.
You would have avoided annoying people who would be able to answer your
 more advanced questions that _may_not_ be in the documentation.

Re-read that last entry, again. And again. And again. Are you begining
to realize just how much this may cost you?

This reminds me of the Dogbert's Technical Service:

Dogbert: Take all your manuals, and pile them on your chair. Now stand
         on top of them. Now ask "Does anyone know how to read a manual?"

James

-- 
Consulting Minister for Consultants, DNRC
Support the anti-Spam amendment <url:http://www.cauce.org/>
To cure your perl CGI problems, please look at:
<url:http://www.perl.com/perl/faq/idiots-guide.html>


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

Date: 6 Oct 1997 12:48:19 GMT
From: "Miran Sepic" <miran.sepic4@mss.tel.hr>
Subject: Perl & C++ Routines
Message-Id: <01bcd256$22939910$7a02a8c0@pc_miran>

I have a routine in C++ which encodes and decodes the input. 
Is it possible to use it in a CGI/Perl script?

Thanks, Miran


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

Date: 6 Oct 1997 05:36:26 GMT
From: millerd@vhoorl.rli-net.net (Gabriel Millerd)
Subject: Re: perl c-link indenter
Message-Id: <619tcq$ifg$1@vhoorl.rli-net.net>

: If you mean something like indent, no I don't, but there is something
: which is similar to cb (c beautifier), surprisingly called pb (perl
: beautifier). It is fairly primitive, so you might need to adapt the
: code to reflect your preferences.

: http://www.arachnoid.com/lutusp/ftp/cgi/pb.txt

	Thanks, quite primitive as you say... i will keep looking.

---
Gabriel Millerd        |    The 'A' is for content, the 'minus' is for not
RLI Internet Services  |   typing it.  Don't ever do this to my eyes again.
System Admin Attribu   |  - Professor Ronald Brady, Philosophy, Ramapo State
http://www.rli-net.net |                        College

PGP Finger Print
DSS: 1024 0xE760079B = B6D4 DB5B 4990 C79F 00E7  BF4A 1E15 B47A E760 079B
D/H: 4096 0xD53C231B = BC6F C82E FD5C BE0A AF33  607C 8406 4A79 D53C 231B


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

Date: Mon, 6 Oct 1997 09:02:11 -0500
From: "Jeff Oien" <jeff@webdesigns1.com>
Subject: Re: perl: getting started
Message-Id: <61aqs0$fhh@newsops.execpc.com>

I have a site called Perl Primer which may help.
http://www.webdesigns1.com/perl/
--
Jeff Oien, WebDesigns
http://www.webdesigns1.com/
jeff@webdesigns1.com
Samurai929 wrote in message
<19971004203500.QAA08709@ladder02.news.aol.com>...
>what is a good book to get started w/ perl? are there any resources online?
>
>Please cc: your response, if possible, so that I don't miss it.
>Thanks a lot for your help.
>
>samurai929@aol.com




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

Date: 6 Oct 1997 06:53:52 -0700
From: portinfo@best.com (Gene Gotimer)
Subject: Re: sfio on Solaris Intel 2.5.1
Message-Id: <61aqhg$el7$1@shell5.ba.best.com>

In article <618fv8$hvk$1@heinz.home.de>,
Stefan Reich <1reich@informatik.uni-hamburg.de.fuck-spam> wrote:
>So, make cc an alias for gcc and it should work.

That took care of it.

Thanks.



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

Date: Mon, 06 Oct 1997 14:35:42 +0200
From: Doug Seay <seay@absyss.fr>
To: dk smith <dks@mediaweb.com>
Subject: Re: Wanted: Wall/Schwartz book (1st ed)
Message-Id: <3438DB1E.5382AEB2@absyss.fr>

[posted and mailed]

dk smith wrote:
> 
> In article <3433579C.1D9024AB@absyss.fr>, Doug Seay <seay@absyss.fr> wrote:
> > Good luck.  Ain't no way I'm gettin' rid of mine.  It's a classic.
> 
> Amcurious. Why is this sentiment held by so many? Is there some good
> content in the 1st edition that did not appear in the 2nd?

Yeah, the cook book chapter of one and two page examples.

But for me, the reason I like pefer the first camel is the tone.  To me,
the humor of the second was forced and falls flat at points.  Kind of a
dumb way to classify technical material, but the first gave me more of a
warm-and-fuzzy feeling than the second.  I have found no faults with the
technical content (other that what has been posted as "known errors"),
and for all the advanced stuff (references, objects, modules, etc) it is
great.  But I stick to the classic for file test flags, REs (I haven't
used non-greedy or any of the other new toys), parameters to standard
functions, etc.  Perhaps I'm just old fashioned and set in my ways.

IMHO another thing that really hurts the second camel is that all the
info is in the online docs, and they are more up-to-date than the book. 
You need to read the camel to learn the advanced concepts, because I'd
go crazy trying to read all the docs on line in one sitting.  Paper and
ink are easier to read.   But to be reminded of the details, the man
pages (perldoc if you prefer) are more convenient.  And since I have the
habbit of grep'ping in the pod directory for keywords, I can often find
what I'm looking for quicker than I can open the Camel, flip to the
index, and then flip to the right pages.  This isn't a problem, but it
means that I use the second edition less often than I used the first, so
it doesn't feel as familiar.

- doug

PS - I never recomend the classic Camel because of the huge advancements
of Perl5 over Perl4.  The state-of-the-art has changed too much since
1990.  It is just another product of a bygone era that separates the
"old farts" from the "young punks".


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

Date: Mon, 06 Oct 1997 14:43:50 GMT
From: bart.mediamind@tornado.be (Bart Lateur)
Subject: Re: Wanted: Wall/Schwartz book (1st ed)
Message-Id: <343af8f0.4399876@news.tornado.be>

Doug Seay <seay@absyss.fr> wrote:

>But for me, the reason I like pefer the first camel is the tone.  To me,
>the humor of the second was forced and falls flat at points.  Kind of a
>dumb way to classify technical material, but the first gave me more of a
>warm-and-fuzzy feeling than the second.

Judging from their postings in this newsgroup, my guess is that in the
first book, it was Randal setting the tone, and in the second, Tom C.
Tom IS an expert on Perl, maybe even more than Randal, but I find Randal
far more fun to read.

Now, let's all join hands, and try to keep Randal out of prison for
doing something that can hardly be considered to be a crime, shall we?

	Bart.


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

Date: 8 Mar 97 21:33:47 GMT (Last modified)
From: Perl-Request@ruby.oce.orst.edu (Perl-Users-Digest Admin) 
Subject: Digest Administrivia (Last modified: 8 Mar 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.

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 1132
**************************************

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