Mark Grimes
- Website: www.peculier.com/
- About: Stuff I've stumbled on or figured out... mostly Perl, Linux, Mac and Cygwin.
Recent Actions
-
Commented on AWS Lambdas, Furl & LWP
Very cool! Looking forward to seeing the release on GitHub....
-
Commented on A Date with CPAN, Part 1: State of the Union
One more to consider: DateTimeX::Immutable. Like Moonpig, it makes DateTime immutable, but it leaves the rest of it unchanged. It can often serve as a drop-in replacement for DateTime. Used with aliased you might be able to change just one...
-
Commented on Be Your Own Big Brother
Interesting post. I love the simplicity of Plack, and this shows it off really nicely. There was one line that I'm having a hard time grokking: map { eval ~~ $req->param($_) } qw(latitude longitude altitude accuracy bearing); At first glance,...
-
Commented on Colorized perl code snippets on ANSI terminals
Very nice! Thanks....
-
Commented on Onion and CPAN
Looks great to me!...
Comment Threads
-
Toby Inkster commented on
Be Your Own Big Brother
PS: the reason for using eval is to ensure that numbers given as strings in scientific notation, such as "1.004E-4" are passed as proper numbers to the database engine. (I live very close to a 0.)
-
Karl Dane commented on
Colorized perl code snippets on ANSI terminals
Thanks, Peter. Almost exactly what I was looking for! I've made a few changes to handle svn's diff formatting. Patch below (hopefully not too mangled):
16c16
---
> use Term::ANSIColor qw(:constants colored);
57a58,62
> my $exception_color = exceptions($line);
> if ($exception_color) {
> print colored [ $exception_color ], $line;
> next;
> }
59a65,71
>
> sub exceptions {
> my $line = shift;
> if ($line =~ /^\-/) { return 'white on_red' }
> if ($line =~ /^… -
confuseAcat commented on
A Date with CPAN, Part 1: State of the Union
I'm in the same boat. I rarely deal with times, I often have to deal with dates.
I sometimes feel like a freak because I rely on Date::Parse and especially Date::Format so much.
Literally all the dates I deal with are well past 1970.
I let the JavaScript in our front-end deal with locales and time zones.
Plus the length of docs for the popular DateTimePiecMoment modules scares me off.
-
Buddy Burden commented on
A Date with CPAN, Part 1: State of the Union
Thanks everyone for the great comments! I’ve been swamped at
$work
, so I haven’t had a chance to respond until now. I’m going to answer everyone’s thoughts here in one post instead of trying to reply to each individually. Hopefully everyone’s okay with that.First of all, the compliments. Ron Savage and Bull Ruppert had nice things to say, and I think them for the kind words and the encouragement. confuseAcat popped by to commiserate; it seems like we have similar perspectives, so hopefully this…
-
slu commented on
AWS Lambdas, Furl & LWP
Looking into implementing AWS Lambdas in Perl was on my to do list, now I will wait for Amazon::Lambda::Runtime to be available :-)
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.