[29095] in Perl-Users-Digest

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

Perl-Users Digest, Issue: 339 Volume: 11

daemon@ATHENA.MIT.EDU (Perl-Users Digest)
Sun Apr 15 03:09:59 2007

Date: Sun, 15 Apr 2007 00:09:06 -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           Sun, 15 Apr 2007     Volume: 11 Number: 339

Today's topics:
        ActiveState vs. "C:\Program Files\" and "C:\Progra~1\" <mnemotronic@gmail.com>
    Re: How to transparently download multiple files? <edMbj@aes-intl.com>
    Re: How to transparently download multiple files? <edMbj@aes-intl.com>
    Re: How to transparently download multiple files? <uri@stemsystems.com>
    Re: How to transparently download multiple files? <edMbj@aes-intl.com>
        new CPAN modules on Sun Apr 15 2007 (Randal Schwartz)
    Re: Running perl scripts on the fly <veatchla@yahoo.com>
    Re: Running perl scripts on the fly krakle@visto.com
        Digest Administrivia (Last modified: 6 Apr 01) (Perl-Users-Digest Admin)

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

Date: 14 Apr 2007 23:50:12 -0700
From: "pt" <mnemotronic@gmail.com>
Subject: ActiveState vs. "C:\Program Files\" and "C:\Progra~1\"
Message-Id: <1176619812.713068.276460@y80g2000hsf.googlegroups.com>

note:  this post started off as a question, but turned into a blog and
eventually became an answer.  I just hate to have anyone else go
through all this nonsense, so I figured I'd post it as an example of
"when in doubt, google it out".


I successfully installed ActiveState 5.8.8 (after uninstalling
5.6.something) on an XP laptop.  I installed it to "C:\Program FIles
\Activestate.com\Perl".  After the install, I changed the "Program
files" part of the ActiveState dirs in my PATH env var from long DOS
format to 8.3 format:
 "C:\Program Files\ActiveState.com\Perl\site\bin"
   to
 "C:\Progra~1\ActiveState.com\Perl\site\bin"
and
 "C:\Program Files\ActiveState.com\Perl\bin"
   to
 "C:\Progra~1\ActiveState.com\Perl\bin"

Now, when I attempt to build a CPAN module (BitTorrent), I get:
<pre>
C:\blah... \BitTorrent>perl makefile.pl
Have C:\Progra~1\ActiveState.com\Perl\lib\Config.pm expected C:
\Program Files\ActiveState.com\Perl\lib\Config.pm
Your perl and your Config.pm seem to have different ideas about the
architecture they are running on.
Perl thinks: [lib]
Config says: [MSWin32-x86-multi-thread]
This may or may not cause problems. Please check your installation of
perl
if you have problems building this extension.
Writing Makefile for BitTorrent
</pre>


It *looks* like Perl is just unhappy about the directory rename.  I
changed the PATH back to the original install dir and the new message
is:

C:\blahblah...\BitTorrent>perl -c Makefile.PL
Makefile.PL syntax OK

C:\blahblah...\BitTorrent>perl  Makefile.PL
Unable to find a perl 5 (by these names:
C:\Program Files\ActiveState.com\Perl\bin\perl.exe
perl.exe perl5.exe perl5.8.8.exe miniperl.exe, in these dirs:
 .
 c:\Program Files\rubyforge.org\ruby\bin
c:\usr\local\wbin
C:\Program Files\ActiveState.com\Perl\site\bin
C:\Program Files\ActiveState.com\Perl\bin
C:\WINDOWS\system32 C:\WINDOWS
C:\WINDOWS\System32\Wbem
c:\progra~1\utils
C:\Progra~1\apachefriends.org\xampp\MySQL\bin
C:\Program Files\Perforce
C:\Program Files\QuickTime\QTSystem\
C:\PVCS\NT
c:\progra~1\vslick\win
C:\Progra~1\nmap \bin
C:\Progra~1\airsnort\bin
C:\progra
 .... etc....

So that fixed the one problem, and brough up another.  I dug up this
suggestion:
http://aspn.activestate.com/ASPN/Mail/Message/activeperl/556006
and added the PERL line to the Makefile.pl
That allowed the Makefile to be generated without errors, but running
it had problems:
C:\blahblah...\Convert-Bencode-1.03>nmake -f Makefile

Microsoft (R) Program Maintenance Utility   Version 1.50
Copyright (c) Microsoft Corp 1988-94. All rights reserved.

NMAKE : fatal error U1073: don't know how to make 'C:\Program'
Stop.


I modified all instances of "Program files" in the Makefile to
"Progra~1" and the makefile worked ("test" and "install").  I think
the next step is to uninstall 5.8.8 and re-install it but specifying
an install dir of "C:\Progra~1\...etc".  I guess this new-fangled
"Windows" operating system with the pesky ASCII "space" char in files
and paths is just too much for some people to understand.



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

Date: Sat, 14 Apr 2007 19:06:49 -0700
From: Ed Jay <edMbj@aes-intl.com>
Subject: Re: How to transparently download multiple files?
Message-Id: <dnv2239q42drl00csrqfj8i61l46tbl459@4ax.com>

Uri Guttman scribed:

>>>>>> "EJ" == Ed Jay <edMbj@aes-intl.com> writes:
>  EJ> Uri Guttman scribed:
>  >>>>>>> "EJ" == Ed Jay <edMbj@aes-intl.com> writes:
>  >> <massive snip of quoted emails>

>you are deluded as it is. amazing how you really think it knows perl or
>actually cares about helping. 

Uri, all I know is that she provided me with the direction I needed to solve
my issue. Nobody else did. I don't understand why you make it seem like I
violated the queen.

>please do youself a favor and google its
>posting history.

You almost have me curious enough.

> if you still think it knows perl and is also as nice as
>you think, then go form your own perl circle of hell. but don't claim
>moronzilla knows perl or is nice here.

I haven't done either, have I? I know that she helped me. I've said nothing
about her being nice. I have said that others haven't been nice, but there's
no reason that statement elevates her. I don't know her or anything about
her, other than she provided the answer I needed and that you and others
have an issue with her expertise. (I think you're calling her a 'poser.')

> do you want help in anything
>beyond what substr can do? try asking it a question about refs, objects,
>data structures, etc. notice it never joins those threads. that might be
>a clue that you need.

OK
>
>  EJ> Let's see...I asked a question and took the advice of PG. For
>  EJ> whatever your reason(s), you have ill feelings toward
>  EJ> PG. Therefore, I should ask my questions elsewhere. Interesting
>  EJ> logic, eh.
>
>no, factual logic. you don't know enough perl to judge whether it knows
>perl. that is something communities do and it has long ago decided
>moronzilla is delusional. you can take many experts' opinions on that or
>your own. but you have decided yourself already.

LOL. I've decided nothing, except my files download properly thanks to
advice I accepted from PG. There is absolutely no reason for you to get as
upset as you are over this matter. 
>
>  EJ> I know that in your own mind you believe you own this NG and speak
>  EJ> for all of its regular participants. I have bad news for you.
>
>i don't own shit here. i own my reputation as a perl hacker and someone
>who gets paid to teach, support, recruit, lecture and other things about
>perl. try to find any credentials about moronzilla. compare her cpan
>code (oops, none), published articles (oops none other than on her
>site), books (oops none nor edited any), talks at conferences (oops,
>none). these are the things you look for in a perl expert. not some
>blithering about my being slow or substr is better than a regex or
>answering the wrong questions. have you noticed not ONE other person
>her regularly supports moronzilla. you can pcik your side but you will
>lose out. feel free but don't ever ask me for help.

Nobody at my end is picking sides. I don't even know why you're having such
a hissy fit. And, yes, I have noted how much flack she gets from a lot of
people here. But, until; now, it hasn't impacted me, so I let it pass by.
>
>  EJ> I'm sure I'll miss the help, but not much if I have to pay for it
>  EJ> by subjecting myself to ill manners and hostile behavior simply
>  EJ> because I took someone's (good) advice.
>
>you would choose the nice idiot over the curmudgeonly expert. i would
>want dr house curing me vs your choosing major burns from mash.

As I've repeated several times, nobody has chosen anybody over anybody else.
Great description of choices, btw. :-))
>
>  EJ> I don't know what your issue is with PG. I don't care.
>
>issue? you haven't even looked at its posting history. have fun for a change.

Why would I have a reason to look at her posting history?
>
>  EJ> I came to this NG with a legit Perl question. I didn't come here
>  EJ> for a flamefest. I also didn't come here to offer lessons on
>  EJ> manners. New participants and participants 'outside' of your
>  EJ> little cabal seem to agree that your behavior is errant, so I find
>  EJ> it difficult to apologize for anything I've written (except, for
>  EJ> my error in posting code).  -- Ed Jay (remove 'M' to respond by
>  EJ> email)
>
>not really. most newbies are fine here. just those that refuse to open
>their eyes or the docs seem to have issues. you seem to be in that
>camp. i recruit perl hackers as part of my perl business and i am sure i
>will never seek you out for employment. i don't want to place people who
>can't see or think for themselves.
>
Don't fret, I wouldn't want to work with you or for you. :-)

Well, you got my curiosity up...off to the archives. I'll be back.
-- 
Ed Jay (remove 'M' to respond by email)


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

Date: Sat, 14 Apr 2007 20:27:48 -0700
From: Ed Jay <edMbj@aes-intl.com>
Subject: Re: How to transparently download multiple files?
Message-Id: <sn6323ltsvcfsl3tt50jgk4omta8d2skpr@4ax.com>

Ed Jay scribed:

>Uri Guttman scribed:
>>issue? you haven't even looked at its posting history. have fun for a change.
>
>Well, you got my curiosity up...off to the archives. I'll be back.

Well, I went through some of the archives and I must say...I'm at a loss for
words. :-))  OK,...Holy shit!!!
-- 
Ed Jay (remove 'M' to respond by email)


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

Date: Sun, 15 Apr 2007 00:28:14 -0400
From: Uri Guttman <uri@stemsystems.com>
Subject: Re: How to transparently download multiple files?
Message-Id: <x7k5web6sh.fsf@mail.sysarch.com>

>>>>> "EJ" == Ed Jay <edMbj@aes-intl.com> writes:

  EJ> Ed Jay scribed:
  >> Uri Guttman scribed:
  >>> issue? you haven't even looked at its posting history. have fun for a change.
  >> 
  >> Well, you got my curiosity up...off to the archives. I'll be back.

  EJ> Well, I went through some of the archives and I must say...I'm at
  EJ> a loss for words. :-)) OK,...Holy shit!!!

*i told you so*. its answer to you was lucky it fell into its miniscule
realm and you fell for its lure. be warned about future responses. that
is why i was so adamant about warning you.

uri

-- 
Uri Guttman  ------  uri@stemsystems.com  -------- http://www.stemsystems.com
--Perl Consulting, Stem Development, Systems Architecture, Design and Coding-
Search or Offer Perl Jobs  ----------------------------  http://jobs.perl.org


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

Date: Sat, 14 Apr 2007 23:13:25 -0700
From: Ed Jay <edMbj@aes-intl.com>
Subject: Re: How to transparently download multiple files?
Message-Id: <vge323dl1cpvtrjp214tr1io4kq3j2v9a4@4ax.com>

Purl Gurl scribed:

>Ed Jay wrote:
>
>> foo bar baz qux wrote:
>>> Ed Jay wrote:
>
>(snipped a lot - read thread for context)
>
>> For the record, I've asked for help on two or three occasions. On each
>> occasion I walked away offended by several responses I received (with no
>> help), except for hints and direction from Purl Gurl that led to both
>> solutions to my programming issues, and to my better understanding of Perl. 
>
>The boy is trolling. This "foo bar baz qux" nym shifts then
>appears for no reason other than to troll. I am his only
>target of abuse. The boy has some personality disorders.
>
I don't think he's the only one trolling. Wink wink.

He's also not the only one guilty of nym shifts.

Out of pure boredom I searched your posting history on google groups. You've
been on a couple of interesting paths. Amazing...simply amazing. 

Uri correctly observes that my minimal understanding of Perl forecloses my
judgment of your explanations and code. But, I read enough history of
corrections to your earlier code to understand how you pissed off these guys
by coming off as a Perl expert back when. And, you must admit that some of
your posts speak to what might be construed as serious paranoia. (I hope it
was paranoia.) And, some of your representations were in fact, inaccurate. I
have little difficulty in understanding why some of these folks,
particularly Perl ultra-experts and purists, might tend to hold you in
disdain. You have assumed a position of expertise and have taken issue with
Perl the religion, e.g., don't use 'strict.' I can especially understand it
when you laugh and play your fiddle and they get caught up in your bait. 

All that said, I find your recent posts to be helpful to myself and others,
despite the barbs you bait and pepper your posts with. In regard to the
help, as I wrote yesterday...go Gurl! Thanks again for your help. 

BTW, I'll say one thing for your oftentimes verbose posts, you're an
excellent writer. :-)

>Your "...led to both solutions...better understanding...." is
>an important statement.
>
>After decades of classroom teaching, I know the best way to
>prompt a person to learn is to "nudge" this person in the
>right direction for individual research and learning.
>
On which we all probably agree. 
-- 
Ed Jay (remove 'M' to respond by email)


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

Date: Sun, 15 Apr 2007 04:42:09 GMT
From: merlyn@stonehenge.com (Randal Schwartz)
Subject: new CPAN modules on Sun Apr 15 2007
Message-Id: <JGIvq9.MrE@zorch.sf-bay.org>

The following modules have recently been added to or updated in the
Comprehensive Perl Archive Network (CPAN).  You can install them using the
instructions in the 'perlmodinstall' page included with your Perl
distribution.

Catalyst-Plugin-tv_interval-0.1
http://search.cpan.org/~fayland/Catalyst-Plugin-tv_interval-0.1/
call tv_interval of Time::HiRes to ease profiling.
----
Catalyst-Plugin-tv_interval-0.2
http://search.cpan.org/~fayland/Catalyst-Plugin-tv_interval-0.2/
call tv_interval of Time::HiRes to ease profiling.
----
Coro-3.6
http://search.cpan.org/~mlehmann/Coro-3.6/
coroutine process abstraction
----
DBIx-Class-Schema-Loader-0.03011
http://search.cpan.org/~blblack/DBIx-Class-Schema-Loader-0.03011/
Dynamic definition of a DBIx::Class::Schema
----
DBIx-Class-Schema-Loader-0.03999_01
http://search.cpan.org/~blblack/DBIx-Class-Schema-Loader-0.03999_01/
Dynamic definition of a DBIx::Class::Schema
----
DBIx-MoCo-0.12
http://search.cpan.org/~jkondo/DBIx-MoCo-0.12/
Light & Fast Model Component
----
Data-Convert-MicrochipTechnology-Float-0.01
http://search.cpan.org/~mrdvt/Data-Convert-MicrochipTechnology-Float-0.01/
Converts Microchip Technology 32 bit float to a number
----
Data-Convert-MicrochipTechnology-Float-0.02
http://search.cpan.org/~mrdvt/Data-Convert-MicrochipTechnology-Float-0.02/
Converts Microchip Technology 32-bit float to a number
----
Form-Processor-0.07
http://search.cpan.org/~hank/Form-Processor-0.07/
validate and process form data
----
Google-Adwords-v1.2.1
http://search.cpan.org/~rohan/Google-Adwords-v1.2.1/
an interface which abstracts the Google Adwords SOAP API
----
Google-Adwords-v1.2.2
http://search.cpan.org/~rohan/Google-Adwords-v1.2.2/
an interface which abstracts the Google Adwords SOAP API
----
Lemonldap-NG-Handler-0.8
http://search.cpan.org/~guimard/Lemonldap-NG-Handler-0.8/
The Apache protection module part of Lemonldap::NG Web-SSO system.
----
Lemonldap-NG-Portal-0.72
http://search.cpan.org/~guimard/Lemonldap-NG-Portal-0.72/
The authentication portal part of Lemonldap::NG Web-SSO system.
----
Lingua-EN-WordsToNumbers-0.2
http://search.cpan.org/~hex/Lingua-EN-WordsToNumbers-0.2/
convert numbers written in English to actual numbers
----
Log-Syslog-Abstract-1.000
http://search.cpan.org/~doneill/Log-Syslog-Abstract-1.000/
Use any available syslog API
----
Mail-Karmasphere-Client-2.08
http://search.cpan.org/~shevek/Mail-Karmasphere-Client-2.08/
Client for Karmasphere Reputation Server
----
Module-ScanDeps-0.73_01
http://search.cpan.org/~smueller/Module-ScanDeps-0.73_01/
Recursively scan Perl code for dependencies
----
Moose-Policy-0.03
http://search.cpan.org/~stevan/Moose-Policy-0.03/
Moose-mounted police
----
dvdrip-0.98.6
http://search.cpan.org/~jred/dvdrip-0.98.6/
----
perl-Hardware-UPS-Perl-0.41
http://search.cpan.org/~drulensot/perl-Hardware-UPS-Perl-0.41/
----
perl-Hardware-UPS-Perl-0.42
http://search.cpan.org/~drulensot/perl-Hardware-UPS-Perl-0.42/


If you're an author of one of these modules, please submit a detailed
announcement to comp.lang.perl.announce, and we'll pass it along.

This message was generated by a Perl program described in my Linux
Magazine column, which can be found on-line (along with more than
200 other freely available past column articles) at
  http://www.stonehenge.com/merlyn/LinuxMag/col82.html

print "Just another Perl hacker," # the original

--
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: Sat, 14 Apr 2007 22:30:17 -0500
From: l v <veatchla@yahoo.com>
Subject: Re: Running perl scripts on the fly
Message-Id: <132370epkd4qv76@news.supernews.com>

jrosik@gmail.com wrote:
> Hi all,
> 
> I would like to run perl scripts as in the following scenario:
> 
> 1. I open a text editor - for example Notepad, Wordpad, Word.
> 2. I paste some text into this text editor.
> 3. I press a magic key - let's say I double press the Shift key.
> 4. A magic window appears and I enter the following script:
>   while (<>) {
>     s/you/You/;
>     print;
>   }
> 5. I execute the script.
> 6. Now there are two text editor windows - one with the source text
> and another with the output text.
> 
> Is this possible?
> 
> One note: I have not saved any document during my scenario!
> 
> Regards,
> Jiri Rosicky
> 

Are you trying to run more complex Perl scripts than what you listed in 
step 4?  If not, the magic key in notepad is Control-H.

What are you really trying to accomplish?

-- 

Len


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

Date: 14 Apr 2007 23:38:34 -0700
From: krakle@visto.com
Subject: Re: Running perl scripts on the fly
Message-Id: <1176619114.004109.261010@b75g2000hsg.googlegroups.com>

On Apr 14, 4:42 pm, jro...@gmail.com wrote:
> Hi all,
>
> I would like to run perl scripts as in the following scenario:
>
> 1. I open a text editor - for example Notepad, Wordpad, Word.
> 2. I paste some text into this text editor.
> 3. I press a magic key - let's say I double press the Shift key.
> 4. A magic window appears and I enter the following script:
>   while (<>) {
>     s/you/You/;
>     print;
>   }
> 5. I execute the script.
> 6. Now there are two text editor windows - one with the source text
> and another with the output text.
>
> Is this possible?
>
> One note: I have not saved any document during my scenario!
>
> Regards,
> Jiri Rosicky

Check out SciTe!



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

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 V11 Issue 339
**************************************


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