[29219] in Perl-Users-Digest

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

Perl-Users Digest, Issue: 463 Volume: 11

daemon@ATHENA.MIT.EDU (Perl-Users Digest)
Mon May 28 09:09:53 2007

Date: Mon, 28 May 2007 06:09:09 -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           Mon, 28 May 2007     Volume: 11 Number: 463

Today's topics:
    Re: A simple way to make a code folder available as a m <rvtol+news@isolution.nl>
    Re: A simple way to make a code folder available as a m <sumonsmailbox@gmail.com>
        Announcing:  ACM SIGAPL APL2007 -- Arrays and Objects <mkent@acm.org>
    Re: Announcing: ACM SIGAPL APL2007 -- Arrays and Object <paul@carlislegroup.com>
    Re: Announcing: ACM SIGAPL APL2007 -- Arrays and Object <paul@carlislegroup.com>
        eBankGame.com Buy WoW gold RS gold WG k gold <eBankGame2010@gmail.com>
    Re: search Web for a file type and download them <skye.shaw@gmail.com>
    Re: SendMail.pm: smtp and gmail <skye.shaw@gmail.com>
    Re: Solve a statistics problem <bik.mido@tiscalinet.it>
    Re: Solve a statistics problem <bik.mido@tiscalinet.it>
        what's the meaning of @{[pop @a]} ? <jck11@msr.pchome.com.tw>
    Re: what's the meaning of @{[pop @a]} ? <hjp-usenet2@hjp.at>
    Re: WWW::Search produces no output <paduille.4061.mumia.w+nospam@earthlink.net>
    Re: WWW::Search produces no output <lev.weissman@creo.com>
        Digest Administrivia (Last modified: 6 Apr 01) (Perl-Users-Digest Admin)

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

Date: Sun, 27 May 2007 17:46:42 +0200
From: "Dr.Ruud" <rvtol+news@isolution.nl>
Subject: Re: A simple way to make a code folder available as a module
Message-Id: <f3cgel.134.1@news.isolution.nl>

skywriter14 schreef:


> [perl -le 'print for @INC']
> That didn't work for me.
> This one did:
> perl -e 'print  join "\n" , @INC'

They should both work without problems. Try:

  perl -wle 'print for @INC'

(In most Windows/DOS shells, you need to use doublequotes.) 

-- 
Affijn, Ruud

"Gewoon is een tijger."


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

Date: 27 May 2007 14:12:39 -0700
From: skywriter14 <sumonsmailbox@gmail.com>
Subject: Re: A simple way to make a code folder available as a module
Message-Id: <1180300359.256207.209780@h2g2000hsg.googlegroups.com>

On May 27, 9:46 pm, "Dr.Ruud" <rvtol+n...@isolution.nl> wrote:
> skywriter14 schreef:
>
> > [perl -le 'print for @INC']
> > That didn't work for me.
> > This one did:
> > perl -e 'print  join "\n" , @INC'
>
> They should both work without problems. Try:
>
>   perl -wle 'print for @INC'
>
> (In most Windows/DOS shells, you need to use doublequotes.)
>
> --
> Affijn, Ruud
>
> "Gewoon is een tijger."

Apologies to Brad and Dr. Ruud:
both of these work
perl -le 'print for @INC'
perl -wle 'print for @INC'

Doesnt work:
perl -el 'print for @INC'

So I learnt, that the e option should be adjucent to the code. You can
say from that I am not a pro when it comes to one liners. I wrote most
of my code on editors. Anyway, can anyone shed little more light about
the gotchas regarding one liners? Or did I discover the only one?



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

Date: Sun, 27 May 2007 14:05:02 -0400
From: Mike Kent <mkent@acm.org>
Subject: Announcing:  ACM SIGAPL APL2007 -- Arrays and Objects
Message-Id: <5btvieF2ubq7aU1@mid.individual.net>



The APL 2007 conference, sponsored by ACM SIGAPL,
has as its principal theme "Arrays and Objects" and,
appropriately, is co-located with OOPSLA 2007, in
Montreal this October.


APL 2007 starts with a tutorial day on Sunday, October 21, followed by a
two-day program on Monday and Tuesday, October 22 and 23.

APLers are welcome to attend OOPSLA program events on Monday and Tuesday
(and OOPSLA attendees are welcome to come to APL program events).

Registrants at APL 2007 can add full OOPSLA attendance at a favorable price.


Dates:

     Sunday              Oct 21       Tutorials
     Monday, Tuesday     Oct 22,23    APL 2007 program
     Monday-Friday       Oct 22-26    OOPSLA program


APL 2007 keynote speaker:  Guy Steele, Sun Microsystems Laboratories


Tutorials

     Using objects within APL

     Array language practicum

     Intro to [language] for other-language users
     ( We expect that there will be at least one introductory
       tutorial on "classic" APL, and hope to have introductions
       to a variety of array languages )





We solicit papers and proposals for tutorials, panels and workshops on
all aspects of array-oriented programming and languages; this year we
have particular interest in the themes of

      integrating the use of arrays and objects

      languages that support the use of arrays as a
      central and thematic technique

      marketplace and education:  making practitioners aware of
      array thinking and array languages


Our interest is in the essential use of arrays in programming in any
language (though our historical concern has been the APL family of
languages:  classic APL, J, K, NIAL, ....).


Dates:

     Tutorial, panel, and workshop proposals, and notice of intent to
     submit papers, are due by Friday June 15, to the Program Chair.

     Contributed papers, not more than 10 pages in length, are due
     by Monday, July 23, to the Program Chair.  Details of form of
     submission can be obtained from the program chair.


     Deadline for detailed tutorial/panel/workshop information TBA.


Cost (to SIGAPL and ACM members, approximate $US, final cost TBA)

     APL2007 registration     $375
     Tutorial day             $250
     Single conference days   $200



Social events:        Opening reception Monday
                       Others TBA


Conference venue:     Palais de Congres, Montreal, Quebec, CANADA
Conference hotel:     Hyatt Regency Montreal


Committee

    General Chair     Guy Laroque          Guy.Laroque@nrcan.gc.ca
    Program Chair     Lynne C. Shaw        Shaw@ACM.org
    Treasurer         Steven H. Rogers     Steve@SHRogers.com

    Publicity         Mike Kent            MKent@ACM.org



Links

    APL2007                  http://www.sigapl.org/apl2007
    OOPSLA 2007              http://www.oopsla.org/oopsla2007
    Palais de Congres        http://www.congresmtl.com/
    Hyatt Regency Montreal   http://montreal.hyatt.com

    Guy Steele            http://research.sun.com/people/mybio.php?uid=25706

    ACM SIGAPL            http://www.sigapl.org


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

Date: 28 May 2007 03:54:56 -0700
From: Paul Mansour <paul@carlislegroup.com>
Subject: Re: Announcing: ACM SIGAPL APL2007 -- Arrays and Objects
Message-Id: <1180349696.790503.34950@q66g2000hsg.googlegroups.com>

Mike,

The OOPSLA site has a list of official co-located conferences which
does not (yet) show the APL conference. Is the SigAPL conference going
to be an officially co-located event with respect to OOPSLA?



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

Date: 28 May 2007 04:13:13 -0700
From: Paul Mansour <paul@carlislegroup.com>
Subject: Re: Announcing: ACM SIGAPL APL2007 -- Arrays and Objects
Message-Id: <1180350793.296766.43310@p77g2000hsh.googlegroups.com>

Mike,

The APL2007 link does not go anywhere.



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

Date: 27 May 2007 11:54:57 -0700
From: "ebankgame.com" <eBankGame2010@gmail.com>
Subject: eBankGame.com Buy WoW gold RS gold WG k gold
Message-Id: <1180292097.801809.150820@i13g2000prf.googlegroups.com>

About the gold price for World of Warcraft EU or US:(+10% free
Gold!!!)

EU Servers
All Servers Gold 1000+100=USD 20.9 / EUR 19.95
All Servers Gold 1500+150=USD 29.37 / EUR 27.72
All Servers Gold 2000+200=USD 38.28 / EUR 36.54
All Servers Gold 3000+300=USD 56.76 / EUR 54.18
All Servers Gold 4000+400=USD 74.8 / EUR 71.4
All Servers Gold 5000+500=USD 93.5 / EUR 89.25
All Servers Gold 6000+600=USD 110.88 / EUR 105.84
All Servers Gold 8000+800=USD 38.28 / EUR 36.54
All Servers Gold 10000+1000=USD 133.76 / EUR 127.68


1.The Fastest Delivery SPeed on all Servers in 15mins-8 hours since
your payment arrives. We have 2,000,000 gold in stock on EU servers.
The gold can be sent to you in 15mins-8 HOURS.If the delivery is
delayed over 8 hours, you can request a refund.^^

2.On Sale(Special Discounts on some servers) Sometimes, there will be
some servers, with special discounts, with extremely NICE PRice on
some certain servers.


Happy shopping!
Sincerely,

  www.eBankGame.com

E-mail:ebankgame2010@gmail.com
MSN:ebagame2010@msn.com
ICQ:468873592



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

Date: 28 May 2007 02:32:02 -0700
From: "Skye Shaw!@#$" <skye.shaw@gmail.com>
Subject: Re: search Web for a file type and download them
Message-Id: <1180344722.099430.185600@o11g2000prd.googlegroups.com>

On May 27, 5:16 am, MoshiachNow <lev.weiss...@creo.com> wrote:
> HI=D7=AA
> For a project I'm working for, I now manualy search Web for strings
> ".ps.Z" (compressed postscript files).Normally these are found on FTP://
> . Then I go page by page and download these files one by one,then
> process them.
> I need to  create code that will do it automatically and download

Have a look at the wget program: http://www.gnu.org/software/wget/



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

Date: 28 May 2007 02:54:18 -0700
From: "Skye Shaw!@#$" <skye.shaw@gmail.com>
Subject: Re: SendMail.pm: smtp and gmail
Message-Id: <1180346058.691793.204430@z28g2000prd.googlegroups.com>

On May 25, 5:15 am, Davidcollins...@gmail.com wrote:
> Hi,
>
> I have just found the SendMail.pm perl module. I have been using it
> for about a week to email myself backups of my important documents. I
> am currently using it from withing a university network so setting up
> the smtp didn't require much.
>
> I would like to be able to use it to sent mail using my gmail account.
> I have done a bit of googling  and so far I have come up with one post
huh, what...
http://www.google.com/search?q=SMTP+SSL+Perl

> saying that this module doesn't have ssl yet, but that was two years

Net::SMTP::SSL.

> or so ago. Is this still the case? Or is it possible to connect to the
> gmail smtp server?

Since you are using gmail, you might as well say screw plain ol' SMTP
and use one of the gmail modules.  They'll allow you to "easily" take
advantage of the "features" provided by our good friends at gmail.




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

Date: Mon, 28 May 2007 13:31:58 +0200
From: Michele Dondi <bik.mido@tiscalinet.it>
Subject: Re: Solve a statistics problem
Message-Id: <v9fl53phgd05gt6453q9jd1e0bpo1ukk3u@4ax.com>

On Fri, 25 May 2007 21:07:09 -0400, "seth brundle"
<brundlefly76@hotmail.com> wrote:

>> Thanks for speaking on their behalf.
>
>> In this case, Ted speaks for me, too.
>
>Maybe you two can get together in a chat room or something and talk about 
>how this experience made you feel. 

I suppose they have better things to do. /me too. Yet I support them
and I am upset at your repeated insulting attempts. BTW: you didn't
comment on the fish I gave you (although I claimed myself it was
slightly rotten in the first place) did it help you? Did you improve
it?


Michele
-- 
{$_=pack'B8'x25,unpack'A8'x32,$a^=sub{pop^pop}->(map substr
(($a||=join'',map--$|x$_,(unpack'w',unpack'u','G^<R<Y]*YB='
 .'KYU;*EVH[.FHF2W+#"\Z*5TI/ER<Z`S(G.DZZ9OX0Z')=~/./g)x2,$_,
256),7,249);s/[^\w,]/ /g;$ \=/^J/?$/:"\r";print,redo}#JAPH,


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

Date: Mon, 28 May 2007 13:32:52 +0200
From: Michele Dondi <bik.mido@tiscalinet.it>
Subject: Re: Solve a statistics problem
Message-Id: <pdfl53h4s0u1shb940qlv3ebdn2am13lnm@4ax.com>

On 24 May 2007 21:29:09 -0700, "brundlefly76@hotmail.com"
<brundlefly76@hotmail.com> wrote:

>> Thanks for so clearly identifying your lack of respect
>> for all of the people here.
>
>Thanks for speaking on their behalf.

Yes, thank Tad! Do not worry about the freak...


Michele
-- 
{$_=pack'B8'x25,unpack'A8'x32,$a^=sub{pop^pop}->(map substr
(($a||=join'',map--$|x$_,(unpack'w',unpack'u','G^<R<Y]*YB='
 .'KYU;*EVH[.FHF2W+#"\Z*5TI/ER<Z`S(G.DZZ9OX0Z')=~/./g)x2,$_,
256),7,249);s/[^\w,]/ /g;$ \=/^J/?$/:"\r";print,redo}#JAPH,


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

Date: Sun, 27 May 2007 22:09:30 +0800
From: "jck11" <jck11@msr.pchome.com.tw>
Subject: what's the meaning of @{[pop @a]} ?
Message-Id: <f3c3eq$h4c$1@netnews.hinet.net>

Can somebody explain it for me why the resulte of the code is 'ef'.
I just don't understand the @{[pop @a]} mean.
@a=('a', 'b' , 'cd' , 'ef');
print @{[pop @a]}, "\n"; 




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

Date: Sun, 27 May 2007 17:08:05 +0200
From: "Peter J. Holzer" <hjp-usenet2@hjp.at>
Subject: Re: what's the meaning of @{[pop @a]} ?
Message-Id: <slrnf5j7ml.lrb.hjp-usenet2@zeno.hjp.at>

On 2007-05-27 14:09, jck11 <jck11@msr.pchome.com.tw> wrote:
> Can somebody explain it for me why the resulte of the code is 'ef'.
> I just don't understand the @{[pop @a]} mean.
> @a=('a', 'b' , 'cd' , 'ef');
> print @{[pop @a]}, "\n"; 

If you don't understand a complex idiom in a programming language it
usually helps to break it into little parts (reading from the inside
out):

pop @a you should understand. If not, read perldoc -f pop.

[ ... ] constructs an anonymous array and returns a reference to it.

@{ ... } dereferences a reference to an array. (both are explained in
perlref and perlreftut)

So in this case @{[ ... ]} is rather superfluous, since you end up with
a copy of the list you started with, giving you the same output as if you
had written 

print pop @a, "\n";

in the first place. 

The @{[ ... ]} construct can be used to embed arbitrary perl expressions
into a double-quoted string:

print "the last element was @{[pop @a]} but now it isn't any more\n";

	hp

-- 
   _  | Peter J. Holzer    | I know I'd be respectful of a pirate 
|_|_) | Sysadmin WSR       | with an emu on his shoulder.
| |   | hjp@hjp.at         |
__/   | http://www.hjp.at/ |	-- Sam in "Freefall"


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

Date: Sun, 27 May 2007 19:37:32 GMT
From: "Mumia W." <paduille.4061.mumia.w+nospam@earthlink.net>
Subject: Re: WWW::Search produces no output
Message-Id: <06l6i.10709$296.5242@newsread4.news.pas.earthlink.net>

On 05/27/2007 07:50 AM, MoshiachNow wrote:
> HI,
> 
> I wonder why the following code produces no output on my XP ?Modules
> seem to be properly installed.
> ===============================
> require WWW::Search;
> 
> my $sQuery = 'postscript';
> my $oSearch = new WWW::Search('AltaVista');
> $oSearch->native_query(WWW::Search::escape_query($sQuery));
> 
> while (my $oResult = $oSearch->next_result())   {
>       print $oResult->url, "\n";
>       sleep 1;
> } # while
> 

It works for me--both that code and a slightly modified version that 
goes through my caching proxy. Perhaps you should enable debugging output.

(And mine *shouldn't* work properly because I have older versions of 
some modules than what WWW::Search requires, and I had to force CPAN.pm 
to install.)




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

Date: 28 May 2007 05:30:49 -0700
From: MoshiachNow <lev.weissman@creo.com>
Subject: Re: WWW::Search produces no output
Message-Id: <1180355449.035761.166660@h2g2000hsg.googlegroups.com>


> It works for me--both that code and a slightly modified version that
> goes through my caching proxy. Perhaps you should enable debugging output.
>
> (And mine *shouldn't* work properly because I have older versions of
> some modules than what WWW::Search requires, and I had to force CPAN.pm
> to install.)

Thanks

Still does not worlk for me.Debug did not show anything.
Possibly anything to do with our firewall settings ?



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

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 463
**************************************


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