Michał Wojciechowski
- Website: odyniec.net/
- About: I blog about Perl.
Recent Actions
- Posted Arriba - PSGI Web Server with SPDY Support to Michał Wojciechowski
-
Commented on Happy Birthday Perl
@jrw32982: Your terminal needs to support UTF-8....
-
Commented on Happy Birthday Perl
@:m): Ok, here it goes: The "MK__^..." string is the uuencoded bitmap. The second call to unpack uudecodes it, returning a string of bytes, each representing 8 "pixels" of the image. The =~/./g part turns it into a list of...
-
Posted Happy Birthday Perl to Michał Wojciechowski
Happy 25th Birthday, Perl! I made you a card:
perl -C -e'print map+(v9635 x8^unpack B8).(v10)[++$n%9],(unpack u,"MK__^=^WW_S_WK)FNO\$3F5U\$7BJJ.=>U51S-WK)GNM>UF=W%[K[N>?___SW__")=~/./g' -
Commented on [FB]izzBuzz in Perl
I'm late to the party, but here's my version, using a slightly different approach: say+(Fizz)[++$_%3].Buzz x/.?[50]$/||$_ until$`...
-
Posted Building a Search Web App with Dancer and Sphinx to Michał Wojciechowski
In this article, we'll develop a basic search application using Dancer and that's fairly easy to use, but powerful enough to be deployed in high-traffic sites, such as Craigslist and Dailymotion.
In keepin…
-
Commented on Let Paths Be Paths Again
@Leon Timmermans: That's correct, this module doesn't touch any of that and is mostly useful for constructing relative paths. It wasn't my intention to replace File::Spec entirely, just to provide an alternative, simpler solution for a common use case. As...
-
Commented on Let Paths Be Paths Again
@educated_foo: It is true that most of the time you can get away with just using Unix paths. However, I don't think it's actually guaranteed to work in every situation -- that's why using File::Spec or Path::Class is still recommended....
-
Commented on Let Paths Be Paths Again
@targ: It's definitely a personal thing, and I'm sure many people are just fine with constructing paths with File::Spec or Path::Class, like you are. But for me, it is slightly less readable -- when I look at a path written...
-
Posted Let Paths Be Paths Again to Michał Wojciechowski
The de facto standard way of constructing portable filesystem paths in Perl is through the use of File::Spec's catfile and
-
Posted Perldoc and I Would Like to Wish You a... to Michał Wojciechowski
perldoc perlsyn | perl -ne 's/^.*?"|\\.*$//g,print if/1\.\.15/' -
Commented on Alternative Dancer Templating Engines
Haml looks more like a DOM tree than a traditional template, and for this reason I find it more readable for things like basic page layout (headers/footers, content placeholders, etc.) -- it gives a clear view of the whole structure...
-
Posted Alternative Dancer Templating Engines to Michał Wojciechowski
Dancer uses a simple model of interfacing with templating engines (based on engines. Thanks to this, if you're not happy with the default
="p… -
Posted Serving Files with Dancer::Plugin::DirectoryView and Dancer::Plugin::Auth::Htpasswd to Michał Wojciechowski
A while ago I was converting a simple PHP website to Dancer, There wasn't a lot of code, so rewriting went quickly -- but, the site used a few specific features of Apache, namely directory indexes (courtesy of ="http://search.cpan.org/…
-
Commented on GitHub-friendly README files with ExtUtils::MakeMaker and Module::Build
@sshaw: I know that gist of yours, as I found it when I was first looking for a method to generate a README.pod file with MakeMaker -- so thanks for the inspiration :) As for tee, it's there to make...
-
Commented on GitHub-friendly README files with ExtUtils::MakeMaker and Module::Build
Thanks for your comments. I've heard a lot of praise about Dist::Zilla, but haven't used it yet -- now that I know that it does such a good job of handling READMEs, I'm even more inclined to try it. Anyway,...
-
Posted GitHub-friendly README files with ExtUtils::MakeMaker and Module::Build to Michał Wojciechowski
GitHub is a great place to host open-source projects and expose them to a wide community of developers, so it's not surprising that more and more Perl modules are making it their home.
One of the features of GitHub is that it checks if a repository has a …
Comment Threads
-
Aristotle commented on
Alternative Dancer Templating Engines
I doubt you put any thought into that analogy, because as long as we agree that the reason HLLs won is expressiveness, you’ve ended up arguing against yourself. After all, which is more expressive between minilanguages and Perl? Then effectively you are saying your chose assembler over a HLL.
But I shall be no judge of those who like their assembler. I shall just be over here with Perl.
-
educated_foo commented on
Let Paths Be Paths Again
I ask because my main reasons for using Path::Class or File::Spec would be fear, uncertainty, and doubt. Where, and how often, will blindly using a Unix path cause trouble?
BTW, I'm not too worried about showing paths to users, since if they're not on Unix, they probably won't understand them. I have never, while using a Mac, had to deal with the colon-separated native paths.
-
ligne commented on
Let Paths Be Paths Again
"Where, and how often, will blindly using a Unix path cause trouble?"
Windows. it works *most* of the time. except sometimes it doesn't. and it probably won't be clear why.
(i speak from horrible experience here, having lost a couple of hours last month debugging a problem where some paths in a configuration file were Unix-style and worked just fine, and others were Unix-style and failed far down the line with obtuse error messages. comedy!)
-
Joel Berger commented on
Happy Birthday Perl
Very cool, thanks!
-
:m) commented on
Happy Birthday Perl
Thanks for the explanation. :-)
cool tricks!
About blogs.perl.org
blogs.perl.org is a common blogging platform for the Perl community. Written in Perl and offering the modern features you’ve come to expect in blog platforms, the site is run by Dave Cross and Aaron Crane, with a design donated by Six Apart, Ltd.