regarding Class::Accessor::Faster011 (4/2/2013 7:58:28 PM) comp.lang.perl.misc As far as I could determine, this
http://cpansearch.perl.org/src/KASEI/Class-Accessor-0.34/lib/Class/Accessor/Faster.pm
is not only not concerned with data inheritance at all (eg, the first
generated acc... Rainer
Perl method names are not tied to specific packages210 (3/26/2013 4:52:09 PM) comp.lang.perl.misc That's something which probably also got lost in the noise: A
subroutine which expects 'an object' (a blessed reference) as argument
and does nothing with this object except invoking methods on it will
work ... Rainer
slots.pm19 (3/25/2013 5:06:44 PM) comp.lang.perl.misc After converting the presently largest Perl program I'm dealing with
(with 12,756 LOC of what the web developer would call 'business
logic' and no user interface whatsoever) to using this, I've created a
sli... Rainer
a logic excursion58 (3/22/2013 2:03:42 PM) comp.lang.perl.misc This is going to be totally dull and of no interest or use to anyone
except a logic geek.
------------
A programming language can only be used if it is useful for solving
real problems.
Java is being u... Rainer
object representation redux (term?)19 (3/22/2013 10:51:15 AM) comp.lang.perl.misc To pull this again together for the benefit of people who might be
interested in the issue iself or who have or want to solve actual
problems with Perl:
It is easier to provide data inheritance with arrays... Rainer
a trival array/ hash benchmark1110 (3/20/2013 11:30:26 PM) comp.lang.perl.misc When running the trivial microbenchmark
-----------
use Benchmark;
my $h = { Worschtsupp => 4 };
my $a = [4];
timethese(-5,
{
h => sub { return $h->{Worschtsupp}; },
a => sub { return $... Rainer
'Needless flexibilities' and structured records [very long]1612 (3/15/2013 8:05:44 PM) comp.lang.perl.misc NB: This is a lenghty multi-section texts starting with an explanation
of 'the basics' for anybody who might have been so unfortunate to
encounter Perl at version 5.16 or later. There's something which isn't
... Rainer
message forwarding in perl2214 (3/7/2013 3:42:19 PM) comp.lang.perl.misc Another trivial thing I'm actually using: Can be implemented via
AUTOLOAD. The fact that UNIVERSAL->can and AUTOLOAD don't play nice
with each other is actually documented. Again, one has to wonder why
someo... Rainer
moving class indepdent methods out of class definitions215 (3/7/2013 3:29:16 PM) comp.lang.perl.misc .... and into places where they can be reused by other classes,
including the possibility to 'overload' them in derived classes (not
necessarily sensible for class-independent code): Put them into a
package ... Rainer
some random remarks about Moose::Manual::Concepts1919 (3/2/2013 5:07:57 PM) comp.lang.perl.misc The complete text is available here:
http://search.cpan.org/~doy/Moose-2.0604/lib/Moose/Manual/Concepts.pod
,----
| Attributes are not methods, but defining them causes various accessor
| methods to be ... Rainer
Ascertaing uploaded file size395 (4/23/2013 5:10:21 PM) comp.lang.perl.misc I'm uploading multiple files (HTML5) to an internet server. I wish to
verify that the files were properly received. I'm expecting to compare
file sizes. I have the file size of the file being uploaded, and I ... Joey(45)
nice parallel file reading127 (4/26/2013 7:05:38 PM) comp.lang.perl.misc # Read files in parallel. FileHandles are closed automatically.
# Files are read at every iteration circulary, hope you like it !
use strict;
use warnings;
my $Read_line = Read_files_round_robin( 'file1... nospam.gravitalsun.antispam1(33)
Turning lines of a file into array?112 (5/4/2013 4:58:37 AM) comp.lang.perl.misc Sorry for the basic question but how can I best turn each line of a file
into an array?
I have a list filenames (just output of 'ls') in a separate text file, each
on a new line:
DSC07557.JPG
DSC07532.... tuxedo(96)
Why do Perl programmers make more money than Python programmers813 (5/5/2013 5:11:11 PM) comp.lang.python According to CIO.com, Python programmers make only $83,000 per year,
while Perl programmers make $93,000 per year.
http://www.cio.com/slideshow/detail/97819?source=ifwartcio#slide10
http://www.cio.com/sli... Ignoramus16992
Efficiency of s///e?141 (5/17/2013 3:36:48 AM) comp.lang.perl.misc There's a sub in our code base which has something like
my $prevent_infinite_loop = 0;
while ($prevent_infinite_loop++ < 1000 && $text =~ /(complicated) (regular) (expression)/) {
... vario... tmcd1(189)
Iterating hashes172 (5/14/2013 1:37:47 PM) comp.lang.perl.misc If I have
foreach (sort keys %hash)
Then I know that there is a posible performance hit as the keys are
all extracted and then sorted. But is this because of the sort or are
they always all extracted ... dave7665(110)
async module11 (5/13/2013 11:18:37 AM) comp.lang.perl.misc there are numerous event/parallel based modules at cpan.
I have not time to study and test them. I think to grab AnyEvent and
work with it.
What do think from your experience, is it a good choise ?
... nospam.gravitalsun.noadsplease(8)