[32103] in Perl-Users-Digest

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

Perl-Users Digest, Issue: 3367 Volume: 11

daemon@ATHENA.MIT.EDU (Perl-Users Digest)
Wed Apr 27 16:09:27 2011

Date: Wed, 27 Apr 2011 13:09:10 -0700 (PDT)
From: Perl-Users Digest <Perl-Users-Request@ruby.OCE.ORST.EDU>
To: Perl-Users@ruby.OCE.ORST.EDU (Perl-Users Digest)

Perl-Users Digest           Wed, 27 Apr 2011     Volume: 11 Number: 3367

Today's topics:
    Re: FAQ flood MUST end <justin.1104@purestblue.com>
    Re: FAQ flood MUST end (Randal L. Schwartz)
    Re: FAQ flood MUST end <tadmc@seesig.invalid>
    Re: FAQ flood MUST end <jondk@FAKE.EMAIL.net>
    Re: FAQ flood MUST end <uri@StemSystems.com>
    Re: FAQ flood MUST end <jondk@FAKE.EMAIL.net>
    Re: FAQ flood MUST end <uri@StemSystems.com>
    Re: grabbing a facebook group <cwilbur@chromatico.net>
        How to AUTOMATICALLY configure CPAN? <ignoramus14859@NOSPAM.14859.invalid>
    Re: Learning by example <tadmc@seesig.invalid>
    Re: Learning by example <marc.girod@gmail.com>
    Re: Learning by example <tadmc@seesig.invalid>
    Re: Learning by example <marc.girod@gmail.com>
    Re: Learning by example <tadmc@seesig.invalid>
        Digest Administrivia (Last modified: 6 Apr 01) (Perl-Users-Digest Admin)

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

Date: Wed, 27 Apr 2011 16:30:14 +0100
From: Justin C <justin.1104@purestblue.com>
Subject: Re: FAQ flood MUST end
Message-Id: <6dpl88-09k.ln1@zem.masonsmusic.co.uk>

On 2011-04-27, Shmuel Metz <spamtrap@library.lspace.org.invalid> wrote:
> In
> <81a18694-f64f-4899-95a1-50e08db7188c@f18g2000yqd.googlegroups.com>,
> on 04/11/2011
>    at 12:16 PM, ccc31807 <cartercc@gmail.com> said:
>
>>The FAQ posts are, for me, a valuable resource for keeping up-to-date
>>with Perl.
>
> Yes, but Shirley 1/month would be sufficient.

One FAQ per month or one posting of each FAQ per month? I hadn't noticed
that the FAQs were appearing more frequently than that anyway, there are
a lot of them, perhaps their number is leading you to believe they are
more frequent than you suggest?

Have a vote on it: 
	All those who can't or are too lazy to operate a KF and would
	therefore like to see a reduction in FAQ postings say aye.

   Justin.

-- 
Justin C, by the sea.


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

Date: Wed, 27 Apr 2011 11:07:37 -0700
From: merlyn@stonehenge.com (Randal L. Schwartz)
Subject: Re: FAQ flood MUST end
Message-Id: <86bozrsh3q.fsf@red.stonehenge.com>

>>>>> "Justin" == Justin C <justin.1104@purestblue.com> writes:

Justin> 	All those who can't or are too lazy to operate a KF and would
Justin> 	therefore like to see a reduction in FAQ postings say
Justin> 	aye.

All those who can't operate a kill filter surely (shirley?) can
unsubscribe from this newsgroup instead.

-- 
Randal L. Schwartz - Stonehenge Consulting Services, Inc. - +1 503 777 0095
<merlyn@stonehenge.com> <URL:http://www.stonehenge.com/merlyn/>
Smalltalk/Perl/Unix consulting, Technical writing, Comedy, etc. etc.
See http://methodsandmessages.posterous.com/ for Smalltalk discussion


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

Date: Wed, 27 Apr 2011 13:37:33 -0500
From: Tad McClellan <tadmc@seesig.invalid>
Subject: Re: FAQ flood MUST end
Message-Id: <slrnirgoal.tm3.tadmc@tadbox.sbcglobal.net>

Justin C <justin.1104@purestblue.com> wrote:
> On 2011-04-27, Shmuel Metz <spamtrap@library.lspace.org.invalid> wrote:
>> In
>> <81a18694-f64f-4899-95a1-50e08db7188c@f18g2000yqd.googlegroups.com>,
>> on 04/11/2011
>>    at 12:16 PM, ccc31807 <cartercc@gmail.com> said:
>>
>>>The FAQ posts are, for me, a valuable resource for keeping up-to-date
>>>with Perl.
>>
>> Yes, but Shirley 1/month would be sufficient.

> there are
> a lot of them, 


Running

    grep ^=head2 perlfaq[1-9].pod | wc -l

in the pod/ directory for my 5.10 says there are 307 questions.

At one/month, it would take more than 25 years to cycle through
all of them.

I would hope that FAQ answers get reviewed/updated more frequently
than every 25 years!


-- 
Tad McClellan
email: perl -le "print scalar reverse qq/moc.liamg\100cm.j.dat/"
The above message is a Usenet post.
I don't recall having given anyone permission to use it on a Web site.


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

Date: Wed, 27 Apr 2011 14:55:21 -0400
From: Jon Du Kim <jondk@FAKE.EMAIL.net>
Subject: Re: FAQ flood MUST end
Message-Id: <7a24e$4db8669a$ce534406$27245@news.eurofeeds.com>

> I would hope that FAQ answers get reviewed/updated more frequently
> than every 25 years!
oh horseshit! That retarded "posting faq" you spam the group with hasn't
been touched in, what? 10 years?
Why you put your name on it is beyond me. Do you really want an autoposted
whinging anti-social screed to be what comes up if anyone googles your name?


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

Date: Wed, 27 Apr 2011 14:57:51 -0400
From: "Uri Guttman" <uri@StemSystems.com>
Subject: Re: FAQ flood MUST end
Message-Id: <877haf34k0.fsf@quad.sysarch.com>

>>>>> "JDK" == Jon Du Kim <jondk@FAKE.EMAIL.net> writes:

  >> I would hope that FAQ answers get reviewed/updated more frequently
  >> than every 25 years!

  JDK> oh horseshit! That retarded "posting faq" you spam the group with
  JDK> hasn't been touched in, what? 10 years?  Why you put your name on
  JDK> it is beyond me. Do you really want an autoposted whinging
  JDK> anti-social screed to be what comes up if anyone googles your
  JDK> name?

and this is what google will find for your name.

if you ever read any of the threads on the faq posts, you will see they
get patches and edits and bdf does apply them regularly. the issue is
perl isn't released so often that you see the changes right away. but
they do go in the next version.

uri

-- 
Uri Guttman  ------  uri@stemsystems.com  --------  http://www.sysarch.com --
-----  Perl Code Review , Architecture, Development, Training, Support ------
---------  Gourmet Hot Cocoa Mix  ----  http://bestfriendscocoa.com ---------


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

Date: Wed, 27 Apr 2011 15:04:02 -0400
From: Jon Du Kim <jondk@FAKE.EMAIL.net>
Subject: Re: FAQ flood MUST end
Message-Id: <ee69a$4db868a2$ce534406$21038@news.eurofeeds.com>

> if you ever read any of the threads on the faq posts, you will see they
> get patches and edits and bdf does apply them regularly. the issue is
> perl isn't released so often that you see the changes right away. but
> they do go in the next version.
Once again you missed the point. I was referring to the "posting faq" Tad
autoposts. You know, where he whinges about how posting to c.l.p.m require
as much due diligence as an academic journal. *guffaw*
Put the bucket of hot chocolate down and do try to pay attention.



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

Date: Wed, 27 Apr 2011 15:23:12 -0400
From: "Uri Guttman" <uri@StemSystems.com>
Subject: Re: FAQ flood MUST end
Message-Id: <871v0n1otb.fsf@quad.sysarch.com>

>>>>> "JDK" == Jon Du Kim <jondk@FAKE.EMAIL.net> writes:

  >> if you ever read any of the threads on the faq posts, you will see they
  >> get patches and edits and bdf does apply them regularly. the issue is
  >> perl isn't released so often that you see the changes right away. but
  >> they do go in the next version.

  JDK> Once again you missed the point. I was referring to the "posting
  JDK> faq" Tad autoposts. You know, where he whinges about how posting
  JDK> to c.l.p.m require as much due diligence as an academic
  JDK> journal. *guffaw* Put the bucket of hot chocolate down and do try
  JDK> to pay attention.

and you need to learn the difference between an FAQ and posting
guidelines. try some taking reading comprehension classes.

uri

-- 
Uri Guttman  ------  uri@stemsystems.com  --------  http://www.sysarch.com --
-----  Perl Code Review , Architecture, Development, Training, Support ------
---------  Gourmet Hot Cocoa Mix  ----  http://bestfriendscocoa.com ---------


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

Date: Wed, 27 Apr 2011 09:35:18 -0400
From: Charlton Wilbur <cwilbur@chromatico.net>
Subject: Re: grabbing a facebook group
Message-Id: <86oc3rrf55.fsf@mithril.chromatico.net>


Uno (U) writes:

    >> Uno has had an explanation in friendly words that he totally
    >> disregarded, and he started acting like a whiny bitch when called
    >> upon it.
   
    >> Sometimes someone is just plain *wrong*. Pussyfooting about will
    >> not help, and if they persist in being wrong despite being told,
    >> they deserve whatever they get.

    U> That's a rather harsh criticism, Mart.  Nobody in my real life
    U> talks to me like this.

And, that, perhaps, is the bulk of the problem.

It is a harsh criticism, but completely accurate.  It is up to you
whether you see fit to do anything to remedy it.

Charlton


-- 
Charlton Wilbur
cwilbur@chromatico.net


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

Date: Wed, 27 Apr 2011 13:22:30 -0500
From: Ignoramus14859 <ignoramus14859@NOSPAM.14859.invalid>
Subject: How to AUTOMATICALLY configure CPAN?
Message-Id: <WM2dnYXOX9x7wyXQnZ2dnUVZ_uOdnZ2d@giganews.com>

I am trying to create a fully scripted (inside a makefile) install of
perl-5.10.1. 

Most of the things work, except that CPAN insists on configuring
itself and gets into an infinite loop of saying inanities like "you
did not allow me to connect to internet, so I will not connect to
internet". 

   As you did not allow me to connect to the internet you need to supply
   a valid CPAN URL now.

   Please enter the URL of your CPAN mirror  
   CPAN needs access to at least one CPAN mirror.


I thought that I could just put CPAN/Config.pm in the right place, but
apparently, it is not working. 

So... How can I auto-configure CPAN without the need to type stuff on
keyboard every time perl is auto-installed?

Thanks!

i


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

Date: Tue, 26 Apr 2011 20:37:04 -0500
From: Tad McClellan <tadmc@seesig.invalid>
Subject: Re: Learning by example
Message-Id: <slrniresh8.qqm.tadmc@tadbox.sbcglobal.net>

Juan Wei <juanwei26@gmail.com> wrote:
> Justin C has written on 4/19/2011 5:04 AM:
>> On 2011-04-18, ccc31807 <cartercc@gmail.com> wrote:
>> 
>> [snip]
>>>
>>> Bottom line: use Perl daily, writing real solutions to real tasks.
>> 
>> I don't have enough tasks for which I can use Perl. I do, though, have a
>> lot of Perl I've written over the last however many years, and I know I
>> can improve on some of the early stuff. Perhaps that's what I should
>> tackle, a re-write of my previous work (no, work isn't as busy as it
>> could be).
>
> I'm not a programmer but I need a simple script. Perhaps you might find
> this interesting enough to tackle.


A task that can be done in less than 10 lines of code, written
at the level of the rawest beginning Perl programmer, is very
unlikely to be deemed "interesting"...


 ... but doing it with a one-line Perl program might be a little
bit more interesting. See below.


> I have a bunch of files with names like text123.txt that I would like to
> change to something more meaningful.
>
> Fortunately, each of them has the desired filename as their first line.
> For example, the file text197.txt consists of these three lines:
>
> HD TESTERS
>
> See manufacturer's website.
>
> I'd like the name to become HD TESTERS.txt or HD_TESTERS.txt (lowercase
> is OK, too)


(you better make backups before trying this...)

    perl -lne 'close ARGV; tr/ /_/; s/$/.txt/; rename $ARGV, $_' *.txt


-- 
Tad McClellan
email: perl -le "print scalar reverse qq/moc.liamg\100cm.j.dat/"
The above message is a Usenet post.
I don't recall having given anyone permission to use it on a Web site.


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

Date: Wed, 27 Apr 2011 08:49:18 -0700 (PDT)
From: Marc Girod <marc.girod@gmail.com>
Subject: Re: Learning by example
Message-Id: <be93e92b-04f1-426c-a573-f9b1e6a57edd@k22g2000yqh.googlegroups.com>

On Apr 27, 2:37=A0am, Tad McClellan <ta...@seesig.invalid> wrote:

> (you better make backups before trying this...)
>
> =A0 =A0 perl -lne 'close ARGV; tr/ /_/; s/$/.txt/; rename $ARGV, $_' *.tx=
t

So... What could happen?
- empty file; no first line
- first line contains illegal characters, for use as file names
- collisions:
  - several files with first lines resulting in the same names
  - first line resulting in an existing file name
- protection issues:
  - non writable directory
  - non readable files
Marc


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

Date: Wed, 27 Apr 2011 11:38:51 -0500
From: Tad McClellan <tadmc@seesig.invalid>
Subject: Re: Learning by example
Message-Id: <slrnirghc3.tc4.tadmc@tadbox.sbcglobal.net>

Marc Girod <marc.girod@gmail.com> wrote:
> On Apr 27, 2:37 am, Tad McClellan <ta...@seesig.invalid> wrote:
>
>> (you better make backups before trying this...)
>>
>>     perl -lne 'close ARGV; tr/ /_/; s/$/.txt/; rename $ARGV, $_' *.txt
>
> So... What could happen?


The poster said:

    each of them has the desired filename as their first line.
    ^^^^         ^^^                               ^^^^^^^^^^

> - empty file; no first line


We've been guaranteed that that cannot happen.


> - first line contains illegal characters, for use as file names

    each of them has the desired filename as their first line.
                         ^^^^^^^^^^^^^^^^

If you desire an illegal filename, then it is simply GIGO.

(and there are only 2 illegal ASCII characters anyway, if a *nix filesystem)


> - collisions:
>   - several files with first lines resulting in the same names


If you desire several files to have the same name, then GIGO again.


>   - first line resulting in an existing file name


Now there's a valid one.


> - protection issues:
>   - non writable directory
>   - non readable files


If you desire to rename files where you don't have the necessary
permissions, then GIGO yet again.


-- 
Tad McClellan
email: perl -le "print scalar reverse qq/moc.liamg\100cm.j.dat/"
The above message is a Usenet post.
I don't recall having given anyone permission to use it on a Web site.


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

Date: Wed, 27 Apr 2011 09:51:02 -0700 (PDT)
From: Marc Girod <marc.girod@gmail.com>
Subject: Re: Learning by example
Message-Id: <934d3302-60e8-4e55-a305-e27901cbacc1@w24g2000yqb.googlegroups.com>

On Apr 27, 5:38=A0pm, Tad McClellan <ta...@seesig.invalid> wrote:

> The poster said:
 ...

Sorry: there was no critique implied in my comments!
You warned about taking a backup, and rightly so,
even if the script as is will work perfectly most of
the time!

And sure: the assumptions taken were based on the
poster's task descripton!

Marc


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

Date: Wed, 27 Apr 2011 13:31:16 -0500
From: Tad McClellan <tadmc@seesig.invalid>
Subject: Re: Learning by example
Message-Id: <slrnirgnut.tm3.tadmc@tadbox.sbcglobal.net>

Marc Girod <marc.girod@gmail.com> wrote:
> On Apr 27, 5:38 pm, Tad McClellan <ta...@seesig.invalid> wrote:
>
>> The poster said:
> ...
>
> Sorry: there was no critique implied in my comments!
> You warned about taking a backup, and rightly so,
> even if the script as is will work perfectly most of
> the time!


The biggest issue by far is the poster, who admitted "I am not a
programmer", would be willing to run a program taken from some
random guy on the 'net without being able to understand it!


-- 
Tad McClellan
email: perl -le "print scalar reverse qq/moc.liamg\100cm.j.dat/"
The above message is a Usenet post.
I don't recall having given anyone permission to use it on a Web site.


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

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:

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

Back issues are available via anonymous ftp from
ftp://cil-www.oce.orst.edu/pub/perl/old-digests. 

#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 V11 Issue 3367
***************************************


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