[17141] in Perl-Users-Digest

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

Perl-Users Digest, Issue: 4553 Volume: 9

daemon@ATHENA.MIT.EDU (Perl-Users Digest)
Sun Oct 8 14:05:27 2000

Date: Sun, 8 Oct 2000 11:05:10 -0700 (PDT)
From: Perl-Users Digest <Perl-Users-Request@ruby.OCE.ORST.EDU>
To: Perl-Users@ruby.OCE.ORST.EDU (Perl-Users Digest)
Message-Id: <971028310-v9-i4553@ruby.oce.orst.edu>
Content-Type: text

Perl-Users Digest           Sun, 8 Oct 2000     Volume: 9 Number: 4553

Today's topics:
        $$Perl Programmer wanted for internet based company$$ <me@menet.com>
    Re: [UPDATE] mod_perl and ActiveState perl (v5.6.0 618) <randy@theory.uwinnipeg.ca>
    Re: about ssh <treetops@worldonline.co.za>
    Re: Active Perl: Question regarding PerlApp (Bob Nolte)
    Re: arrays in formats <palincss@his.com>
    Re: Best definition of Perl so far in 19100 <nospam@david-steuber.com>
    Re: CGI.pm and Tables question <Kurt@wagner.com>
    Re: Checking for existence of file <g.soper@soundhouse.co.uk>
    Re: Checking for existence of file (Garry Williams)
    Re: Checking for existence of file <flavell@mail.cern.ch>
    Re: Comparing Perl and Java <jschauma@netmeister.org>
    Re: Comparing Perl and Java (Randal L. Schwartz)
    Re: Comparing Perl and Java <jschauma@netmeister.org>
    Re: Comparing Perl and Java <nospam@david-steuber.com>
    Re: database accessing <palincss@his.com>
    Re: Date formating (Clay Irving)
        Downloadable reference manual? <soneill@hotmail.com>
        emacs written in perl? <mikeegg@prodigy.net>
    Re: emacs written in perl? <mikeegg@prodigy.net>
    Re: emacs written in perl? <nospam@david-steuber.com>
    Re: How can I set and read a variable like the session- <julien@stokkink.com>
    Re: How do I show html source as plain text in IE brows <ymeydotcom@hotmail.com>
    Re: need blanks at end of format line <palincss@his.com>
        Perl Books! <ymeydotcom@hotmail.com>
    Re: PP, 3rd ed.??? <nospam@david-steuber.com>
    Re: PP, 3rd ed.??? <godzilla@stomp.stomp.tokyo>
    Re: Removing of nested C-like comments. <bmb@ginger.libs.uga.edu>
    Re: Reverse by paragraphs - NOT! <bart.lateur@skynet.be>
    Re: Reverse by paragraphs - NOT! <flavell@mail.cern.ch>
        running onothe program from perl <me@here.com>
    Re: Strange behaviour with @{...} <palincss@his.com>
        Thanks, I see the harry@drej.com
    Re: using PGP on a linux server via perl (Alan Barclay)
        Digest Administrivia (Last modified: 16 Sep 99) (Perl-Users-Digest Admin)

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

Date: Sun, 8 Oct 2000 11:44:40 -0400
From: "M.E." <me@menet.com>
Subject: $$Perl Programmer wanted for internet based company$$
Message-Id: <IL0E5.202$G3.6464@newsreader.i-2000.net>

I am looking for someone who lives in Long Island, New York who has
knowledge of Perl and MYsql DB for internet based company. Knowledge of
html, java not required but a definite Plus!

David Kaskel
webmaster@partnersforyou.com




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

Date: Sun, 8 Oct 2000 12:28:56 -0500
From: "Randy Kobes" <randy@theory.uwinnipeg.ca>
Subject: Re: [UPDATE] mod_perl and ActiveState perl (v5.6.0 618)
Message-Id: <8rqb4v$641$1@canopus.cc.umanitoba.ca>

"Jerry Baker" <jbaker6953@yahoo.com> wrote in message
news:39DF8D9E.B26EEC07@weirdness.com...
> Randy Kobes wrote:
> >
> > Would it be possible for you to try mod_perl out with
> > apache-1.3.13-dev?
[ ... ]
>
> That's what I was testing it with.
>

Were you using the binary mod_perl.ppd package? This
was compiled against apache_1.3.12. To test if this version
difference contributes to the problem, you might try compiling
mod_perl against the apache_1.3.13-dev sources, if that's
possible - to do this, you need the current cvs mod_perl,
which is available from
http://perl.apache.org/from-cvs/modperl/
This version should pass all the mod_perl tests.

best regards,
randy kobes





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

Date: Sun, 8 Oct 2000 19:06:55 +0200
From: "Warren Brown" <treetops@worldonline.co.za>
Subject: Re: about ssh
Message-Id: <8rq9d5$79m$1@ctb-nnrp2.saix.net>

Put an xterm -e in front.
ie`xterm -e ssh www.xxxx.com df -k`;


"charlie" <initiald@netvigator.com> wrote in message
news:39DF454A.2BB75E45@netvigator.com...
> Hello All , I am new to perl and have a question.
> I type the command " ssh www.xxxx.com df -k " on my Solaris 7 machine
> and the
> result display on screen. So I write this code in perl
>
> #!/usr/local/bin/perl -w
> `ssh www.xxxx.com df -k`;
>
> then chmod u+x filename.But
> there are not result display on my screen and also no error message.
> I have no idea, pls help.
> Many Thank....
>
>




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

Date: Sun, 08 Oct 2000 15:28:13 GMT
From: bob.nolte@pc4u.com (Bob Nolte)
Subject: Re: Active Perl: Question regarding PerlApp
Message-Id: <ho0E5.11432$he1.654873@typhoon.mn.mediaone.net>

Additional Info:
I did finally find the man pages for perlapp. Interestingly, I first tried to 
create a freestanding exe directly to the a: drive. 
This didn't work -- perlapp -v -s test.pl -e a:test.exe -f  -- Error was:
   'Failed to extract and load Perl Runtime Dependencies'
Making the same file in c:\Perl\bin worked 
     perlapp -v -s test.pl -e test.exe -f
     I then copied test.exe to the diskette. Worked fine.

Looks like a small glitch.

Bob Nolte




In article <T6UD5.11422$he1.625648@typhoon.mn.mediaone.net>, bob.nolte@pc4u.com 
says...
>
>I'm a perl wannabe. I have just downloaded and install the most recent version 
>of active perl from activestate. I'm running on Win98, NT and Win2000 boxen.
>
>Question:
>When a perl script is processed with perlapp, what files are needed in 
addition 
>to the executable produced by perlapp?
>
>The reason I'm asking is that I get an error "Unable to load perlapp.dll" on a 
>computer that has no perl on it. I am working on a test diskette.  I 
>put perlapp.dll on the diskette and the same error occurs. If I put all of the 
>dlls from the perl\bin directory onto the diskette everything runs.
>
>I would think that perlapp would produce a standalone exe. Am I wrong?
>
>TIA
>Bob Nolte
>



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

Date: Sun, 08 Oct 2000 11:24:01 -0400
From: Steve Palincsar <palincss@his.com>
Subject: Re: arrays in formats
Message-Id: <39E09191.FE3652E3@his.com>

Daniel Zepeda wrote:
> 
> Hi,
>         I'm trying to print out an array in a format. I expected this to
> work but it only gave me the first line in the array. I've pored over the
> documentation but can't find what I need to help.
> 
> #!/usr/bin/perl -w
> 
> format MYFORMAT=
> <html>
>   <title>This is HTML</title>
>   <body bgcolor="white">
> 
>   @*
>   @input
> 
>   </body>
> </html>
> .

This sounds as though you want to use "format" as a template mechanism
to generate HTML.  If this is correct, you may do lots better taking a
look at a genuine template module, such as Mark Jason Dominus's
Text::Template.  "format" was created to do ascii tabular layouts, and
trying to coerce it into becoming a template mechanism isn't likely to
be fruitful.


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

Date: Sun, 08 Oct 2000 17:03:42 GMT
From: David Steuber <nospam@david-steuber.com>
Subject: Re: Best definition of Perl so far in 19100
Message-Id: <m3u2angt8x.fsf@solo.david-steuber.com>

Elaine Ashton <elaine@chaos.wustl.edu> writes:

' But, people taking all of this far too seriously may
' reduce life-expectancy by a few years due to the stress.

Can I sue for that?  A few years of my life must be worth a buck or
two.

-- 
David Steuber | Perl apprentice, Apache/mod_perl user,
NRA Member    | and general Internet web wannabe.
ICQ# 91465842
***         http://www.david-steuber.com/          ***


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

Date: Sun, 08 Oct 2000 17:01:21 GMT
From: Kurt Wagner <Kurt@wagner.com>
Subject: Re: CGI.pm and Tables question
Message-Id: <po91us8t3rljdhet0nqsjvp1mgon42gt6v@4ax.com>

Thanks for the tidbit, but is there a way to change the cell color
background that are on the same row, the tidbit does a column of a
single cell, say you have like a three by three table?

Thanks ;-)

On Fri, 06 Oct 2000 20:46:29 -0700, Jeff Zucker <jeff@vpservices.com>
wrote:

>Kurt Wagner wrote:
>> 
>> Is there a way to format the contents of only a few cells in a row of
>> a table?  I would like to change the background of a cell, but have
>> the other cells in the same row unaffected.
>> 
>> For example I use:
>> 
>> td({-bgcolor=>red},['cell1text', 'cell2text'])
>> 
>> but that changes the background color for the whole row.  Is there any
>> way to change it for only certain cells?
>
>    table( 
>        Tr( {-bgcolor=>'blue'},
>        [
>           th({-bgcolor=>'red'},'red'),
>           th({-bgcolor=>'white'},'white'),
>           th('blue')
>        ])
>    )



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

Date: Sun, 08 Oct 2000 16:50:33 +0100
From: Geoff Soper <g.soper@soundhouse.co.uk>
Subject: Re: Checking for existence of file
Message-Id: <4a0a54b4bfg.soper@soundhouse.co.uk>

In article <8rptu1$llo$1@news6.svr.pol.co.uk>,
   Makhno <mak@imakhno.freeserve.co.uk> wrote:
> $file="/my/file/whatever";
> if (-e $file)
> {
>     its there
> }
> else
> {
>     its not
> }

What is the '-e' and what does it do?

Thanks a lot

-- 
Geoff Soper
g.soper@soundhouse.co.uk
Take a look at the Soundhouse page http://www.soundhouse.co.uk/


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

Date: Sun, 08 Oct 2000 16:26:43 GMT
From: garry@ifr.zvolve.net (Garry Williams)
Subject: Re: Checking for existence of file
Message-Id: <7f1E5.294$lw3.32114@eagle.america.net>

On Sun, 08 Oct 2000 16:50:33 +0100, Geoff Soper
    <g.soper@soundhouse.co.uk> wrote:
>In article <8rptu1$llo$1@news6.svr.pol.co.uk>,
>   Makhno <mak@imakhno.freeserve.co.uk> wrote:
>> $file="/my/file/whatever";
>> if (-e $file)
>> {
>>     its there
>> }
>> else
>> {
>>     its not
>> }
>
>What is the '-e' and what does it do?

Try perldoc -f -X.  

But another poster already pointed out the race condition that this 
approach has.  Use sysopen() with O_WRONLY|O_EXCL|O_CREAT to avoid
destroying existing data.

See perldoc perlopentut:
     
     To open a file for writing, creating a new file which must
     not previously exist:
         
         sysopen(FH, $path, O_WRONLY | O_EXCL | O_CREAT);

-- 
Garry Williams


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

Date: Sun, 8 Oct 2000 18:39:50 +0200
From: "Alan J. Flavell" <flavell@mail.cern.ch>
Subject: Re: Checking for existence of file
Message-Id: <Pine.GHP.4.21.0010081839360.10958-100000@hpplus03.cern.ch>

On Sun, 8 Oct 2000, Geoff Soper wrote:

> What is the '-e' and what does it do?

What is documentation?




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

Date: Sun, 08 Oct 2000 11:27:28 +0400
From: "Jan Schaumann" <jschauma@netmeister.org>
Subject: Re: Comparing Perl and Java
Message-Id: <Hm0E5.34857$sB2.658546@news-east.usenetserver.com>

"shad sluiter" <shadsluiter@my-deja.com> wrote:

<snip>

> Does anyone here use Perl AND Java and can list some strengths of each? 

Java and Perl are two *completely* different things. The fact that they
both are used quite often on the web does not mean they can/should be
used interchangeably for their tasks.

Java is an Object-Oriented Full-Featured Programming Language, while Perl
is a Practical Extraction and Report Language.

A comparison between the two does, IMHO, not make much sense.

Cheers,
-Jan

-- 
Jan Schaumann <http://www.netmeister.org>

Between infinite and short there is a big difference.
		-- G.H. Gonnet


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

Date: 08 Oct 2000 09:04:35 -0700
From: merlyn@stonehenge.com (Randal L. Schwartz)
Subject: Re: Comparing Perl and Java
Message-Id: <m13di75nfw.fsf@halfdome.holdit.com>

>>>>> "Jan" == Jan Schaumann <jschauma@netmeister.org> writes:

Jan> Java is an Object-Oriented Full-Featured Programming Language,

More like a pseudo-object-oriented-just-enough-to-get-your-boss-to-say-ok
embedded language being used for things far beyond its original design
goal, performing more poorly as the distance gets further from the goal,

Jan>  while Perl
Jan> is a Practical Extraction and Report Language.

and again,
pseudo-object-oriented-just-enough-to-get-your-boss-to-say-ok
*scripting* language being used for things far beyond its original
design goal, performing somewhat more poorly as the distance gets
further from the goal, but more mature and with a *much* better
organized repository of shared code (the CPAN), and nearly always
requiring fewer keystrokes to accomplish the same task.

:-)

Jan> A comparison between the two does, IMHO, not make much sense.

Never does.  But they're fun. :)

-- 
Randal L. Schwartz - Stonehenge Consulting Services, Inc. - +1 503 777 0095
<merlyn@stonehenge.com> <URL:http://www.stonehenge.com/merlyn/>
Perl/Unix/security consulting, Technical writing, Comedy, etc. etc.
See PerlTraining.Stonehenge.com for onsite and open-enrollment Perl training!


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

Date: Sun, 08 Oct 2000 12:22:20 +0400
From: "Jan Schaumann" <jschauma@netmeister.org>
Subject: Re: Comparing Perl and Java
Message-Id: <8a1E5.35637$sB2.675965@news-east.usenetserver.com>

"Randal L. Schwartz" <merlyn@stonehenge.com> wrote:

>>>>>> "Jan" == Jan Schaumann <jschauma@netmeister.org> writes:
> 
> Jan> Java is an Object-Oriented Full-Featured Programming Language,
> 
> More like a
> pseudo-object-oriented-just-enough-to-get-your-boss-to-say-ok embedded
> language being used for things far beyond its original design goal,
> performing more poorly as the distance gets further from the goal,
> 
> Jan>  while Perl Jan> is a Practical Extraction and Report Language.
> 
> and again, pseudo-object-oriented-just-enough-to-get-your-boss-to-say-ok
> *scripting* language being used for things far beyond its original
> design goal, performing somewhat more poorly as the distance gets
> further from the goal, but more mature and with a *much* better
> organized repository of shared code (the CPAN), and nearly always
> requiring fewer keystrokes to accomplish the same task.
> 

Ack.


> :-)
> 
> Jan> A comparison between the two does, IMHO, not make much sense.
> 
> Never does.  But they're fun. :)
> 

so what do you think is better - a screwdriver or a hammer?
;-P

Cheers,
-Jan

-- 
Jan Schaumann <http://www.netmeister.org>

Tout choses sont dites deja, mais comme personne n'ecoute, il faut
toujours recommencer.                -- A. Gide


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

Date: Sun, 08 Oct 2000 17:38:46 GMT
From: David Steuber <nospam@david-steuber.com>
Subject: Re: Comparing Perl and Java
Message-Id: <m3itr3grmi.fsf@solo.david-steuber.com>

Brad Baxter <bmb@ginger.libs.uga.edu> writes:

' I like to say that it takes an act of congress to do anything in Java.  I
' have that bias because of how easy it is to do almost anything (at least
' anything I've needed to do so far), in Perl.

Not since the courts got involved ;-).

Java is least painful in a server side environment where you know what
the code will be running on and can work around the particular bugs
for that particular setup.  However, I really doubt Java's ability to
do anything that Perl can do just as well.  Isn't the server side
stuff likely to be middleware between a webserver and an SQL server?
Perl's DBI works pretty well as far as I can tell with my admittedly
limited experience.

If web browser programmers ever decide to implement Java to the same
standard, assuming that is even possible, then I can see Java applets
doing some client side processing in a web application.  $DEITY help
you if your application requires client side processing.  You might
have a chance on an intranet where the browser can be dictated, but
not on the Internet where people like me insist on using Linux.

The same applies to DHTML.  Why can't anyone agree on a single
standard?  Probably because Micro$oft wants to retain a desktop
monopoly in the face of superior technology avaialable on other
platforms.  Even on Windows, Netscape and IE use different DOMs.

For now, it is pure Perl for me.  I've got CPAN (so long as I know
what to look for).  I've got this group.  I've got mounds of docs.
And Perl is just as RAD as any 4GL out there.

Shields to maximum.

-- 
David Steuber | Perl apprentice, Apache/mod_perl user,
NRA Member    | and general Internet web wannabe.
ICQ# 91465842
***         http://www.david-steuber.com/          ***


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

Date: Sun, 08 Oct 2000 11:29:52 -0400
From: Steve Palincsar <palincss@his.com>
Subject: Re: database accessing
Message-Id: <39E092F0.4691E742@his.com>

Larry Rosler wrote:
> 
> In article <39D501D8.64B7@courrier.usherb.ca> on Fri, 29 Sep 2000
> 16:55:53 -0400, jtjohnston <jtjohnston@courrier.usherb.ca> says...
> 
> ...
> 
> > I have a database file that looks like:
> >
> >         --- Snip -----
> >         John:5:
> >         Gail:3:
> >         Dave:3:
> >         --- Snip -----

> Just hope your system doesn't crash during the subsequent write, or bye-
> bye, data!  The proper way to update a file is described in perlfaq5.
> In a high-volume environment, you would also need to worry about file
> locking to prevent simultaneous-access disasters.

Of course, a "database" like this has no place in a high-volume
environment in the first place, does it?  I would think this would be
much better implemented either as a DBM file or as a table in an RDBMS.


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

Date: 8 Oct 2000 15:28:32 GMT
From: clay@panix.com (Clay Irving)
Subject: Re: Date formating
Message-Id: <slrn8u14l0.ksm.clay@panix3.panix.com>

On Sun, 8 Oct 2000 14:36:01 +0100, Mark Roberts 
<mark@marknjude.freeserve.co.uk> wrote:

>I'm trying to write a function that will do the following
>
>Given a string in the form yymmdd e.g. 001008 it should produce output of
>the form 8th October 2000
>
>I'm sure its fairly easy, I just don't know how to extract the relevant
>pieces of the string.

Date::Manip is the mother-of-all-tools for working with dates. This is one
way to reformat the date string:

  #!/usr/local/bin/perl
  
  use Date::Manip;
  
  Date_Init("DateFormat=nonUS");
  
  $date1 = "001008";
  ($formatted_date1 = $date1) =~ s/(\d)(\d)/$1$2-/;
  
  $date2 = UnixDate(ParseDate($formatted_date1), "%E of %B %Y");
  
  print "$date1 becomes $date2\n"

Result:

  001008 becomes 8th of October 2000

-- 
Clay Irving <clay@panix.com>
LAWYER, n. One skilled in circumvention of the law. 
- Ambrose Bierce 


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

Date: Sun, 8 Oct 2000 16:21:59 +0100
From: "Siobhan" <soneill@hotmail.com>
Subject: Downloadable reference manual?
Message-Id: <ih0E5.20986$uq5.430134@news6-win.server.ntlworld.com>

Hi,

I have the some of the FAQ documents for Perl, but is the a complete
reference manual that I can download?

Thanks

Siobhan




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

Date: Sun, 08 Oct 2000 11:43:19 -0500
From: Mike Eggleston <mikeegg@prodigy.net>
Subject: emacs written in perl?
Message-Id: <39E0A427.D03FD911@prodigy.net>


Has anyone thought of writting an emacs clone using perl as the
interpreter rather than lisp?

Mike



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

Date: Sun, 08 Oct 2000 11:56:03 -0500
From: Mike Eggleston <mikeegg@prodigy.net>
Subject: Re: emacs written in perl?
Message-Id: <39E0A723.277CD88D@prodigy.net>


I suppose what I'd really prefer is a vi written in perl so that I could
access the underlying interpreter.

Mike Eggleston wrote:

> Has anyone thought of writting an emacs clone using perl as the
> interpreter rather than lisp?
>
> Mike



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

Date: Sun, 08 Oct 2000 17:51:11 GMT
From: David Steuber <nospam@david-steuber.com>
Subject: Re: emacs written in perl?
Message-Id: <m3em1rgr1s.fsf@solo.david-steuber.com>

Mike Eggleston <mikeegg@prodigy.net> writes:

' Has anyone thought of writting an emacs clone using perl as the
' interpreter rather than lisp?

I have.  That's as far as I got with the idea though.  Specifically, I
figured Perl/Tk as the language with the Term package or similar for
the -nw option.

The job would be huge.  And it wouldn't generate any revenue.

The job is on my mind, but it is pretty near the bottom of my list of
things to do.  I don't see it moving up any time soon.

-- 
David Steuber | Perl apprentice, Apache/mod_perl user,
NRA Member    | and general Internet web wannabe.
ICQ# 91465842
***         http://www.david-steuber.com/          ***


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

Date: Sun, 08 Oct 2000 15:54:00 GMT
From: "Julien Stokkink" <julien@stokkink.com>
Subject: Re: How can I set and read a variable like the session-variable in ASP ?
Message-Id: <sM0E5.702193$Kw2.6343600@flipper>

I'm familiar with the use of Query-strings and hidden-form lines in Perl and
HTML, but I want to put a password into a variable and using one of those
options is not the right way, I think.

In Active Server Pages (VB Script) you can use a session-variable. This
variable isn't visible to the user. I want to know if there's something like
that in Perl.

Julien





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

Date: Sun, 08 Oct 2000 13:21:51 -0400
From: YMEY <ymeydotcom@hotmail.com>
Subject: Re: How do I show html source as plain text in IE browser?
Message-Id: <39E0AD2F.3592A2F4@hotmail.com>

Edmond Nolan wrote:
> 
> Hi Richard,
> 
> I don't have an answer, just thought I grumble along with you! I've seen
> this kinda behaviour before with MSIE 5, even opening a text file (.txt)
> locally which contains HTML code is read as a HTML file :(
> 
> Richard DeVenezia wrote:
> 
> > I am trying to write a simple 'push' perl program to deliver example parts
> > of my web as plain text.
> >
> > The problem is when I try to deliver an html file, it gets interpreted as
> > html and is rendered by the IE browser.
> > Netscape 4.7 simply shows the text, IE is too smart for it's britches.  Is
> > there some way to make IE honor the content-type ?
> >
> > snippet
> >
> > # invoked as <server>/cgi-bin/push?file=<some file name>&type=txt
> > # & type=txt is to hopefully fool some browsers to really deal with the
> > content as text
> >
> > use CGI;
> > my $q = new CGI;
> > my $file = $q->param('file');
> >
> > if ( <... file exists and file is allowed to be pushed ...>) {
> >     print $q->header('text/plain');
> >     print "###### $file #######\n";
> >
> >     system ("cat $file");
> > }
> >
> > --
> > Richard DeVenezia

Try sending a plaintext tag, and then cat $file :)

##

print "Content-type: text/html\n\n";
print <<OEM;
<HTML>
<HEAD><TITLE>$file</TITLE></HEAD>
<BODY> 
<PLAINTEXT>\n	#This turns everything after it into plain text :)
OEM

	system("cat $file");

print "</PLAINTEXT></HTML>\n";


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

Date: Sun, 08 Oct 2000 11:26:15 -0400
From: Steve Palincsar <palincss@his.com>
Subject: Re: need blanks at end of format line
Message-Id: <39E09217.3F5F501F@his.com>

onkeerbaar@hotmail.com wrote:
> 
> I'm outputting a file with all lines having 94chars
> thus this line below needs blank padding on the end to fill the 94 chars
> 
> format LINE1 =
> 101 @<<<<<<<< 271987635@<<<<<@<<<A094101@<<<<<<<<<<<<<<<<<<<<<<IRRY
> SERVICE CORP
> $ROUTING_CODE, $runDate, $runTime, $CU_NAME
> .
> 
> so far I have been unable to get the spaces on the end via format.
> 
> The other lines are nice enough to have text in pos 94, and those work
> fine.
> 
> any ideas!?
> 

sprintf, either with, or instead of, format?


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

Date: Sun, 08 Oct 2000 13:43:30 -0400
From: YMEY <ymeydotcom@hotmail.com>
Subject: Perl Books!
Message-Id: <39E0B242.31F59824@hotmail.com>

Perl 5 by Example -- http://docs.rinet.ru/Perl5_examples/

Perl Quick Reference -- http://docs.rinet.ru/PerlSBlohami/

Teach yourself Perl 5 in 21 days -- http://docs.rinet.ru/P7/

Using Perl for web programing --
http://docs.rinet.ru/Using_Perl5_in_Web/

Teach Yourself CGI Programming with PERL 5 in a Week, 2E --
http://docs.rinet.ru/CP7/


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

Date: Sun, 08 Oct 2000 17:16:07 GMT
From: David Steuber <nospam@david-steuber.com>
Subject: Re: PP, 3rd ed.???
Message-Id: <m3pulbgsrx.fsf@solo.david-steuber.com>

Elaine Ashton <elaine@chaos.wustl.edu> writes:

' in article 39DE9B10.2EDB600F@stomp.stomp.tokyo, Godzilla! at
' godzilla@stomp.stomp.tokyo quoth:
'  
' > I show no mercy for those who deliberately steal a
' > bit of my life to satiate their malice intent.
' 
' Oh! The Irony! LOL.

Isn't 'malice' a noun?  Oh, but I forget.  We in the computer business
turn nouns into verbs or adjectives all day long.  That's what we do.

No malice intended, 'Godzilla'. ;-)

-- 
David Steuber | Perl apprentice, Apache/mod_perl user,
NRA Member    | and general Internet web wannabe.
ICQ# 91465842
***         http://www.david-steuber.com/          ***


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

Date: Sun, 08 Oct 2000 10:46:25 -0700
From: "Godzilla!" <godzilla@stomp.stomp.tokyo>
Subject: Re: PP, 3rd ed.???
Message-Id: <39E0B2F1.B2DD92D5@stomp.stomp.tokyo>

David Steuber wrote:
 
> Elaine Ashton <elaine@chaos.wustl.edu> writes:

>  Godzilla! wrote:

> ' > I show no mercy for those who deliberately steal a
> ' > bit of my life to satiate their malice intent.

> ' Oh! The Irony! LOL.
 
> Isn't 'malice' a noun?  Oh, but I forget.  We in the computer business
> turn nouns into verbs or adjectives all day long.  That's what we do.

 
> No malice intended, 'Godzilla'. ;-)

Right. You are a lying pile of mule manure.



Malice is usually considered a noun. Intent is an adjective,
intently is an adverb and, if such a word, intenting would
be a gerund. Intent is also a noun as is intentness.

Would you have me say "intent malice" ?

A notion which makes our use of English language
absolutely enjoyable is its flexibility in usage.
However, there are those so lacking in reading 
comprehension skills, so lacking in writing ability
and, so lacking in intelligence, flexibility in 
language is a skill well beyond their abilities.
This lack of literacy is well exemplified by
almost all using this newsgroup.

Stereotypical functional illiterates. How annoying
to open an article only to read such ignorance and
envy motivated hatred being displayed by so many
and, consistently by you, Frank.


Godzilla!
-- 
Dr. Kiralynne Schilitubi ¦ Cooling Fan Specialist
UofD: University of Duh! ¦ ENIAC Hard Wiring Pro
BumScrew, South of Egypt ¦ HTML Programming Class


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

Date: Sun, 8 Oct 2000 11:07:08 -0400
From: Brad Baxter <bmb@ginger.libs.uga.edu>
Subject: Re: Removing of nested C-like comments.
Message-Id: <Pine.A41.4.21.0010081106280.16452-100000@ginger.libs.uga.edu>

On Sun, 8 Oct 2000, Adam wrote:

> Hi everybody.
> I actually solved the problem from the subject of
> this meaasge, and the solution I came up with (example 
> code below) works fine with files of size less than 20kB.
> A weak point of this solution I realize of, is
> reading the whole file into $src. 
> Thus I wonder if there is an elegant and efficient solution
> applying reading the file line by line, or
> even a parser module appropriate for such a problem.
> 
> Any advice is welcome.
> Adam.

perldoc -q comments

Brad



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

Date: Sun, 08 Oct 2000 15:12:59 GMT
From: Bart Lateur <bart.lateur@skynet.be>
Subject: Re: Reverse by paragraphs - NOT!
Message-Id: <2k31uss1o2srr6j3rp02e63j4h5vflm8m7@4ax.com>

ollie_spencer@my-deja.com wrote:

>FWIW:Less than 2 years ago I was severely criticised for posting
>non-jeopardy fashion(i.e., my new message "at bottom") in company
>e-mails! The execs like their meat upfront, I guess.

People want non-jeopardy style posts because it eases communication.
OTOH, communication with execs is impossible, anyway.  ;-)

It's not just "the meat". People here like to read conversation-like
posts, i.e. cut the post in parts, and put your reply directly
underneath what you're replying to.

-- 
	Bart.


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

Date: Sun, 8 Oct 2000 18:38:10 +0200
From: "Alan J. Flavell" <flavell@mail.cern.ch>
Subject: Re: Reverse by paragraphs - NOT!
Message-Id: <Pine.GHP.4.21.0010081815241.10958-100000@hpplus03.cern.ch>

On Sat, 7 Oct 2000 ollie_spencer@my-deja.com wrote:

[...]
> > --
> > Randal L. Schwartz - Stonehenge Consulting Services, Inc. - +1 503 777
> 0095
> > <merlyn@stonehenge.com> <URL:http://www.stonehenge.com/merlyn/>
> > Perl/Unix/security consulting, Technical writing, Comedy, etc. etc.
> > See PerlTraining.Stonehenge.com for onsite and open-enrollment Perl
> training!

You're still not quite usenet-ready, because you're still quoting
sigs.

If your usenet software doesn't automatically delete sigs, you're
expected to do it yourself.  The only exception would be if something
in the sig was relevant to the topic of discussion.

There's a rather nicely worded selection of advice, much of which is
applicable to any major usenet group, in the introductory FAQ to
alt.usage.english: http://www.alt-usage-english.org/intro_a.html

I particularly liked the positive spin of this advice, which seems to
be applicable to "modern" (i.e potentially disruptive) pointy-clicky
wannabe-newsreaders:

 Some popular newsreaders, such as Outlook Express, automatically put
 the cursor above the quoted material; you can take advantage of this
 by scrolling down through the prior posting, deleting anything
 superfluous, until you reach the point where you want to start your
 reply.

> FWIW:Less than 2 years ago I was severely criticised for posting
> non-jeopardy fashion(i.e., my new message "at bottom") in company
> e-mails! The execs like their meat upfront, I guess.

And this is exactly why usenet is different.

They are presumably attempting a dialog with you: they already know
the question to which you are responding, because it was they who
asked it.  And there will only be one copy (or at most a small
number of copies) of your reply stored.

On usenet, all except one of the audience is an onlooker, and wants to
be reminded of the salient point(s) of what went before, so that they
can quickly and effectively understand what you're getting at, without
having to go back and re-read the thread.  And doing that puts
everyone in a position to understand just which features of the
previous discussion _you_ considered to be relevant, in case this was
not clear, which it often isn't.

Furthermore, many thousands of copies of this posting are going to be
made all around the globe.  There is no need for, and no benefit in,
accreting the entire history of usenet in every posting.  People are
for ever complaining of how rapidly usenet postings expire at their
provider's server: it's all that clutter of unwanted quotage that's a
major contributor to that. 

have fun 



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

Date: Sun, 8 Oct 2000 16:20:40 +0100
From: "me.here" <me@here.com>
Subject: running onothe program from perl
Message-Id: <9l0E5.20990$uq5.430527@news6-win.server.ntlworld.com>

Hi
I am moving a script from Activestate perl on NT
to the same on windows 95.
this command works fine on NT but not in the windows 98 machine

my $ImageInfo = qx/c:\\image\\identify $homedir\\$image1/;

it seams to run the program fine but I don't get the results in the variable
as I used to.
Any Ideas what I've missed?

Phil


---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.191 / Virus Database: 91 - Release Date: 11/09/00




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

Date: Sun, 08 Oct 2000 11:11:24 -0400
From: Steve Palincsar <palincss@his.com>
Subject: Re: Strange behaviour with @{...}
Message-Id: <39E08E9C.B867196A@his.com>

Volker Moell wrote:
> 
> Hi, all!
> 
> I found a strange behaviour concerning the @{...} operator.
> (Don't ask about the sense of this small programm. :)
> 
> Call the following program:
> 
>     -------------------------(snipp)------------------------
>     #!/usr/bin/perl -w
>     use strict;
> 
>     my $a = undef;
>     print $a;
>     foreach (@{$a}) { }
>     print $a;
>     -------------------------(snapp)------------------------

Actually, I think somebody _should_ ask just what it was you thought you
were trying to accomplish here.  What did you believe @{...} would do?  

And why did you believe doing it with an undefined value would give you
anything useful or sensible?


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

Date: Sun, 08 Oct 2000 15:56:33 GMT
From: harry@drej.com
Subject: Thanks, I see the
Message-Id: <8rq5fg$65a$1@nnrp1.deja.com>

Brad, you wrote:

> Looks like a misprint to me.
>
> Brad
>
>

Thanks Brad,

I see that my lousy IBM 4029 omitted a verticle bar, I was
looking at the printout. Looking at the file instead I see it should be:

$|++;

I was able to look up $|, see it determines autoflush.

Sorry to waste the bandwidth!


Sent via Deja.com http://www.deja.com/
Before you buy.


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

Date: 8 Oct 2000 16:00:47 GMT
From: gorilla@elaine.furryape.com (Alan Barclay)
Subject: Re: using PGP on a linux server via perl
Message-Id: <971020824.134747@elaine.furryape.com>

In article <7s1C5.429$_B5.5215@NewsReader>, Jim Wright <jim@inatos.com> wrote:
>Hi there,
>    I have a problem to overcome that is really starting to get painful.  At
>its most basic level all I want to do is sign a piece of text by using
>'pgps', from a perl script.  The problem may be specific to PGP but I
>suspect a unix/linux guru without pgp experience will spot the solution.
>
>Before I jump in with the script, heres the pgps command line (modified of
>course not to give away my PGP pass phrase!)
>
>pgps -u me@mydomain.net -taf  -z mypassphrase preSign.txt
>

It's not directly related to your problem, but using that method is
going to give away your pass phrase to anyone who happens to be on
the same system as you, because they can use 'ps' to find what the
options you entered are.

I recommend you use the PGP::Sign module, which not only avoids
the above security problem, it already works.


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

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

| NOTE: The mail to news gateway, and thus the ability to submit articles
| through this service to the newsgroup, has been removed. I do not have
| time to individually vet each article to make sure that someone isn't
| abusing the service, and I no longer have any desire to waste my time
| dealing with the campus admins when some fool complains to them about an
| article that has come through the gateway instead of complaining
| to the source.

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

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

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


------------------------------
End of Perl-Users Digest V9 Issue 4553
**************************************


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