Jonathan Lloyd
Recent Actions
-
Commented on A network benchmarker for Perl programs?
You could probably use DTrace to tie in to the underlying network layer. Although, I am not skilled enough in DTrace to provide an example....
-
Commented on Why you don't need File::Slurp…
I would be curious for you to add Damien Conway's Perl6::Slurp to your comparison....
-
Commented on Method::Signatures: where and when
Thank you for your efforts! Method::Signatures is a key part of my Moose toolbox. Very much appreciated....
- Posted An Excuse to Get Outside (Team Building via RC Helicopter) to Jonathan Lloyd
-
Posted Preventing Collisions with Perl cron jobs to Jonathan Lloyd
Imagine you are a brilliant developer who just created a Perl script that takes form submissions from your website and imports them to your ticketing system. Well done! Now you want to set this script to run periodically so that as new requests come in they are automatically submitted to your…
-
Commented on Hello World
Welcome! Any new Perl blogger is good for the community. I look forward to your future posts....
-
Commented on Why does your site not link to perl.org?!
Great article. You are right on! I plan to add this link to all our web properties....
-
Commented on Dynamic Forms with HTML::FormFu
Great article! Never even knew this module existed -- but now I may use it on an upcoming project....
-
Posted Perl 6 IRL (In Real Life) to Jonathan Lloyd
A couple of weeks ago a ran into a real life situation where Perl 6 was able to greatly simplify my life. I was in the process of importing some Canadian postal codes from a PDF document where the data was presented like this:
A0A-A0R,D13
A1A-A1G,D11
A1H-A1M,D13…
Comment Threads
-
mascip commented on
Method::Signatures: where and when
I should probably have written "in a package", rather than "in a Moo class".
-
Buddy Burden commented on
Method::Signatures: where and when
> Could there be any way for a user to tell in a Moo(se) class: “don’t do any type check for any subroutines of this class” ?
Sure. This is being discussed right now, in fact, as GitHub issue #73.
-
https://www.google.com/accounts/o8/id?id=AItOawlKCInGw3AtPhoc4NBTcIFE1ggZxSjXMXY commented on
Why you don't need File::Slurp…
There's a flaw IMHO, read() may not return the whole file content (and actually it won't with large files), depends on OS buffering. The usual boilerplate includes a while() and buffer concatenation.
AFAIK, sysread() might return partial data. But read() should return whole file (it's there are no problems with memory allocation in Perl). Can you point a place where the behaviour you describe is documented ?
-
Mike Doherty commented on
Why you don't need File::Slurp…
Would you benchmark this method of slurping, which is what I typically see?
my $contents = do { local $/; open my $in, '<', $filename; <$in> };
Might be worth adding to https://github.com/melo/perl-benchmarks
-
Damien "dams" Krotkine commented on
Why you don't need File::Slurp…
I like to use this for non production code :)
my $content = do{local(@ARGV,$/)=$filename;<>};
I don't think it's useful to benchmark it :)
About blogs.perl.org
blogs.perl.org is a common blogging platform for the Perl community. Written in Perl with a graphic design donated by Six Apart, Ltd.