[23794] in Perl-Users-Digest
Perl-Users Digest, Issue: 5997 Volume: 10
daemon@ATHENA.MIT.EDU (Perl-Users Digest)
Thu Jan 29 18:27:56 2004
Date: Thu, 29 Jan 2004 15:27:24 -0800 (PST)
From: Perl-Users Digest <Perl-Users-Request@ruby.OCE.ORST.EDU>
To: Perl-Users@ruby.OCE.ORST.EDU (Perl-Users Digest)
Perl-Users Digest Thu, 29 Jan 2004 Volume: 10 Number: 5997
Today's topics:
Re: Are those Legal or Pirated Copies? (Malcolm Dew-Jones)
Re: Are those Legal or Pirated Copies? (Lothar Scholz)
Re: Are those Legal or Pirated Copies? <matthew.garrish@sympatico.ca>
Re: Are those Legal or Pirated Copies? <bblackmoor@spamcop.net>
Autoload and Symbol Table (Alejandro Calbazana)
Re: Autoload and Symbol Table <usenet@morrow.me.uk>
Automatic login <jhfami@yahoo.co.kr>
Re: Automatic login <usenet@morrow.me.uk>
Automatic Mail Reply <askjinu@earthlink.net>
Re: Automatic Mail Reply <noreply@gunnar.cc>
Re: Automatic Mail Reply <gnari@simnet.is>
Re: Automatic Mail Reply <tore@aursand.no>
Re: Automatic Mail Reply <jurgenex@hotmail.com>
Backreference and Substitution problems (Krishna Srinivasan)
Re: Backreference and Substitution problems (Anno Siegel)
bait shark@flotsam.ca
Re: bbs admin problem <tadmc@augustmail.com>
Re: bbs admin problem <dragnet@internalysis.com>
Re: bbs admin problem <robin@csf.edu>
Re: bbs admin problem (Walter Roberson)
Re: bbs admin problem <robin@csf.edu>
Re: bbs admin problem <sbryce@scottbryce.com>
Re: bbs admin problem <me@privacy.net>
Digest Administrivia (Last modified: 6 Apr 01) (Perl-Users-Digest Admin)
----------------------------------------------------------------------
Date: 19 Jan 2004 13:56:47 -0800
From: yf110@vtn1.victoria.tc.ca (Malcolm Dew-Jones)
Subject: Re: Are those Legal or Pirated Copies?
Message-Id: <400c529f@news.victoria.tc.ca>
Adams-Blake Company (atakeoutcanton@adams-blaketakeout.com) wrote:
: And yes, there is anecdotal evidence to show that free e-books have helped the
: sale of pulp-paper books...
I beleive that. When I have a problem and ths solution involves reading a
book, I typically read the book in the book store. If I keep coming back
to the same book (i.e. I find it useful) then I know its worth while to
buy the book.
------------------------------
Date: 19 Jan 2004 16:21:32 -0800
From: llothar@web.de (Lothar Scholz)
Subject: Re: Are those Legal or Pirated Copies?
Message-Id: <6ee58e07.0401191621.23f2aff7@posting.google.com>
Jochen Buennagel <zang.NOSPAM@buennagel.com> wrote in message news:<buh5if$von$03$1@news.t-online.com>...
> Robert wrote:
> > I would let the publishers know.
>
> My guess is that the publishers already know. Maybe not about this
> specific site, but eBooks of all major IT publishers are all over the
> Peer-2-Peer networks such as eDonkey. The publishers are in the same fix
> as the movie or the recording industry.
>
> Their big advantage is, that books are a bitch to read on screen and are
> expensive to print yourself (compared to burning a downloaded music CD).
> Because of this, many people who download the books will go on and buy
> them if they find them useful - maybe even some that wouldn't have
> bought without the download.
It's my opinion that most IT books are bad rewrites of already
available handbooks and so on. And a lot of books are very confusing
to read. But all of them bring money to the publishing companies.
I doubt that they want eBooks as a quality assurence way for customers
who hate it to spend money (i find this books overpriced) on bad
books.
------------------------------
Date: Mon, 19 Jan 2004 20:33:17 -0500
From: "Matt Garrish" <matthew.garrish@sympatico.ca>
Subject: Re: Are those Legal or Pirated Copies?
Message-Id: <rz%Ob.4933$rW5.214984@news20.bellglobal.com>
"Jochen Buennagel" <zang.NOSPAM@buennagel.com> wrote in message
news:buh5if$von$03$1@news.t-online.com...
>
> Their big advantage is, that books are a bitch to read on screen and are
> expensive to print yourself (compared to burning a downloaded music CD).
>
That's certainly part of it, but you're also forgetting that most publishers
use sgml to structure their data, and with a little help from Omnimark to
quickly convert over to html you have yourself a potential cash cow (well, a
new, very low-cost stream of income from the book at any rate).
Matt
------------------------------
Date: Wed, 21 Jan 2004 13:07:29 -0500
From: Brandon Blackmoor <bblackmoor@spamcop.net>
Subject: Re: Are those Legal or Pirated Copies?
Message-Id: <bumf51$jeupn$2@ID-97660.news.uni-berlin.de>
Market Mutant wrote:
>
> Are nodays, all technical books are free online?
Troll.
------------------------------
Date: 26 Jan 2004 17:29:58 -0800
From: acalbaza@calbazana.com (Alejandro Calbazana)
Subject: Autoload and Symbol Table
Message-Id: <2a8563ad.0401261729.3e78563a@posting.google.com>
Hello,
I have a question about Autoload and the Symbol Table. I would like
to create setters and getters for various object attributes using
Autoload in order to populate object's from data at runtime given a
mapping. The idea here is that I would create objects dynamically
based on a type and then be able to "set" the newly created object's
attributes knowing nothing more than what's in it's the symbol table.
My setters are named something like "set_xxx" where "xxx" is the
attribute I want to set. These live in Autoload and work as expected.
My problem is that when I dump the symbol table, none of the Autoload
methods appear until after the first invocation. I am wondering if
there is a way to get these loaded into the symbol table from my
constructor without calling each "set_xxx" explicitly.
Is there any way to do this?
Thanks,
Alejandro
------------------------------
Date: Tue, 27 Jan 2004 01:37:52 +0000 (UTC)
From: Ben Morrow <usenet@morrow.me.uk>
Subject: Re: Autoload and Symbol Table
Message-Id: <bv4fdg$3bc$1@wisteria.csv.warwick.ac.uk>
acalbaza@calbazana.com (Alejandro Calbazana) wrote:
> I have a question about Autoload and the Symbol Table. I would like
> to create setters and getters for various object attributes using
> Autoload in order to populate object's from data at runtime given a
> mapping. The idea here is that I would create objects dynamically
> based on a type and then be able to "set" the newly created object's
> attributes knowing nothing more than what's in it's the symbol table.
>
> My setters are named something like "set_xxx" where "xxx" is the
> attribute I want to set. These live in Autoload and work as expected.
>
> My problem is that when I dump the symbol table, none of the Autoload
> methods appear until after the first invocation. I am wondering if
> there is a way to get these loaded into the symbol table from my
> constructor without calling each "set_xxx" explicitly.
>
> Is there any way to do this?
Yes there is, but it would almost certainly be better not to do it
this way. What I would do is have a method 'get_attributes' or some
such on each of these objects that returns a list of which attributes
are valid for that object: this is much safer than messing around with
the symbol table when you don't need to.
OTOH, if you *must* do this, the easiest way is
require subs;
import subs qw/set_one set_two/;
.
Ben
--
The cosmos, at best, is like a rubbish heap scattered at random.
- Heraclitus
ben@morrow.me.uk
------------------------------
Date: Mon, 26 Jan 2004 12:50:16 +0900
From: "jhfami" <jhfami@yahoo.co.kr>
Subject: Automatic login
Message-Id: <bv204i$d1c$1@news1.kornet.net>
I want to implement the program which periodically login to the web-page
like web-mail with id and passwd.
Are there any good references or source codes?
Thanks in advance.
--
HoJin <jhfami_at_yahoo.co.kr>
------------------------------
Date: Tue, 27 Jan 2004 00:41:03 +0000 (UTC)
From: Ben Morrow <usenet@morrow.me.uk>
Subject: Re: Automatic login
Message-Id: <bv4c2v$v2$1@wisteria.csv.warwick.ac.uk>
"jhfami" <jhfami@yahoo.co.kr> wrote:
> I want to implement the program which periodically login to the web-page
> like web-mail with id and passwd.
> Are there any good references or source codes?
Get LWP off CPAN.
Ben
--
For the last month, a large number of PSNs in the Arpa[Inter-]net have been
reporting symptoms of congestion ... These reports have been accompanied by an
increasing number of user complaints ... As of June,... the Arpanet contained
47 nodes and 63 links. [ftp://rtfm.mit.edu/pub/arpaprob.txt] * ben@morrow.me.uk
------------------------------
Date: Wed, 28 Jan 2004 07:32:52 GMT
From: "snoopy" <askjinu@earthlink.net>
Subject: Automatic Mail Reply
Message-Id: <EAJRb.10$uM2.5@newsread1.news.pas.earthlink.net>
I send many emails to various clients of mine, and each email has the link
to the web page.
The recepients are supposed to click the link, and take a look at that day's
web page.
Would it be possible in Perl code so that when the recepients click the
link, I get an email with that person's email address so that I know who has
visited my web page??
Thanks.
------------------------------
Date: Wed, 28 Jan 2004 09:35:20 +0100
From: Gunnar Hjalmarsson <noreply@gunnar.cc>
Subject: Re: Automatic Mail Reply
Message-Id: <bv7se2$pj6u0$1@ID-184292.news.uni-berlin.de>
snoopy wrote:
> I send many emails to various clients of mine, and each email has
> the link to the web page.
>
> The recepients are supposed to click the link, and take a look at
> that day's web page.
>
> Would it be possible in Perl code so that when the recepients click
> the link, I get an email with that person's email address so that I
> know who has visited my web page??
No. Besides, we don't help spammers here, and I can't help getting the
impression that this is about spam.
--
Gunnar Hjalmarsson
Email: http://www.gunnar.cc/cgi-bin/contact.pl
------------------------------
Date: Wed, 28 Jan 2004 08:23:42 -0000
From: "gnari" <gnari@simnet.is>
Subject: Re: Automatic Mail Reply
Message-Id: <bv7ro2$32o$1@news.simnet.is>
"snoopy" <askjinu@earthlink.net> wrote in message
news:EAJRb.10$uM2.5@newsread1.news.pas.earthlink.net...
> I send many emails to various clients of mine, and each email has the link
> to the web page.
>
> The recepients are supposed to click the link, and take a look at that
day's
> web page.
>
> Would it be possible in Perl code so that when the recepients click the
> link, I get an email with that person's email address so that I know who
has
> visited my web page??
yes.
what have you tried, what is the problem
gnari
------------------------------
Date: Wed, 28 Jan 2004 10:10:07 +0100
From: Tore Aursand <tore@aursand.no>
Subject: Re: Automatic Mail Reply
Message-Id: <pan.2004.01.28.08.52.45.193305@aursand.no>
On Wed, 28 Jan 2004 07:32:52 +0000, snoopy wrote:
> I send many emails to various clients of mine, and each email has the link
> to the web page.
>
> [...]
>
> Would it be possible in Perl code so that when the recepients click the
> link, I get an email with that person's email address so that I know who has
> visited my web page??
Yes.
--
Tore Aursand <tore@aursand.no>
"What we see depends mainly on what we look for." -- Sir John Lubbock
------------------------------
Date: Wed, 28 Jan 2004 14:51:08 GMT
From: "Jürgen Exner" <jurgenex@hotmail.com>
Subject: Re: Automatic Mail Reply
Message-Id: <w%PRb.2103$px6.203@nwrddc02.gnilink.net>
snoopy wrote:
> I send many emails to various clients of mine, and each email has the
> link to the web page.
>
> The recepients are supposed to click the link, and take a look at
> that day's web page.
>
> Would it be possible in Perl code so that when the recepients click
> the link, I get an email with that person's email address so that I
> know who has visited my web page??
In general: yes. In "Perl code"? No.
You have a question about web programming, probably in the HTTP/HTML area.
This has nothing to do with Perl.
jue
------------------------------
Date: 22 Jan 2004 02:43:00 -0800
From: krishna@multimediastudio.com (Krishna Srinivasan)
Subject: Backreference and Substitution problems
Message-Id: <361f42ca.0401220243.71ec39f2@posting.google.com>
$foo = "This is a BlueTooth device";
$bar = "bluetooth";
print $foo . "\n";
$foo =~ s/$bar/<$1>/ig;
print $foo . "\n";
The output I expect is "This is a <BlueTooth> device"
But I get "This is a <> device"
Where am I going wrong?
Krishna.
------------------------------
Date: 22 Jan 2004 10:48:48 GMT
From: anno4000@lublin.zrz.tu-berlin.de (Anno Siegel)
Subject: Re: Backreference and Substitution problems
Message-Id: <buo9qg$6t8$2@mamenchi.zrz.TU-Berlin.DE>
Krishna Srinivasan <krishna@multimediastudio.com> wrote in comp.lang.perl.misc:
> $foo = "This is a BlueTooth device";
> $bar = "bluetooth";
>
> print $foo . "\n";
>
> $foo =~ s/$bar/<$1>/ig;
> print $foo . "\n";
>
> The output I expect is "This is a <BlueTooth> device"
> But I get "This is a <> device"
>
> Where am I going wrong?
You're not capturing the search result, so $1 is undefined.
$foo =~ s/($bar)/<$1>/ig;
Anno
------------------------------
Date: Mon, 26 Jan 2004 14:52:35 GMT
From: shark@flotsam.ca
Subject: bait
Message-Id: <TQ9Rb.74586$IF6.1887395@ursa-nb00s0.nbnet.nb.ca>
Here you are: shark@flotsam.ca
------------------------------
Date: Wed, 21 Jan 2004 08:02:17 -0600
From: Tad McClellan <tadmc@augustmail.com>
Subject: Re: bbs admin problem
Message-Id: <slrnc0t1j9.6l3.tadmc@magna.augustmail.com>
Iain Chalmers <bigiain@mightymedia.com.au> wrote:
> In article <Xns947712C956359dragnetinternalysisc@206.172.150.13>,
> Marc Bissonnette <dragnet@internalysis.com> wrote:
>
>> moved on to
>>
>> Managing & Using MySQL, 2nd Edition
>> By George Reese, Randy Jay Yarger, Tim King
>> http://www.oreilly.com/catalog/msql2/
Even the beloved O'Reilly makes mistakes.
> I feel I need to comment that this is by far the _worst_ OReilly book
> I've ever bought...
George Reese has a reputation hereabouts.
He trolled here with vigor some years ago.
Message-ID: <7pvkeo$v15$1@nnrp1.deja.com>
Message-ID: <x7g11qanob.fsf@home.sysarch.com>
I expect that a book written by a troll would be suboptimal.
--
Tad McClellan SGML consulting
tadmc@augustmail.com Perl programming
Fort Worth, Texas
------------------------------
Date: Wed, 21 Jan 2004 18:22:44 GMT
From: Marc Bissonnette <dragnet@internalysis.com>
Subject: Re: bbs admin problem
Message-Id: <Xns9477881EEB7F7dragnetinternalysisc@207.35.177.135>
Iain Chalmers <bigiain@mightymedia.com.au> wrote in
news:bigiain-DF382B.18304821012004@news.fu-berlin.de:
> In article <Xns947712C956359dragnetinternalysisc@206.172.150.13>,
> Marc Bissonnette <dragnet@internalysis.com> wrote:
>
>> For me, once past those two (And I don't claim to have mastered the
>> second, by far - I still pick it up to learn what I need at a given
>> point in time), I moved on to
>>
>> Managing & Using MySQL, 2nd Edition
>> By George Reese, Randy Jay Yarger, Tim King
>> http://www.oreilly.com/catalog/msql2/
>
> I feel I need to comment that this is by far the _worst_ OReilly book
> I've ever bought...
>
> I'd suggest
> Programming the Perl DBI
> By Alligator Descartes ,Tim Bunce
> http://www.oreilly.com/catalog/perldbi/
>
> is a far more useful Perl book (if you already know MySQL), and
>
> MySQL
> by Paul Dubois
> http://www.newriders.com/books/product.asp?product_id=%7BFC784549-C0F6-
> 44 BC-8D69-393B557CDF40%7D
>
> if you want to learn about how to use MySQL (rather than just how to
> use it from perl).
>
> Managing & Using MySQL (though, admittedly, I've got the first
> edition) is little more than a printed copy of a bunch of out of date
> MySQL documentation with maybe 3 or 4 chapters of original stuff...
Hrm, that's good to know - The Reese book got me started, though just
about all my MySQL learning these days comes from
http://www.mysql.com/documentation/ along with Usenet and Google.
The Reese threads are making for entertaining afternoon reading, however
:)
Thanks for the correction/heads up.
--
Marc Bissonnette
CGI / Database / Web Management Tools: http://www.internalysis.com
Something To Sell? Looking To Buy? http://www.whitewaterclassifieds.ca
Looking for a new ISP? http://www.canadianisp.com
------------------------------
Date: Wed, 21 Jan 2004 17:43:23 -0700
From: "Robin" <robin@csf.edu>
Subject: Re: bbs admin problem
Message-Id: <bun79g$to1$2@reader2.nmix.net>
I finally got it working, now using subs called without "ampersands" thanks
to whoever corrected me... is this a top post or something else? I read some
articles on top posting btw, so I'm more informed...
peace,
-Robin
------------------------------
Date: 22 Jan 2004 01:34:58 GMT
From: roberson@ibd.nrc-cnrc.gc.ca (Walter Roberson)
Subject: Re: bbs admin problem
Message-Id: <bun9c2$280$1@canopus.cc.umanitoba.ca>
This line would be top-posting. [And I apologize to others... I only
do it for demonstration.]
In article <bun79g$to1$2@reader2.nmix.net>, Robin <robin@csf.edu> wrote:
:I finally got it working, now using subs called without "ampersands" thanks
:to whoever corrected me... is this a top post or something else? I read some
:articles on top posting btw, so I'm more informed...
This line isn't top-posting. Nor was your most recent post. Top-posting
is posting on the top of whatever you are replying to.
--
Pity the poor electron, floating around minding its own business for
billions of years; and then suddenly Bam!! -- annihilated just so
you could read this posting.
------------------------------
Date: Wed, 21 Jan 2004 22:50:23 -0700
From: "Robin" <robin@csf.edu>
Subject: Re: bbs admin problem
Message-Id: <bunplc$5s8$1@reader2.nmix.net>
Sweet...thanks.
peace,
-Robin
------------------------------
Date: Thu, 22 Jan 2004 01:18:51 -0700
From: Scott Bryce <sbryce@scottbryce.com>
Subject: Re: bbs admin problem
Message-Id: <100v1rb3ir4nvd1@corp.supernews.com>
Robin wrote:
> Sweet...thanks.
It is also a good idea to quote enough of the article you are responding
to so that we will know what is sweet.
But don't quote so much that your comments get lost in the quotes.
------------------------------
Date: Thu, 22 Jan 2004 21:41:22 +1300
From: "Tintin" <me@privacy.net>
Subject: Re: bbs admin problem
Message-Id: <buo2dl$kasec$1@ID-172104.news.uni-berlin.de>
"Robin" <robin@csf.edu> wrote in message
news:bun79g$to1$2@reader2.nmix.net...
> I finally got it working, now using subs called without "ampersands"
thanks
> to whoever corrected me... is this a top post or something else? I read
some
> articles on top posting btw, so I'm more informed...
For some definition of "working".
I don't know why you are still confused about top posting. You've been
given plenty of articles to read and you can see perfect examples everyday
in this group.
The next thing you need to learn is context and references. Please re-read
Tad's posting guidelines *again*
------------------------------
Date: 6 Apr 2001 21:33:47 GMT (Last modified)
From: Perl-Users-Request@ruby.oce.orst.edu (Perl-Users-Digest Admin)
Subject: Digest Administrivia (Last modified: 6 Apr 01)
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: due to the current flood of worm email banging on ruby, the smtp
server on ruby has been shut off until further notice.
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 V10 Issue 5997
***************************************