[11950] in Perl-Users-Digest
Perl-Users Digest, Issue: 5550 Volume: 8
daemon@ATHENA.MIT.EDU (Perl-Users Digest)
Mon May 3 12:07:11 1999
Date: Mon, 3 May 99 09: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 Mon, 3 May 1999 Volume: 8 Number: 5550
Today's topics:
Re: A Question About Visual Perl (Bart Lateur)
Re: A Question About Visual Perl (Bart Lateur)
Accessing Gupta 6.1.2 with Win32::ODBC Perl Module <edddirk@edd.ericsson.se>
ANNOUNCE: CGI::Debug 0.03 alpha <jonasl@xms.se>
ANNOUNCE: Data::Compare 0.01 (Fabien Tassin)
ANNOUNCE: Data::Locations 5.0 <sb@sdm.de>
ANNOUNCE: DbFramework-1.09 paul@miraclefish.com
ANNOUNCE: HTML::FromText 1.003 <garethr@cre.canon.co.uk>
ANNOUNCE: NetPacket 0.01 <Tim.Potter@anu.edu.au>
ANNOUNCE: Proc-Daemon-0.02 (Earl Hood)
Announce: v1.174 t2html.pl Text to html converter in C <ssjaaa@vuokko.uta.fi>
Re: finding the right doc WAS Re: using perl to manage (Andrew Allen)
Re: Finding x^y? <wef@wwa.comx>
Re: Finding x^y? <uri@sysarch.com>
Re: Finding x^y? (Bart Lateur)
Re: Finding x^y? <dgris@moiraine.dimensional.com>
Re: Finding x^y? (Matthew Bafford)
Re: Finding x^y? (Larry Rosler)
Re: Finding x^y? (Steve Linberg)
Garbage Collection Problem <norman.bunn@mci.com>
Help with Reading/descending directories... abrinson@my-dejanews.com
Re: Help with Reading/descending directories... <dgris@moiraine.dimensional.com>
Re: Perl in the workplace abrinson@my-dejanews.com
Perl-XML FAQ 1.1 <eisen@pobox.com>
sending email <terral@cyberplex.com>
Re: Throw a person a fish... <cassell@mail.cor.epa.gov>
Thumbnails from JPEGs <martin@guest-books.com>
Re: unos problemitas (Greg Bacon)
Re: Who is Just another Perl hacker? (Greg Bacon)
Special: Digest Administrivia (Last modified: 12 Dec 98 (Perl-Users-Digest Admin)
----------------------------------------------------------------------
Date: Mon, 03 May 1999 14:55:16 GMT
From: bart.lateur@skynet.be (Bart Lateur)
Subject: Re: A Question About Visual Perl
Message-Id: <3730b897.23687394@news.skynet.be>
Tom Christiansen wrote:
>In comp.lang.perl.misc, bart.lateur@skynet.be (Bart Lateur) writes:
>:Perl is a "text only" oriented language to me.
>
>Please don't tell the authors and users of Gtk.pm module about that.
Hey, authors of Gtk.pm: I don't use it! :-)
Didn't you notice the phrase "to me" at the end of my line?
Bart.
------------------------------
Date: Mon, 03 May 1999 15:00:05 GMT
From: bart.lateur@skynet.be (Bart Lateur)
Subject: Re: A Question About Visual Perl
Message-Id: <3731b8fb.23787028@news.skynet.be>
Daniel Grisinger wrote:
>> Perl is a "text only" oriented language to me.
>
>Yes, but text doesn't mean 7-bit ascii anymore. With Unicode and i18n
>a stream of `textual' is essentially identical to a stream of `binary'
>data. Perl is changing right along with the definitions of `text',
>fortunately.
I use French accented characters in Perl scripts all the time (Belgian
companies need to produce multilingual output all the time). And I have
written TIFF file processing scripts in Perl too. But that's not what I
ment. I ment "File In, File Out". Controlled by scripts, parameters and
command line switches. Which are all text. Contrast this with Photoshop,
which is controlled with NO text.
Bart.
------------------------------
Date: Mon, 03 May 1999 17:29:54 +0200
From: Dirk Puetz <edddirk@edd.ericsson.se>
Subject: Accessing Gupta 6.1.2 with Win32::ODBC Perl Module
Message-Id: <372DC0F2.B9C0E2C5@edd.ericsson.se>
Hi Everybody,
I'am having problems in connecting to Centura ( Gupta ) 6.1.2 with Perl through Win32::ODBC Module.
The Problem is that the ODBC driver DSN mask don't allows to save a password for the standart user.
So every time I try to connect I get a wrong password message!
May bee some body can give me a Hint for an other ODBC driver or a better Module for accessing Centura SqlBase.
Tia
Dirk
Senior Administrator
Ericsson Germany EDD/K/NSN
------------------------------
Date: 3 May 1999 15:25:26 GMT
From: Jonas Liljegren <jonasl@xms.se>
Subject: ANNOUNCE: CGI::Debug 0.03 alpha
Message-Id: <7gkf56$fes$1@play.inetarena.com>
CGI::Debug v0.03 alpha - module for debugging CGI programs.
NOT on CPAN. Get it here:
http://paranormal.o.se/perl/dist/CGI-Debug-0_03.tar.gz
Would you find this module useful? Please mail me.
It's goal is to catch ALL errors and display them, along with useful
data like form data, cookies, etc. You should never see the "Internal
Server Error" message.
The module will not change the behaviour of your cgi program. As long
as your program works, you will not notice the modules presence. The
only ting you will have to do is "use CGI::Debug". Then your program
works, you can just remove the line.
It's highly configurable. Choose what functions to use.
Report
o warnings
o runtime errors
o compilation errors
o faulty HTTP headers
o Form data
o Cookies
o Enviroment
o Elapsed time in subseconds
Report
o to Browser
o to error log
o to file
o as mail to owner and/or others
Report
o if warnings occured
o if program died
o always
Configure with cookies, or enviroment variables, or on the use
line. This makes it possible
EXAMPLES
Only report errors:
use CGI::Debug( report => 'errors' );
Do not bother about warnings:
use CGI::Debug( on => 'fatals' );
Allways show complete debugging info:
use CGI::Debug( report => 'everything', on => 'anything' );
Send debug data as mail to file owner:
use CGI::Debug( to => 'mail' );
REQUIRES
o CGI
o perl 5.004
TODO
o Clean up and generalize configuration
o Test it on non *nix platforms
o Make it work with mod_perl
o Implement HTML_compliance controls (using HTML::validate)
o Implement function for debugging in a separate window
o Enable custom responses for visitors on program failure
AUTHOR
Jonas Liljegren <jonas@paranormal.o.se>
--
Jonas Liljegren mailto:jonasl@paranormal.o.se
------------------------------
Date: 3 May 1999 15:25:47 GMT
From: fta@oleane.net (Fabien Tassin)
Subject: ANNOUNCE: Data::Compare 0.01
Message-Id: <7gkf5r$fet$1@play.inetarena.com>
I've just uploaded a new Perl module, Data::Compare, to PAUSE. It
should be showing up on CPAN shortly, or you can download it directly from
ftp://ftp.oleane.net/private/fta/perl/cpan/
Short introduction extracted from the readme :
NAME
Data::Compare - compare perl data structures
SYNOPSIS
use Data::Compare;
my $h = { 'foo' => [ 'bar', 'baz' ], 'FOO' => [ 'one', 'two' ] };
my @a1 = ('one', 'two');
my @a2 = ('bar', 'baz');
my %v = ( 'FOO', \@a1, 'foo', \@a2 );
# simple procedural interface
print 'structures of $h and \%v are ',
Compare($h, \%v) ? "" : "not ", "identical.\n";
# OO usage
my $c = new Data::Compare($h, \%v);
print 'structures of $h and \%v are ',
$c->Cmp ? "" : "not ", "identical.\n";
# or
my $d = new Data::Compare;
print 'structures of $h and \%v are ',
$d->Cmp($h, \%v) ? "" : "not ", "identical.\n";
DESCRIPTION
Compare two perl data structures recursively. Returns 0 if
the structures differ, else returns 1.
--
Fabien Tassin -+- fta@oleane.net
------------------------------
Date: 3 May 1999 15:24:05 GMT
From: Steffen Beyer <sb@sdm.de>
Subject: ANNOUNCE: Data::Locations 5.0
Message-Id: <7gkf2l$fej$1@play.inetarena.com>
I am glad to announce version 5.0 of my module "Data::Locations":
=========================================
Package "Data::Locations" Version 5.0
=========================================
This package is available for download either from my web site at
http://www.engelschall.com/u/sb/download/
or from any CPAN (= "Comprehensive Perl Archive Network") mirror server:
http://www.perl.com/CPAN/authors/id/STBEY/
Prerequisites:
--------------
Perl version 5.004 (subversion 0) or higher.
What's new in version 5.0:
--------------------------
+ All global or "class" methods (except "Data::Locations->new()",
of course) are gone. This allows several modules to use this
module simultaneously without interfering with each other.
+ All locations are local ("my" or "lexically scoped") variables
now in the sense that they are automatically destroyed (and
automatically dumped, if desired) whenever your last reference
of a location goes out of scope. It's the Perl way now :-).
+ All locations are dumped automatically now at shutdown time of
this module (and also when the last reference of a location goes
out of scope) if and only if a filename has been provided previously.
+ The method "toplevel()" cannot be used to artificially set or reset
the "toplevel" status of a location anymore. A location is a "toplevel"
location (by definition) whenever it is not embedded in any other
location. The method "toplevel()" now only allows to test this
condition.
+ The code in general, the regression test suite and the documentation
have been overhauled a great deal.
What does it do:
----------------
Data::Locations - magic insertion points in your data
Did you already encounter the problem that you had to produce some
data in a particular order, but that some piece of the data was still
unavailable at the point in the sequence where it belonged and where
it should have been produced?
Did you also have to resort to cumbersome and tedious measures such
as storing the first and the last part of your data separately, then
producing the missing middle part, and finally putting it all together?
In this simple case, involving only one deferred insertion, you might
still put up with this solution.
But if there is more than one deferred insertion, requiring the handling
of many fragments of data, you will probably get annoyed and frustrated.
You might even have to struggle with limitations of the file system of
your operating system, or handling so many files might considerably slow
down your application due to excessive file input/output.
And if you don't know exactly beforehand how many deferred insertions
there will be (if this depends dynamically on the data being processed),
and/or if the pieces of data you need to insert need additional (nested)
insertions themselves, things will get really tricky, messy and troublesome.
In such a case you might wonder if there wasn't an elegant solution to
this problem.
This is where the "Data::Locations" module comes in: It handles such
insertion points automatically for you, no matter how many and how deeply
nested, purely in memory, requiring no (inherently slower) file input/output
operations.
(The underlying operating system will automatically take care if the amount
of data becomes too large to be handled fully in memory, though, by swapping
out unneeded parts.)
Moreover, it also allows you to insert the same fragment of data into
SEVERAL different places.
This increases space efficiency because the same data is stored in
memory only once, but used multiple times.
Potential infinite recursion loops are detected automatically and
refused.
In order to better understand the underlying concept, think of
"Data::Locations" as virtual files with almost random access:
You can write data to them, you can say "reserve some space here
which I will fill in later", and continue writing data.
And you can of course also read from these virtual files, at any time,
in order to see the data that a given virtual file currently contains.
When you are finished filling in all the different parts of your virtual
file, you can write out its contents in flattened form to a physical, real
file this time, or process it otherwise (purely in memory, if you wish).
You can also think of "Data::Locations" as bubbles and bubbles inside
of other bubbles. You can inflate these bubbles in any arbitrary order
you like through a straw (i.e., the bubble's object reference).
Note that this module handles your data completely transparently, which
means that you can use it equally well for text AND binary data.
You might also be interested in knowing that this module and its concept
have already been heavily used in the automatic code generation of large
software projects.
Legal issues:
-------------
This package with all its parts is
Copyright (c) 1997, 1998, 1999 by Steffen Beyer.
All rights reserved.
This package is free software; you can redistribute it and/or
modify it under the same terms as Perl itself, i.e., under the
terms of the "Artistic License" or the "GNU General Public License".
Please refer to the files "Artistic.txt" and "GNU_GPL.txt" in
this distribution for details!
Author's note:
--------------
I would be very pleased over *ANY* kind of feedback, questions,
suggestions, donations ;-) and so on, since unfortunately none of
you lazy bums ;-) (for exceptions to this see the "CREDITS.txt"
file in this distribution!) hardly ever writes me.
This feedback is essential for me in order to know wether this
module is useful, to estimate how many people use it and for
what (essential to assess the potential impact an incompatible
change may have, for instance), where its problems and weak-
nesses lie, what should be improved, what additional features
would be useful, etc.
Even e-mail with an empty body and just a subject line such as
"I'm using Data::Locations" would help!
Thank you very much in advance!
In any case, I hope you will find this module beneficial,
share and enjoy!
Yours sincerely,
--
Steffen Beyer <sb@engelschall.com>
http://www.engelschall.com/u/sb/whoami/
http://www.engelschall.com/u/sb/download/
http://www.perl.com/CPAN/authors/id/STBEY/
http://www.oreilly.de/catalog/perlmodger/bnp/
------------------------------
Date: 3 May 1999 15:23:21 GMT
From: paul@miraclefish.com
Subject: ANNOUNCE: DbFramework-1.09
Message-Id: <7gkf19$fec$1@play.inetarena.com>
Recently submitted
file: $CPAN/authors/id/P/PS/PSHARPE/DbFramework-1.09.tar.gz
size: 36431 bytes
md5: a1d820ff6fa04a2b6b1cc214ced92030
DbFramework is a collection of classes for manipulating DBI databases.
The classes are loosely based on the CDIF Data Model Subject Area.
This module will help you to
- Present data model objects (tables, columns) as HTML
- Add persistency to your Perl objects
- Manipulate DBI databases through an HTML forms interface
Release highlights:
30-04-1999 Paul Sharpe <paul@miraclefish.com>
--------------------------------------------------------------------
RELEASE 1.09
dbforms.cgi
- Can now update primary keys.
- Removed dependency on ePerl.
- Now takes dsn arguments to cater for variance between DBDs.
Paul
--
paul@miraclefish.com
-----------== Posted via Deja News, The Discussion Network ==----------
http://www.dejanews.com/ Search, Read, Discuss, or Start Your Own
------------------------------
Date: 3 May 1999 15:24:22 GMT
From: Gareth Rees <garethr@cre.canon.co.uk>
Subject: ANNOUNCE: HTML::FromText 1.003
Message-Id: <7gkf36$fek$1@play.inetarena.com>
NAME
HTML::FromText - mark up text as HTML
SYNOPSIS
use HTML::FromText;
print text2html($text, urls => 1, paras => 1, headings => 1);
DESCRIPTION
The text2html function marks up plain text as HTML. By
default it converts HTML metacharacters into the
corresponding entities. More sophisticated transformations,
such as splitting the text into paragraphs or marking up
bulleted lists, can be carried out by setting the
appropriate options.
The following transformations are available:
* Turn HTML metacharacters into HTML entities.
* Spot URLs and convert them to links.
* Spot e-mail addresses and convert them to `mailto:' links.
* Preserve line breaks.
* Expand tabs and preserve spaces throughout the text.
* Mark up words surrounded with *asterisks* as bold.
* Mark up words surrounded with _underscores_ as underlined.
* Format the text as paragraphs.
* Spot paragraphs where every line begins with whitespace, and
mark them up as block quotes.
* Spot bulleted paragraphs and mark them up as an unordered
list.
* Spot numbered paragraphs and marks them up as an ordered list.
* Spot headings (paragraphs starting with numbers) and mark them
up as headings of the appropriate level.
* Format the first paragraph of the text as a first-level
heading.
INSTALLATION
perl Makefile.PL && make && make test && make install
HISTORY
1.001 Original CPAN release.
1.002 Much improved recognition of e-mail addresses with special
characters, as specified by RFC822.
When 'urls' is supplied, the prefix mailto: on email
addresses is preserved.
New option 'pre' wraps text in <PRE>...</PRE>.
When anchor text is in fixed-width font, the <A> element is
inside the <TT> element, as required by the HTML DTD.
1.003 Recognize '&' in email addresses, as specified by RFC822.
BUGS
There are lots of transformations it doesn't do.
AUTHOR
Gareth Rees <garethr@cre.canon.co.uk>.
AVAILABLE FROM
http://www.cpan.org/authors/id/G/GD/GDR/HTML-FromText-1.003.tar.gz
COPYRIGHT
Copyright (c) 1999 Canon Research Centre Europe. All rights
reserved. This module is free software; you can
redistribute it and/or modify it under the same terms as
Perl itself.
--
Gareth Rees
------------------------------
Date: 3 May 1999 15:24:57 GMT
From: Tim Potter <Tim.Potter@anu.edu.au>
Subject: ANNOUNCE: NetPacket 0.01
Message-Id: <7gkf49$fel$1@play.inetarena.com>
The NetPacket::* group of modules defines a framework for decoding and
encoding network packets in Perl. Unlike other products on the
market, NetPacket requires no XS code and is written in 100% Perl.
Obviously, a method for generating packet data, such as the Net::Pcap
module, is needed.
The following protocols have been implemented:
- Ethernet (802.3 and 802.2)
- ARP
- ICMP
- IGMP
- IP
- UDP
- TCP
It's pretty easy to add new protocols. Just copy one of the existing
modules and figure out an unpack string which will unpack the
information in the packet and store the data into fields in the
namespace of the NetPacket::whatever object. More information can be
found in the NetPacket(3) manpage, which is the base class module.
In this initial version, protocol encoding is not implemented. Sorry!
Tim.
--
Tim Potter, System Admin/Programmer, Head Bee Guy
Advanced Computational Systems CRC, RSISE Bldg Australian National University,
Canberra 0200, AUSTRALIA Ph: +61 2 62798813 Fax: +61 2 62798602
------------------------------
Date: 3 May 1999 15:26:02 GMT
From: ehood@geneva.acs.uci.edu (Earl Hood)
Subject: ANNOUNCE: Proc-Daemon-0.02
Message-Id: <7gkf6a$ff5$1@play.inetarena.com>
Keywords: Perl, Daemon
Proc-Daemon-0.02 is now available at CPAN. Proc-Daemon-0.02 is a Perl
module allowing Perl programs to run as Unix Daemon processes.
Proc-Daemon-0.02 is available at the following locations:
<URL:http://www.oac.uci.edu/indiv/ehood/earlsperls.html>
<URL:http://www.perl.com/CPAN/authors/id/EHOOD/>
Change log for Proc-Daemon-0.02:
0.02 Sat Apr 17 1999
- init() function superceded by Init() function.
- All open files are closed during daemonization.
- A double fork is now down to avoid the potential of acquiring
a controlling terminal.
- Added Fork() and OpenMax() functions.
--ewh
--
Earl Hood | University of California: Irvine
ehood@medusa.acs.uci.edu | Electronic Loiterer
http://www.oac.uci.edu/indiv/ehood/ | Dabbler of SGML/WWW/Perl/MIME
------------------------------
Date: 3 May 1999 15:25:56 GMT
From: Jari Aalto <ssjaaa@vuokko.uta.fi>
Subject: Announce: v1.174 t2html.pl Text to html converter in CPAN
Message-Id: <7gkf64$feu$1@play.inetarena.com>
Download
ANNOUNCE: v1.174 t2html.pl Text to html conversion script, Perl 5.004+
Home page:
ftp://cs.uta.fi/pub/ssjaaa/t2html.html
Available at CPAN:
http://www.perl.com/CPAN-local//scripts/
Description
Writing text documents is different from writing messages to Usenet
or to your fellow workers. There already exists several tools to
convert email messages into html, like MHonArc, Email hyper
archiver, but for regular text documents, like for memos, FAQs,
help pages and for other papers, I didn't find any suitable html
converter couple of years back.
I wanted a simple html tool which would read text documents I
maintained: several Emacs guides, procmail tips page, program
documentations, my home pages etc. and convert them into html. And
here you will find the specification how to format your text
documents for *t2html* perl script.
Program has html Link validation commands (uses LWP)
How it works
Text must be placed at certain column positions to enable proper
html formatting. The style used is called Technical format (TF).
You're looking at TF format right now. TF specification is included
in the t2html.pl --help.
You need nothing else but a text editor where the current column
number is displayed or editor that advances your TAB by 4 spaces.
That's it.
Comparision to existing txt2html.pl
The t2html.pl is different that text2html.pl in following respect:
[t2html]
o Requires that you really format your text into
TF layout like this message. This ensures that all your documents
look similar.
o was designed to meet requirements of formally written
text, such as official MEMOs, FAQs, drafs, lectures...
o Generates coloured html pages: --html-colour
o Generates Framed html pages: --html-frame
o Generates CSS2 style sheen into html code.
[text2html]
o txt2html.pl uses normal text file and requires no previous
markup.
Emacs and minor mode for helping to write TF
If word `Emacs' means anything to you, then you can use additional
Emacs minor mode (package TinyTf.el) that I wrote especially to
help writing documents, formatting paragraphs, auto filling bullets
and keeping TOC up to date. The description of the Emacs package is
added to the page. If you don't know about Emacs but got
interested, then see these for more Emacs info:
ftp://cs.uta.fi/pub/ssjaaa/elisp.html
ftp://cs.uta.fi/pub/ssjaaa/ema-tiny.html
ftp://cs.uta.fi/pub/ssjaaa/tiny-tools.tar.gz (contains tinytf.el)
End
------------------------------
Date: 3 May 1999 14:57:33 GMT
From: ada@fc.hp.com (Andrew Allen)
Subject: Re: finding the right doc WAS Re: using perl to manage passwords?
Message-Id: <7gkdgt$ijv$1@fcnews.fc.hp.com>
Dan Baker (dtbaker@bus-prod.com) wrote:
: Matthew Bafford wrote:
: >
: > On Sat, 01 May 1999 16:23:18 -0500, Dan Baker <dtbaker@bus-prod.com>
: > lucked upon a computer, and thus typed in the following:
: > : mmmm, well... running on windoze is a special sort of mitigating factor;
: > : like being raised in an abusive family. It is not a minor matter to grep
: > : the perdocs as far as I have been able to determine. If there is a good
: > : way to do so, I'd love to hear about it! The docs are all there on my
: > : installation, but I haven't found any really good way to find out where
: > : to start looking when in unfamiliar ground in the windows environment.
: >
: > With glob, readline, command line parsing, and a regular expression, it
: > would be quite easy to make a program to search it for you.
Ummm... did perlindex stop working when I wasn't looking? I use it
every day. Does it not run in the "windows environment"?
Andrew
------------------------------
Date: Mon, 03 May 1999 10:04:22 +0000
From: JWefler <wef@wwa.comx>
Subject: Re: Finding x^y?
Message-Id: <372D74A6.9E85DA46@wwa.comx>
Oh, my humblest apologies my most righteous sire...
I guess I should have made this more clear, since you are obviously
suffering from some kind of brain dysfunction or psychological
disorder... Take the "x" off of the end of my e-mail address and shove
it up your tightly wound arsehole!
Why is it whenever I post to this n/g I get some kind of smart arsed
reply like this one? If it doesn't come from the holy lord, god king,
Tom C, then some other "Christian" wanna-be?
I have better things to do than pack the words "Fuck You" into an octal
to use as my sig. Now, go finish your paste, Ralph...
Lookie here, a literate quaker answered my question.... Ah... time to
unsubscribe...
Daniel Grisinger wrote:
> JWefler <wef@wwa.comx> writes:
>
> <snip>
>
> I tried to mail you an answer, but you appear to have made
> on error entering your mail address in your newsreader.
>
> Oh, well, I guess you didn't really need to know all that badly.
>
> *plonk*
<snip>
------------------------------
Date: 03 May 1999 11:14:28 -0400
From: Uri Guttman <uri@sysarch.com>
Subject: Re: Finding x^y?
Message-Id: <x7zp3m2njf.fsf@home.sysarch.com>
>>>>> "J" == JWefler <wef@wwa.comx> writes:
J> Oh, my humblest apologies my most righteous sire...
J> I guess I should have made this more clear, since you are obviously
J> suffering from some kind of brain dysfunction or psychological
J> disorder... Take the "x" off of the end of my e-mail address and shove
J> it up your tightly wound arsehole!
or rather another poster who mungs his email address. so here for all
those spam generators is the real thing:
wef@wwa.com
send him your hordes of canned pink meat!
J> Why is it whenever I post to this n/g I get some kind of smart arsed
J> reply like this one? If it doesn't come from the holy lord, god king,
J> Tom C, then some other "Christian" wanna-be?
oh, you lowly serf (surfer?)! if you can't find exponentiation in the
index or man pages, you deserve to be crisped by the lord tom c.
J> I have better things to do than pack the words "Fuck You" into an octal
J> to use as my sig. Now, go finish your paste, Ralph...
J> Lookie here, a literate quaker answered my question.... Ah... time to
J> unsubscribe...
saves us the trouble of reading your posts. have fun finding solutions
to your perl problems. you have shown such skills we expect you to be
asking "want fries with that script?" any day now.
folks, he's just another victim of rectally inserted cranium disease.
uri
--
Uri Guttman ----------------- SYStems ARCHitecture and Software Engineering
uri@sysarch.com --------------------------- Perl, Internet, UNIX Consulting
Have Perl, Will Travel ----------------------------- http://www.sysarch.com
The Best Search Engine on the Net ------------- http://www.northernlight.com
------------------------------
Date: Mon, 03 May 1999 15:27:33 GMT
From: bart.lateur@skynet.be (Bart Lateur)
Subject: Re: Finding x^y?
Message-Id: <3732c012.25602574@news.skynet.be>
JWefler wrote:
>$answer = $y ^ $x;
>
>Help me with the syntax to perform a (x to the yth power)....
^ in Perl is XOR. What you want is ** .
perldoc perlop
and I quote:
Exponentiation
Binary "**" is the exponentiation operator. Note that it binds
even more tightly than unary minus, so -2**4 is -(2**4), not (-
2)**4. (This is implemented using C's pow(3) function, which
actually works on doubles internally.)
Bart.
------------------------------
Date: 03 May 1999 09:39:41 -0600
From: Daniel Grisinger <dgris@moiraine.dimensional.com>
Subject: Re: Finding x^y?
Message-Id: <m31zgycgci.fsf@moiraine.dimensional.com>
[damnit, i plonked you, why is this message showing up
anyway? (oh, it's Uri's fault, he went and posted to
this thread, thereby bumping its score back up into the
realm of the visible. bad uri, no ergonomic keyboard! :-)]
JWefler <wef@wwa.comx> writes:
> Oh, my humblest apologies my most righteous sire...
Hey, I kind of like that title. `dgris, the most righteous'
has a nice ring to it.
> I guess I should have made this more clear, since you are obviously
> suffering from some kind of brain dysfunction or psychological
> disorder...
Yup, that's me--Daniel the psychologically disordered.
> Take the "x" off of the end of my e-mail address and shove
> it up your tightly wound arsehole!
Damn, you're right, it's all wound up again. I guess that I probably
should stop spinning in my chair or something.
> Why is it whenever I post to this n/g I get some kind of smart arsed
> reply like this one?
Perhaps you've been posting questions that are easily answered
by a cursory inspection of the documentation. Or maybe you've
been posting with an invalid address. Or maybe you've demonstrated
a complete lack of respect for our culture.
Or, I suppose, it could just be that we're all a bunch of assholes.
> I have better things to do than pack the words "Fuck You" into an octal
> to use as my sig.
Hey, now I have somthing to write as a new sig.
> Lookie here, a literate quaker answered my question.... Ah... time to
> unsubscribe...
We'll miss you. Really, we will.
dgris
--
Daniel Grisinger dgris@moiraine.dimensional.com
perl -Mre=eval -e'$_=shift;;@[=split//;;$,=qq;\n;;;print
m;(.{$-}(?{$-++}));,q;;while$-<=@[;;' 'Just Another Perl Hacker'
------------------------------
Date: Mon, 03 May 1999 15:36:26 GMT
From: dragons@dragons.duesouth.net (Matthew Bafford)
Subject: Re: Finding x^y?
Message-Id: <slrn7irfka.10c.dragons@dragons.duesouth.net>
On Mon, 03 May 1999 10:04:22 +0000, JWefler <wef@wwa.comx>
lucked upon a computer, and thus typed in the following:
: Tom C, then some other "Christian" wanna-be?
That's "Christiansen".
HTH, HAND,
--Matthew
------------------------------
Date: Mon, 3 May 1999 08:43:31 -0700
From: lr@hpl.hp.com (Larry Rosler)
Subject: Re: Finding x^y?
Message-Id: <MPG.119763f3d13667209899a0@nntp.hpl.hp.com>
[Posted and a courtesy copy sent.]
In article <linberg-0305991049180001@ltl1.literacy.upenn.edu> on Mon, 03
May 1999 10:49:18 -0400, Steve Linberg <linberg@literacy.upenn.edu>
says...
> In article <372D7047.3951CD68@wwa.comx>, JWefler <wef@wwa.comx> wrote:
...
> > $answer = $y ^ $x;
> >
> > Help me with the syntax to perform a (x to the yth power)....
>
> $answer = $y ** $x;
$answer = $x ** $y;
--
(Just Another Larry) Rosler
Hewlett-Packard Company
http://www.hpl.hp.com/personal/Larry_Rosler/
lr@hpl.hp.com
------------------------------
Date: Mon, 03 May 1999 11:52:30 -0400
From: linberg@literacy.upenn.edu (Steve Linberg)
Subject: Re: Finding x^y?
Message-Id: <linberg-0305991152300001@ltl1.literacy.upenn.edu>
In article <MPG.119763f3d13667209899a0@nntp.hpl.hp.com>, lr@hpl.hp.com
(Larry Rosler) wrote:
> $answer = $x ** $y;
Heh. Oops. :)
--
Steve Linberg, Systems Programmer &c.
National Center on Adult Literacy, University of Pennsylvania
email: <linberg@literacy.upenn.edu>
WWW: <http://www.literacyonline.org>
------------------------------
Date: Mon, 03 May 1999 15:57:50 GMT
From: "Norman Bunn" <norman.bunn@mci.com>
Subject: Garbage Collection Problem
Message-Id: <2IjX2.160$Ca.50633@PM01NEWS>
I am submitting a form to a perl program which has been running fine until
recently. On rare occasions, it picks up data from a previously submitted
form. I'm not sure how it is doing this since each time a new process is
launched. This is running under Perl 5.004_2 under NT 4.0 SP4. Any ideas
on what could be causing this?
Norman
------------------------------
Date: Mon, 03 May 1999 15:41:44 GMT
From: abrinson@my-dejanews.com
Subject: Help with Reading/descending directories...
Message-Id: <7gkg3n$421$1@nnrp1.dejanews.com>
I am trying to perform a simple file check for directories.
The end goal is to create a mechanism for my program do descend directories
and search for .html files.
Here is the code sample. All it is currently returning is the . and .. files.
#!/usr/local/bin/perl
$dirname = "../htdocs/";
opendir THISDIR, "$dirname" or die "Serious Dainbramage: $!";
@htdirs = grep -d, readdir THISDIR;
closedir THISDIR;
print "@htdirs\n";
This is so VERY frustrating.... :-)
-Tony
-----------== Posted via Deja News, The Discussion Network ==----------
http://www.dejanews.com/ Search, Read, Discuss, or Start Your Own
------------------------------
Date: 03 May 1999 10:03:04 -0600
From: Daniel Grisinger <dgris@moiraine.dimensional.com>
Subject: Re: Help with Reading/descending directories...
Message-Id: <m3vheab0p3.fsf@moiraine.dimensional.com>
abrinson@my-dejanews.com writes:
> Here is the code sample. All it is currently returning is the . and
> .. files.
>
> #!/usr/local/bin/perl
You need to include `use strict;' here.
> opendir THISDIR, "$dirname" or die "Serious Dainbramage: $!";
> @htdirs = grep -d, readdir THISDIR;
You are testing in the process' cwd. Thus your -d test will
only succeed if you have directories in the current directory
that happen to have the same name as files or directories in
THISDIR.
In this case the only common names that are in both directories
and that are directories in the cwd are . and ... You need to
either chdir to the target directory or fully qualify your
path names.
HTH.
dgris
--
Daniel Grisinger dgris@moiraine.dimensional.com
perl -Mre=eval -e'$_=shift;;@[=split//;;$,=qq;\n;;;print
m;(.{$-}(?{$-++}));,q;;while$-<=@[;;' 'Just Another Perl Hacker'
------------------------------
Date: Mon, 03 May 1999 15:35:12 GMT
From: abrinson@my-dejanews.com
Subject: Re: Perl in the workplace
Message-Id: <7gkfng$3pr$1@nnrp1.dejanews.com>
In article <7gk54k$q9a$1@nnrp1.dejanews.com>,
sstarre@my-dejanews.com wrote:
<--SNIP-->
> Do others find this kind of resistance to Perl at work? If so, were you able
> to make a case to management to at least allow it as a "2nd language"? Have
> you had to "go underground" to get your job done?
>
> Cheers,
> S
>
> -----------== Posted via Deja News, The Discussion Network ==----------
> http://www.dejanews.com/ Search, Read, Discuss, or Start Your Own
>
I have worked for a few different institutions including education, Fortune
500, and a small company. At the Fortune 500 and education institutions,
Perl was the preferred way unless the CGI script was frequently hit (2000+
per day) then it was written in C.
At the small company, I had to justify use of both Perl and Linux. The recent
corporate buy-in of Linux has actually made the argument for Perl easier since
VB doesn't really apply to Unix of any flavor.
Perhaps you shold point out that it is easier to get support for Perl than ANY
Micro$oft product. And cheaper too! Not to mention Perl is open and Y2K
compliant and .....
-Tony
-----------== Posted via Deja News, The Discussion Network ==----------
http://www.dejanews.com/ Search, Read, Discuss, or Start Your Own
------------------------------
Date: 3 May 1999 15:23:07 GMT
From: Jonathan Eisenzopf <eisen@pobox.com>
Subject: Perl-XML FAQ 1.1
Message-Id: <7gkf0r$feb$1@play.inetarena.com>
Perl XML FAQ 1.1
This FAQ contains information related to using and manipulating
XML with Perl. It can be found on the Web at:
http://www.perlxml.com/faq/perl-xml-faq.html
Information in this FAQ is based on discussions and information
transmitted to the Perl XML email list. To join, send an email to
Lyris@ActiveState.com with the message: SUBSCRIBE Perl-XML.
Jonathan.
------------------------------
Date: Mon, 3 May 1999 12:50:35 -0300
From: "Terra Landry" <terral@cyberplex.com>
Subject: sending email
Message-Id: <7gkgqs$mva$1@bignews.fundy.net>
I want to send out an email to multiple recipients.. I have my emails.. but
I'm not sure how to send the email.. if you could reply ASAP I'd greatly
appreciat it!!
Thanks!
Terra
------------------------------
Date: Mon, 03 May 1999 08:55:56 -0700
From: David Cassell <cassell@mail.cor.epa.gov>
Subject: Re: Throw a person a fish...
Message-Id: <372DC70C.FBAC2A8C@mail.cor.epa.gov>
Tom Christiansen wrote:
>
> [courtesy cc of this posting sent to cited author via email]
>
> In comp.lang.perl.misc,
> David Cassell <cassell@mail.cor.epa.gov> writes:
> :since I've supposedly been nicer and more helpful than
> :some others here lately,
>
> Give it time. You'll turn on them yet. Just watch.
Yep, that's what I'm afraid of. :-)
Actually, after years of teaching math and stat, I'm accustomed to
answering questions like this. :-/
David
--
David Cassell, OAO cassell@mail.cor.epa.gov
Senior Computing Specialist phone: (541) 754-4468
mathematical statistician fax: (541) 754-4716
------------------------------
Date: Mon, 3 May 1999 16:24:15 +0100
From: "Martin" <martin@guest-books.com>
Subject: Thumbnails from JPEGs
Message-Id: <7gkf42$kmo$1@gxsn.com>
Hi All,
I'm looking for a Perl module/Script that will output a smaller
thumbnail
from a full sized JPEG. I've look at CPAN and in the graphics section
at www.perl.com but can't seem to find anything.
Martin
------------------------------
Date: 3 May 1999 15:19:19 GMT
From: gbacon@itsc.uah.edu (Greg Bacon)
Subject: Re: unos problemitas
Message-Id: <7gkepn$hc$6@info2.uah.edu>
In article <372cdf8c@cs.colorado.edu>,
Tom Christiansen <tchrist@mox.perl.com> writes:
: When my pop grows a culture, I throw it away undrunk.
Pop? Do you want a coke or something? What kind? :-)
Greg
--
Playing chess is a software problem, but you still need a mighty powerful
computer to do it in a reasonable amount of time.
-- Gordon E. Moore
------------------------------
Date: 3 May 1999 15:16:28 GMT
From: gbacon@itsc.uah.edu (Greg Bacon)
Subject: Re: Who is Just another Perl hacker?
Message-Id: <7gkekc$hc$5@info2.uah.edu>
In article <m1hfpvh2jq.fsf@halfdome.holdit.com>,
merlyn@stonehenge.com (Randal L. Schwartz) writes:
: So, in answer to your question, feel free to declare yourself a JAPH,
: but most of us around here agree that I'm JAPH # 0. :)
So do JAPH numbers work like Erdos number? How does one compute one's
JAPH number? :-)
Greg
--
Usenet is like a herd of performing elephants with diarrhea; massive,
difficult to redirect, awe-inspiring, entertaining, and a source of
mind-boggling amounts of excrement when you least expect it.
-- Gene Spafford
------------------------------
Date: 12 Dec 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 Dec 98)
Message-Id: <null>
Administrivia:
Well, after 6 months, here's the answer to the quiz: what do we do about
comp.lang.perl.moderated. Answer: nothing.
]From: Russ Allbery <rra@stanford.edu>
]Date: 21 Sep 1998 19:53:43 -0700
]Subject: comp.lang.perl.moderated available via e-mail
]
]It is possible to subscribe to comp.lang.perl.moderated as a mailing list.
]To do so, send mail to majordomo@eyrie.org with "subscribe clpm" in the
]body. Majordomo will then send you instructions on how to confirm your
]subscription. This is provided as a general service for those people who
]cannot receive the newsgroup for whatever reason or who just prefer to
]receive messages via e-mail.
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 5550
**************************************