[31122] in Perl-Users-Digest

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

Perl-Users Digest, Issue: 2367 Volume: 11

daemon@ATHENA.MIT.EDU (Perl-Users Digest)
Sat Apr 25 03:09:46 2009

Date: Sat, 25 Apr 2009 00: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           Sat, 25 Apr 2009     Volume: 11 Number: 2367

Today's topics:
        access variables from array and set it back <slick.users@gmail.com>
    Re: access variables from array and set it back <jurgenex@hotmail.com>
    Re: access variables from array and set it back <slick.users@gmail.com>
    Re: access variables from array and set it back <jurgenex@hotmail.com>
    Re: Exiting given via next skendric@fhcrc.org
    Re: F<utf8.pm> is evil (was: XML::LibXML UTF-8 toString <whynot@pozharski.name>
        How to check that a filehandle is open? <nospam-abuse@ilyaz.org>
    Re: Is there a better way to convert foreign characters (Tim McDaniel)
    Re: Is there a module to transliterate Russian and Ukra <nospam-abuse@ilyaz.org>
        new CPAN modules on Sat Apr 25 2009 (Randal Schwartz)
        Perl is too slow - A statement mercurish@googlemail.com
    Re: Perl is too slow - A statement <uri@stemsystems.com>
    Re: pod2ipf in Perl 5.10? <nospam-abuse@ilyaz.org>
    Re: Sub indentation trouble <smallpond@juno.com>
    Re: Sub indentation trouble <bozo_le_clown@wherever.you.want.com>
    Re: Sub indentation trouble <nospam-abuse@ilyaz.org>
    Re: unexplained warning message in m{...} regexp <nospam-abuse@ilyaz.org>
    Re: unexplained warning message in m{...} regexp <xhoster@gmail.com>
    Re: unexplained warning message in m{...} regexp <xhoster@gmail.com>
        Digest Administrivia (Last modified: 6 Apr 01) (Perl-Users-Digest Admin)

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

Date: Fri, 24 Apr 2009 16:12:12 -0700 (PDT)
From: Slickuser <slick.users@gmail.com>
Subject: access variables from array and set it back
Message-Id: <2c374bec-05b5-41f3-8f7b-6cc1b9bf8d4c@l16g2000pra.googlegroups.com>

I have these variables:
my $path1 = 'c:\abc';
my $filea = 'Y:\a.txt';
my $namex = 'Dr. X';

I want to push this into a hash array or array of variables & values.

Later on, I want loop through these array and modify the value and set
back to the variable.


do a loop now
get variable back
change value

$path1 = 'c:\newpath';
$filea = 'Y:\newfilea.txt';
$namex = 'Dr. Y';

How can I achieve something like this? Thanks.


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

Date: Fri, 24 Apr 2009 16:29:51 -0700
From: Jürgen Exner <jurgenex@hotmail.com>
Subject: Re: access variables from array and set it back
Message-Id: <o8i4v4dqo42cc0bovinkoo190j43khjvoi@4ax.com>

Slickuser <slick.users@gmail.com> wrote:
>I have these variables:
>my $path1 = 'c:\abc';
>my $filea = 'Y:\a.txt';
>my $namex = 'Dr. X';
>
>I want to push this into a hash array or array of variables & values.

May I suggest that you get your terminology straightened out first? It
makes communication so much easier if everyone uses the same terms for
the same things.

There are hashes: they are mappings from strings to scalars. In the old
days they were also called associative arrays.
There are arrays: they are mappings from (consecutive whole) numbers to
scalars.
There are variables: they can be any of scalar, array, hash, and a few
other types.
And there are values: they are typically stored in variables. 

Now, having said that, there are no arrays of variables. 

>Later on, I want loop through these array and modify the value and set
>back to the variable.
>
>do a loop now
>get variable back
>change value
>
>$path1 = 'c:\newpath';
>$filea = 'Y:\newfilea.txt';
>$namex = 'Dr. Y';
>
>How can I achieve something like this? Thanks.

Wild guess: maybe you are looking for a simple hash?
%myhash = (path1 => 'c:\newpath', 
		filea => 'Y:\newfilea.txt',
		namex => 'Dr. Y};

You can loop through the entries by 
	foreach (keys(%myhash) {
		print $myhash{$_};
	}
And of course you can assign and modify the values as you please, too.

Or are you looking for references, i.e. you want to store a reference to
each of your variables in such a hash or an array and then work with
those references?

jue


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

Date: Fri, 24 Apr 2009 17:46:00 -0700 (PDT)
From: Slickuser <slick.users@gmail.com>
Subject: Re: access variables from array and set it back
Message-Id: <33ec2752-2f9d-4949-a1c6-54d0617b1c7b@d19g2000prh.googlegroups.com>

I want to reference the variables and change the value to that
reference variable.

On Apr 24, 4:29=A0pm, J=FCrgen Exner <jurge...@hotmail.com> wrote:
> Slickuser <slick.us...@gmail.com> wrote:
> >I have these variables:
> >my $path1 =3D 'c:\abc';
> >my $filea =3D 'Y:\a.txt';
> >my $namex =3D 'Dr. X';
>
> >I want to push this into a hash array or array of variables & values.
>
> May I suggest that you get your terminology straightened out first? It
> makes communication so much easier if everyone uses the same terms for
> the same things.
>
> There are hashes: they are mappings from strings to scalars. In the old
> days they were also called associative arrays.
> There are arrays: they are mappings from (consecutive whole) numbers to
> scalars.
> There are variables: they can be any of scalar, array, hash, and a few
> other types.
> And there are values: they are typically stored in variables.
>
> Now, having said that, there are no arrays of variables.
>
> >Later on, I want loop through these array and modify the value and set
> >back to the variable.
>
> >do a loop now
> >get variable back
> >change value
>
> >$path1 =3D 'c:\newpath';
> >$filea =3D 'Y:\newfilea.txt';
> >$namex =3D 'Dr. Y';
>
> >How can I achieve something like this? Thanks.
>
> Wild guess: maybe you are looking for a simple hash?
> %myhash =3D (path1 =3D> 'c:\newpath',
> =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 filea =3D> 'Y:\newfilea.txt',
> =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 namex =3D> 'Dr. Y};
>
> You can loop through the entries by
> =A0 =A0 =A0 =A0 foreach (keys(%myhash) {
> =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 print $myhash{$_};
> =A0 =A0 =A0 =A0 }
> And of course you can assign and modify the values as you please, too.
>
> Or are you looking for references, i.e. you want to store a reference to
> each of your variables in such a hash or an array and then work with
> those references?
>
> jue



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

Date: Fri, 24 Apr 2009 18:20:11 -0700
From: Jürgen Exner <jurgenex@hotmail.com>
Subject: Re: access variables from array and set it back
Message-Id: <i6p4v4lbeo7h09vp2a11346k2o9dvqo1of@4ax.com>

[Re-ordered into standard reading order]
Slickuser <slick.users@gmail.com> wrote:
>On Apr 24, 4:29 pm, Jürgen Exner <jurge...@hotmail.com> wrote:
>> Slickuser <slick.us...@gmail.com> wrote:
>> >I have these variables:
>> >my $path1 = 'c:\abc';
>> >my $filea = 'Y:\a.txt';
>> >my $namex = 'Dr. X';
>>
>> >I want to push this into a hash array or array of variables & values.
>>
>> May I suggest that you get your terminology straightened out first? It
>> makes communication so much easier if everyone uses the same terms for
>> the same things.
[...]
>> Or are you looking for references, i.e. you want to store a reference to
>> each of your variables in such a hash or an array and then work with
>> those references?

>I want to reference the variables and change the value to that
>reference variable.

Then please see "perldoc perlreftut" and "perldoc perlref".

jue


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

Date: Fri, 24 Apr 2009 09:35:33 -0700 (PDT)
From: skendric@fhcrc.org
Subject: Re: Exiting given via next
Message-Id: <ca091982-464a-4067-af33-604756dc0980@y33g2000prg.googlegroups.com>

ahh, ok.  light bulbs.

"Repetition is the key to learning".  thank you for repeating the gist
of what you were trying to convey, using different words

i understand now and can see how to continue.  thank you for your
detailed assistance,

--sk

stuart kendrick
fhcrc



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

Date: Sat, 25 Apr 2009 01:23:31 +0300
From: Eric Pozharski <whynot@pozharski.name>
Subject: Re: F<utf8.pm> is evil (was: XML::LibXML UTF-8 toString() -vs- nodeValue())
Message-Id: <slrngv4evl.nvt.whynot@orphan.zombinet>

On 2009-04-24, Ben Morrow <ben@morrow.me.uk> wrote:
>
> Quoth Eric Pozharski <whynot@pozharski.name>:
>> On 2009-04-22, Peter J. Holzer <hjp-usenet2@hjp.at> wrote:
>> 
>> > *and* whatever else may be affected. You have to remember one thing
>> > only: Your source code consists of Unicode characters encoded in UTF-8
>> > (or UTF-EBCDIC). Period. Nothing else. Clean and simple.
>> 
>> I wasn't about what to remember.  I'm about "doing one thing".  I think,
>> that neither F<utf8.pm> nor F<encoding.pm> do one thing.
>
> Peter has just pointed out that utf8.pm does exactly one thing: it
> pushes a :utf8 (*not* :encoding(utf8): this is important, as it means
> your source mustn't contain invalid sequences) layer on the DATA
> filehandle at the point it is called. Everything else that happens is
> simply a natural consequence of that.

Then what I do: do I turn the key or do I open the door?

*SKIP*
>> > If you can write your programs in English, please do. Especially if you
>> 
>> That "if" (the latter one) is somewhat offending.
>> 
>> > plan to make it open source. Almost every programmer on the world has at
>> 
>> That "open" is somewhat offending.
>
> How so? Those planning to release as open source need to be more
> careful to make their code comprehensible to people they've never met.
> Someone writing internal proprietary code for a company where $Language
> is spoken can reasonably assume any maintainance programmer will speak
> $Language; this doesn't apply to open-source code.

I just distinguish "open" and "free".

>> > least a basic grasp of English. But if for some reason you have to write
>> 
>> "Quotation needed (tm)".  Or define "programmer".
>
> Name two languages whose primary documentation isn't in English. (Two
> because I can name one: Ruby. Even so, I would wager most Ruby code is
> written in English.)

РАЯ and РАПИРА.  I had thought about Š¤ŠžŠšŠŠ›, but just discovered that
while it's documentation (reachable for me) was in pure Russian (while
the language itself was pure English) it happend to be copied(?)
(stolen(?) or bought(?)) from FOCAL (of 1969).  OTOH, the implementation
was surely broken;  then either that was reimplementation (so it
constitutes a stand alone language) or Š‘Šš-0010 was actually PDP-8?
Puzzled.

And one more;  both languages have their syntax russianized, but the
symbols aren't.  Weird.


-- 
Torvalds' goal for Linux is very simple: World Domination
Stallman's goal for GNU is even simpler: Freedom


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

Date: Sat, 25 Apr 2009 06:11:38 GMT
From: Ilya Zakharevich <nospam-abuse@ilyaz.org>
Subject: How to check that a filehandle is open?
Message-Id: <slrngv5acq.b36.nospam-abuse@chorin.math.berkeley.edu>

Re the subject: 10 years ago I would check

   defined fileno $fh

But nowadays, filehandle does not necessarily has an OS file
descriptor associated to it...

I could also check *$fh{IO} - but it would be defined if, e.g., $fh is
\*FOO, and a bareword FOO was *mentioned* in the code at place where
filehandle is expected (the code may not be ever executed, just
mentioning is enough).  Moreover, I expect that *$fh{IO} survives
after close()ure of $fh.

I could do

  defined eval { seek $fh, 0, 1 }

but the answer is ALWAYS defined (although sometimes ''), and, to add
insult to injury, would send a warning in my wake...

So: what should one do to check that $fh is open()?

Thanks,
Ilya


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

Date: Fri, 24 Apr 2009 14:53:43 +0000 (UTC)
From: tmcd@panix.com (Tim McDaniel)
Subject: Re: Is there a better way to convert foreign characters?
Message-Id: <gssjpn$nbn$1@reader1.panix.com>

In article <75buddF17np90U1@mid.individual.net>,
Gunnar Hjalmarsson  <noreply@gunnar.cc> wrote:
>Tim McDaniel wrote:
>> I agree with the other posters who suggest using standard modules, 
>> like Undiacritical or whatever it was.
>
>Those are not standard modules.

*sigh*   Not "standard" as in distributed with Perl.
But Text::Undiacritic is in CPAN and is therefore easy to get.

-- 
Tim McDaniel, tmcd@panix.com


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

Date: Sat, 25 Apr 2009 01:16:10 GMT
From: Ilya Zakharevich <nospam-abuse@ilyaz.org>
Subject: Re: Is there a module to transliterate Russian and Ukrainian cyrillic unicode to phonetic ASCII?
Message-Id: <slrngv4p2q.8n4.nospam-abuse@chorin.math.berkeley.edu>

On 2009-04-23, News123 <news123@free.fr> wrote:
> RedGrittyBrick wrote:
>> 
>> News123 wrote:
>>
>>> I'd like to translate some cyrillic file names into file names, that are
>>> ASCII only.
>> 
>> I wonder why? AFAIK the most commonly used operating systems nowadays
>> use Unicode for filenames. Of course this doesn't help if you don't have
>> fonts and input methods for the character ranges in question.
>> 
> Old portable mp3 players, old DVD-players / car stereos / and stereos
> being capable of playing mp3s are not really  'gifted'  playing much
> more then ASCII some even refuse / skip cyrillic file names.

I use

  audio_rename -@csR .

Hope this helps,
Ilya


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

Date: Sat, 25 Apr 2009 04:42:27 GMT
From: merlyn@stonehenge.com (Randal Schwartz)
Subject: new CPAN modules on Sat Apr 25 2009
Message-Id: <KIn3qr.13rM@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.

Apache-GeoIP-1.99
http://search.cpan.org/~rkobes/Apache-GeoIP-1.99/
Look up country by IP Address 
----
Apache2-WURFLFilter-1.55
http://search.cpan.org/~ifuschini/Apache2-WURFLFilter-1.55/
is a Apache Mobile Filter that manage content (text & image) to the correct mobile device 
----
App-Rad-1.02
http://search.cpan.org/~garu/App-Rad-1.02/
Rapid (and easy!) creation of command line applications 
----
App-Rad-1.03
http://search.cpan.org/~garu/App-Rad-1.03/
Rapid (and easy!) creation of command line applications 
----
Bio-DOOP-DOOP-1.02
http://search.cpan.org/~tibi/Bio-DOOP-DOOP-1.02/
DOOP API main module 
----
CGI-Auth-Basic-1.21
http://search.cpan.org/~accardo/CGI-Auth-Basic-1.21/
Basic CGI authentication interface. 
----
CPAN-FindDependencies-2.31
http://search.cpan.org/~dcantrell/CPAN-FindDependencies-2.31/
find dependencies for modules on the CPAN 
----
CPAN-Testers-WWW-Reports-Mailer-0.16
http://search.cpan.org/~barbie/CPAN-Testers-WWW-Reports-Mailer-0.16/
CPAN Testers Reports Mailer 
----
Cache-Cascade-0.05
http://search.cpan.org/~nuffin/Cache-Cascade-0.05/
Get/set values to/from a group of caches, with some advanced semantics. 
----
Catalyst-Authentication-Credential-Authen-Simple-0.04
http://search.cpan.org/~jlmartin/Catalyst-Authentication-Credential-Authen-Simple-0.04/
Verify credentials with the Authen::Simple framework 
----
Catalyst-Authentication-Credential-Authen-Simple-0.05
http://search.cpan.org/~jlmartin/Catalyst-Authentication-Credential-Authen-Simple-0.05/
Verify credentials with the Authen::Simple framework 
----
Catalyst-Controller-WrapCGI-0.0028
http://search.cpan.org/~rkitover/Catalyst-Controller-WrapCGI-0.0028/
Run CGIs in Catalyst 
----
Catalyst-Plugin-DefaultEnd-0.07
http://search.cpan.org/~flora/Catalyst-Plugin-DefaultEnd-0.07/
DEPRECATED Sensible default end action. 
----
Catalyst-Plugin-Session-Store-File-0.16
http://search.cpan.org/~mramberg/Catalyst-Plugin-Session-Store-File-0.16/
File storage backend for session data. 
----
Class-MOP-0.82_01
http://search.cpan.org/~drolsky/Class-MOP-0.82_01/
A Meta Object Protocol for Perl 5 
----
Class-MOP-0.82_02
http://search.cpan.org/~drolsky/Class-MOP-0.82_02/
A Meta Object Protocol for Perl 5 
----
DBICx-Modeler-0.003
http://search.cpan.org/~rkrimen/DBICx-Modeler-0.003/
A Moose-based model layer over DBIx::Class 
----
DBIx-Class-Snowflake-0.10
http://search.cpan.org/~mfollett/DBIx-Class-Snowflake-0.10/
----
DBIx-Publish-0.02
http://search.cpan.org/~adamk/DBIx-Publish-0.02/
Publish data from DBI as a SQLite database 
----
Data-Transform-Zlib-0.01
http://search.cpan.org/~martijn/Data-Transform-Zlib-0.01/
A Filter for RFC195[0-2] 
----
Elive-0.09
http://search.cpan.org/~warringd/Elive-0.09/
Elluminate Live (c) client library 
----
Gedcom-1.16
http://search.cpan.org/~pjcj/Gedcom-1.16/
a module to manipulate Gedcom genealogy files 
----
HTML-TreeBuilder-XPath-0.10
http://search.cpan.org/~mirod/HTML-TreeBuilder-XPath-0.10/
add XPath support to HTML::TreeBuilder 
----
IkiWiki-Plugin-syntax-0.25
http://search.cpan.org/~vmoral/IkiWiki-Plugin-syntax-0.25/
Add syntax highlighting to ikiwiki 
----
Image-JpegCheck-0.03
http://search.cpan.org/~tokuhirom/Image-JpegCheck-0.03/
is this jpeg? 
----
Image-JpegCheck-0.04
http://search.cpan.org/~tokuhirom/Image-JpegCheck-0.04/
is this jpeg? 
----
Image-JpegCheck-0.05
http://search.cpan.org/~tokuhirom/Image-JpegCheck-0.05/
is this jpeg? 
----
Image-JpegCheck-0.06
http://search.cpan.org/~tokuhirom/Image-JpegCheck-0.06/
is this jpeg? 
----
LEOCHARRE-CLI2-1.05
http://search.cpan.org/~leocharre/LEOCHARRE-CLI2-1.05/
quick cli addons 
----
LEOCHARRE-CLI2-1.06
http://search.cpan.org/~leocharre/LEOCHARRE-CLI2-1.06/
quick cli addons 
----
Log-Report-0.23
http://search.cpan.org/~markov/Log-Report-0.23/
report a problem, pluggable handlers and language support 
----
Macrame-0.09
http://search.cpan.org/~davidnico/Macrame-0.09/
filter-time recursive macro framework providing the feature preventing Perl from being "a Lisp." 
----
Mail-ClamAV-0.24
http://search.cpan.org/~converter/Mail-ClamAV-0.24/
Perl extension for the clamav virus scanner 
----
Mail-ClamAV-0.25
http://search.cpan.org/~converter/Mail-ClamAV-0.25/
Perl extension for the clamav virus scanner 
----
Mail-SNCF-0.01
http://search.cpan.org/~iderrick/Mail-SNCF-0.01/
A parser for booking messages sent by the French rail company 
----
Module-Install-AssertOS-0.06
http://search.cpan.org/~bingos/Module-Install-AssertOS-0.06/
A Module::Install extension to require that we are running on a particular OS 
----
Moose-0.75_01
http://search.cpan.org/~drolsky/Moose-0.75_01/
A postmodern object system for Perl 5 
----
MooseX-Emulate-Class-Accessor-Fast-0.00802
http://search.cpan.org/~flora/MooseX-Emulate-Class-Accessor-Fast-0.00802/
Emulate Class::Accessor::Fast behavior using Moose attributes 
----
MooseX-Role-Parameterized-0.05
http://search.cpan.org/~sartak/MooseX-Role-Parameterized-0.05/
parameterized roles 
----
MooseX-Singleton-0.16
http://search.cpan.org/~drolsky/MooseX-Singleton-0.16/
turn your Moose class into a singleton 
----
MooseX-Singleton-0.17
http://search.cpan.org/~sartak/MooseX-Singleton-0.17/
turn your Moose class into a singleton 
----
Net-ARP-1.0.4
http://search.cpan.org/~crazydj/Net-ARP-1.0.4/
Perl extension for creating ARP packets 
----
Net-Camera-Edimax-IC1500-1.006
http://search.cpan.org/~meh/Net-Camera-Edimax-IC1500-1.006/
----
Net-Camera-Edimax-IC1500-1.008
http://search.cpan.org/~meh/Net-Camera-Edimax-IC1500-1.008/
----
Net-Google-Code-0.03
http://search.cpan.org/~sunnavy/Net-Google-Code-0.03/
a simple client library for google code 
----
OP-0.211
http://search.cpan.org/~aayars/OP-0.211/
Compact Perl 5 class prototyping with object persistence 
----
POE-Component-Win32-ChangeNotify-1.18
http://search.cpan.org/~bingos/POE-Component-Win32-ChangeNotify-1.18/
A POE wrapper around Win32::ChangeNotify. 
----
Padre-Plugin-Perl6-0.29
http://search.cpan.org/~azawawi/Padre-Plugin-Perl6-0.29/
Padre plugin for Perl6 
----
Padre-Plugin-Perl6-0.30
http://search.cpan.org/~azawawi/Padre-Plugin-Perl6-0.30/
Padre plugin for Perl6 
----
Padre-Plugin-Perl6-0.31
http://search.cpan.org/~azawawi/Padre-Plugin-Perl6-0.31/
Padre plugin for Perl6 
----
Padre-Plugin-Perl6-0.32
http://search.cpan.org/~azawawi/Padre-Plugin-Perl6-0.32/
Padre plugin for Perl6 
----
Parallel-Depend-4.00
http://search.cpan.org/~lembark/Parallel-Depend-4.00/
: Parallel-dependent dispatch of perl or shell code. 
----
QDBM_File-1.12
http://search.cpan.org/~yamato/QDBM_File-1.12/
Tied access to Quick Database Manager 
----
Quiz-Flashcards-0.04b
http://search.cpan.org/~mithaldu/Quiz-Flashcards-0.04b/
Cross-platform modular flashcard GUI application 
----
Quiz-Flashcards-Audiobanks-Japanese_Words_Radicals-0.01b
http://search.cpan.org/~mithaldu/Quiz-Flashcards-Audiobanks-Japanese_Words_Radicals-0.01b/
Sound files of japanese words for use with Quiz::Flashcards, includes only radicals 
----
Quiz-Flashcards-Sets-Hiragana-Romaji_Simple-0.04b
http://search.cpan.org/~mithaldu/Quiz-Flashcards-Sets-Hiragana-Romaji_Simple-0.04b/
Flashcard set with the basic 46 japanese hiragana 
----
Quiz-Flashcards-Sets-Kanji_Radicals-English-0.01b
http://search.cpan.org/~mithaldu/Quiz-Flashcards-Sets-Kanji_Radicals-English-0.01b/
Flashcard set with the basic 214 japanese radicals 
----
Quiz-Flashcards-Sets-Katakana-Romaji_Simple-0.01b
http://search.cpan.org/~mithaldu/Quiz-Flashcards-Sets-Katakana-Romaji_Simple-0.01b/
Flashcard set with the basic 46 japanese katakana 
----
RT-Extension-SLA-0.03
http://search.cpan.org/~ruz/RT-Extension-SLA-0.03/
Service Level Agreements for RT 
----
SSH-Batch-0.014
http://search.cpan.org/~agent/SSH-Batch-0.014/
Cluster operations based on parallel SSH, set and interval arithmetic 
----
SSH-Batch-0.015
http://search.cpan.org/~agent/SSH-Batch-0.015/
Cluster operations based on parallel SSH, set and interval arithmetic 
----
SSH-Batch-0.016
http://search.cpan.org/~agent/SSH-Batch-0.016/
Cluster operations based on parallel SSH, set and interval arithmetic 
----
Syntax-Highlight-Perl6-0.043
http://search.cpan.org/~azawawi/Syntax-Highlight-Perl6-0.043/
Perl 6 Syntax Highlighter 
----
Syntax-Highlight-Perl6-0.43
http://search.cpan.org/~azawawi/Syntax-Highlight-Perl6-0.43/
Perl 6 Syntax Highlighter 
----
Term-GentooFunctions-1.3
http://search.cpan.org/~jettero/Term-GentooFunctions-1.3/
provides gentoo's einfo, ewarn, eerror, ebegin and eend. 
----
Term-UI-0.20
http://search.cpan.org/~kane/Term-UI-0.20/
Term::ReadLine UI made easy 
----
Test-Ping-0.04
http://search.cpan.org/~xsawyerx/Test-Ping-0.04/
Testing pings using Net::Ping 
----
Tie-UrlEncoder-0.02
http://search.cpan.org/~davidnico/Tie-UrlEncoder-0.02/
interpolatably URL-encode strings 
----
TipJar-MTA-0.32
http://search.cpan.org/~davidnico/TipJar-MTA-0.32/
outgoing SMTP with exponential random backoff. 
----
Tree-DAG_Node-XPath-0.10
http://search.cpan.org/~mirod/Tree-DAG_Node-XPath-0.10/
Add XPath support to Tree::DAG_Node 
----
WWW-FreshBooks-API-0.1.0
http://search.cpan.org/~mindhack/WWW-FreshBooks-API-0.1.0/
Perl Interface to the Freshbooks 2.1 API! 
----
WWW-Mechanize-FormFiller-0.10
http://search.cpan.org/~corion/WWW-Mechanize-FormFiller-0.10/
framework to automate HTML forms 
----
WWW-Salesforce-0.11
http://search.cpan.org/~capoeirab/WWW-Salesforce-0.11/
this class provides a simple abstraction layer between SOAP::Lite and Salesforce.com. 
----
WebService-Careerjet-0.10
http://search.cpan.org/~jeteve/WebService-Careerjet-0.10/
Perl interface to Careerjet's public job offers search API 
----
XML-Compile-1.04
http://search.cpan.org/~markov/XML-Compile-1.04/
Compilation based XML processing 
----
libwww-perl-5.826
http://search.cpan.org/~gaas/libwww-perl-5.826/
----
perl5i-20090424
http://search.cpan.org/~mschwern/perl5i-20090424/
Bend Perl 5 so it fits how it works in my imagination 


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/>
Smalltalk/Perl/Unix consulting, Technical writing, Comedy, etc. etc.
See http://methodsandmessages.vox.com/ for Smalltalk and Seaside discussion


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

Date: Fri, 24 Apr 2009 18:03:41 -0700 (PDT)
From: mercurish@googlemail.com
Subject: Perl is too slow - A statement
Message-Id: <787c3c48-e25e-44b0-943a-3f60712fbfc9@k2g2000yql.googlegroups.com>

We hear this all too common:
            "I have one huge problem with Perl; it is too slow."

But is Perl realy slow, could perl be slow at all?

The problem is that most programmers associate an implementation of a
programming
language with the language it self. The current interpreter is too
slow and hence programmers
think that 'Perl' is too slow.

Perl5 doesn't perform anything to make Perl machine like-able, Perl5
is infact hated by machines
where the Perl5 program is being executed.

Though however, with Perl6 the maintainers of the programming language
are hoping to reduce the
runtime overhead of using Perl over the traditional programming
languages such as C.

But is Perl ready to be used for huge projects or is other languges
such as Python taking over??

What are we going to do??


-- Kasra






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

Date: Fri, 24 Apr 2009 21:16:55 -0400
From: Uri Guttman <uri@stemsystems.com>
Subject: Re: Perl is too slow - A statement
Message-Id: <87hc0dzg54.fsf@quad.sysarch.com>

>>>>> "m" == mercurish  <mercurish@googlemail.com> writes:

  m> What are we going to do??

*'WE'* are going to ignore trolls like you who don't know from slow vs
fast. you can create slow programs in any language. i can write perl
that runs faster than most people can in their favorite language. you
question is useless.

uri

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


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

Date: Sat, 25 Apr 2009 00:57:21 GMT
From: Ilya Zakharevich <nospam-abuse@ilyaz.org>
Subject: Re: pod2ipf in Perl 5.10?
Message-Id: <slrngv4nvh.8n4.nospam-abuse@chorin.math.berkeley.edu>

On 2009-04-24, Ben Morrow <ben@morrow.me.uk> wrote:
>
> Quoth Shmuel (Seymour J.) Metz <spamtrap@library.lspace.org.invalid>:
>> I'm having trouble creating perl.inf for Perl 5.10, and can't find
>> anything relevant in Google. Has anybody been successful in running
>> pod2ipf against Perl 5.10. Do you know og a site where I can download
>> perl.inf at the 5.10 level? Thanks.
>
> I'm guessing from the lack of responses that nobody here knows about
> running perl on OS/2 (though I'm surprised Ilya hasn't spoken up). You
> may want to take the question to perl5-porters@perl.org, though I fear
> you may not have much more luck. I presume perldoc is working, so you
> can actually *read* the documentation, you'd just rather have it
> available in the native format?

Did not see the original message. The excerpt above is not informative
enough to guess what QSM wanted.

[As documented in any perl*.inf (the `About' node), one needs to cd to
 pod directory of Perl build hierarchy, and start pod2ipf.

 More info on how to build a binary distribution should be given in
 the OS2 node of any perl*.inf...

 Myself, I still can't find time to build the dozen of recalcitrant
 module distributions to complete the "normally huge" distribution of
 5.8.8.]

Hope this helps,
Ilya


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

Date: Fri, 24 Apr 2009 06:24:47 -0700 (PDT)
From: smallpond <smallpond@juno.com>
Subject: Re: Sub indentation trouble
Message-Id: <bbf3655b-5377-43e5-a674-e2b87648e494@g19g2000yql.googlegroups.com>

On Apr 24, 9:04 am, "Julien K." <bozo_le_cl...@wherever.you.want.com>
wrote:

>   Any hints?


If emacs were written in perl and not lisp, then this would be an
excellent
in which to post your question.

Perhaps you want to modify the indent variables when loading perl-
mode.el?

Various indentation styles:       K&R  BSD  BLK  GNU  LW
  perl-indent-level                5    8    0    2    4
  perl-continued-statement-offset  5    8    4    2    4
  perl-continued-brace-offset      0    0    0    0   -4
  perl-brace-offset               -5   -8    0    0    0
  perl-brace-imaginary-offset      0    0    4    0    0
  perl-label-offset               -5   -8   -2   -2   -2


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

Date: Fri, 24 Apr 2009 15:53:29 +0200
From: "Julien K." <bozo_le_clown@wherever.you.want.com>
Subject: Re: Sub indentation trouble
Message-Id: <slrngv3h2p.7i3.bozo_le_clown@thabor.lan.ah2d.fr>

On 24-04-2009, smallpond wrote:
> On Apr 24, 9:04 am, "Julien K." <bozo_le_cl...@wherever.you.want.com>
> wrote:
>
>>   Any hints?
>
> If emacs were written in perl and not lisp, then this would be an
> excellent in which to post your question.

  I'm aware of the off-topic part (half?) of my question, but:

  1/ the author of cperl (thank you very much for that code) seems to 
     read this newsgroup,
  2/ Perl coders sometimes use (X?)Emacs ;-)
  3/ Some of those coders may have run into the same trouble...

> Perhaps you want to modify the indent variables when loading perl-
> mode.el?
>
> Various indentation styles:       K&R  BSD  BLK  GNU  LW
>   perl-indent-level                5    8    0    2    4
>   perl-continued-statement-offset  5    8    4    2    4
>   perl-continued-brace-offset      0    0    0    0   -4
>   perl-brace-offset               -5   -8    0    0    0
>   perl-brace-imaginary-offset      0    0    4    0    0
>   perl-label-offset               -5   -8   -2   -2   -2

  That's what I tried before posting, based on informations from the cperl 
minidocs but with not much luck, and to set cperl-close-paren-offset
to several negative values...

  I also tried to track what changed before cperl-5.1 because my settings 
did not changed during the past few years (if it's not broken...)

  Thanks for your reply anyway,

  Julien


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

Date: Sat, 25 Apr 2009 00:59:46 GMT
From: Ilya Zakharevich <nospam-abuse@ilyaz.org>
Subject: Re: Sub indentation trouble
Message-Id: <slrngv4o42.8n4.nospam-abuse@chorin.math.berkeley.edu>

On 2009-04-24, Julien K. <bozo_le_clown@wherever.you.want.com> wrote:
>   I also tried to track what changed before cperl-5.1 because my settings 
> did not changed during the past few years (if it's not broken...)

All changes should be documented in cperl-mode.el.

Yours,
Ilya


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

Date: Sat, 25 Apr 2009 01:13:09 GMT
From: Ilya Zakharevich <nospam-abuse@ilyaz.org>
Subject: Re: unexplained warning message in m{...} regexp
Message-Id: <slrngv4ot5.8n4.nospam-abuse@chorin.math.berkeley.edu>

On 2009-04-24, Teo <matteo.corti@gmail.com> wrote:
>> > Please note that I have escaped '\{' and '\}' inside m{\A\{0,0\}\z}...
>>
>> Here, the \-escape eliminates the meaning as delimiter.
>> The { } become metacharacters.
>>
>> > ...and why does the message disappear if I use /\A\{0,0\}\z/. ?
>>
>> Here, the \-escape eliminates the meaning as metacharacter.
>> The { } become normal characters.
>
> Ok I see but this is rather confusing:
>
> * in a // delimited regex the literal '/' has to be escaped
> * in a {} delimited regex the literal '{' has *not* to be escaped
>
> am I getting it right?

No.  Let me try (untested):

  * in a {}-delimited regex escaping '{' won't make it into a literal.
    (AND unescaped '{' should properly nest).

  [There are two different mechanisms of unescaping in the lifetime of
   a REx.

   a) First, the parser removes delimiters (and unescapes escaped
      delimiters) (it may also remove certain other escapes - do not
      remember details).

   b) The result is passed to REx engine.  It processes all the
      remaining special-for-REx escapes.

   I did not have time to document it when I was working on Perl
   RExes.  I doubt the docs improved from that time...]

The difference is kinda subtle.  E.g., variables interpolated in RExes
are subject ONLY to "b"-unescaping.  Also, one can see the result of
"a" in debugging output of

   use re 'debugcolor';

Hope this helps,
Ilya

P.S.  If one tries to use \ as a delimiter, one can get yet funnier
      quirks of this 2-step semantic...  ;-)


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

Date: Fri, 24 Apr 2009 21:22:54 -0700
From: Xho Jingleheimerschmidt <xhoster@gmail.com>
Subject: Re: unexplained warning message in m{...} regexp
Message-Id: <49f28f0b$0$4950$ed362ca5@nr5-q3a.newsreader.com>

Klaus wrote:
> On Apr 24, 10:58 am, Frank Seitz <devnull4...@web.de> wrote:
> 
>> The { } become metacharacters.
> 
> I find it unfortunate that they become metacharacters, 

I wouldn't say they become metacharacters, they are metacharacters. 
That is what they started as, and that is what they return to when their 
backwhacks get eaten.


> particularly so
> because there is no reason to quote metacharacters { } in the first
> place, 

Of course there is.  If they were not quoted, they would be either hash 
constructors or code blocks, rather than either literal characters or 
regex special characters.

 > as they always come in pairs and are handled natuarally by m{...
> { }...} as a nested pair of curlies, for example m{a{1,2}}

They don't always come in pairs.  What if the literal string you wanted 
to match were '{0,0' ?

Xho


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

Date: Fri, 24 Apr 2009 21:16:32 -0700
From: Xho Jingleheimerschmidt <xhoster@gmail.com>
Subject: Re: unexplained warning message in m{...} regexp
Message-Id: <49f28f2b$0$4950$ed362ca5@nr5-q3a.newsreader.com>

Klaus wrote:
> I am trying to match a literal string '{0,0}' using the syntax m{...}.
> I know that I have to escape both the '{' and '}' characters.
> 
> Here is my program
> ========================
> use strict;
> use warnings;
> 
> $_ = '{0,0}';
> if (m{\A\{0,0\}\z}) {
>     print "yes\n";
> }
> else {
>     print "no\n";
> }
> ========================
> 
> The regexp works as intended and prints "yes", 

Just because it prints yes when you expect it to doesn't mean it works 
as intended.  If you intend to do addition, then 2*2 gives the expected 
answer, yet doesn't work as intended.

> 
> It seems to me that Perl is confused about using '{' and '}' inside a
> match of the form m{...}

Turn the m into a q and print the result:

/home/user> perl -wle 'print q{\A\{0,0\}\Z}'
\A{0,0}\Z
/home/user> perl -wle 'print q/\A\{0,0\}\Z/'
\A\{0,0\}\Z

This is a generic property of quote like operators, not peculiar to the 
regex variety of them.

Xho


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

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


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