A few weeks ago, I mentioned that I had two days of public training coming up in Manchester in April. I’ve just heard that the organisers have decided to cancel this training as they have had no bookings for the classes. I’m sorry if anyone was planning to book closer to the date and has […]
Tag: perl
Training Debrief
I’ve spent a lot of the last seven days running training courses. It might be interesting to share some thoughts about how they went. Last Saturday was Perl School 4. A week before the course I was a little worried about ticket sales, but I did a bit of marketing early last week and managed […]
Perl Books
The Perl community on LinkedIn is fascinating. It’s a great way to see how Perl is perceived and used outside of the echo chamber. And that’s a real eye-opener. Here’s an example. Every few weeks (it seems) someone asks for advice on Perl books.At that point, a few people will jump in with sensible suggestions. […]
Why Corporates Hate Perl
This is a reprint of an old blog post. A few years ago I was writing blog posts (semi-)regularly for O’Reilly. This is the one that probably got the most feedback. I’m reprinting it now because a) it’s pretty hard to find on the O’Reilly site and b) it’s relevant to a couple of conversations […]
A Cautionary Tale
I can never remember exactly how Time::Piece works. But that’s ok because I have documentation.
|
1 2 |
$ perldoc Time::Piece No documentation found for "Time::Piece". |
Huh?
|
1 2 3 4 5 6 7 8 9 10 |
$perl -v This is perl 5, version 14, subversion 2 (v5.14.2) built for x86_64-linux-thread-multi ... $ corelist Time::Piece Time::Piece was first released with perl v5.9.5 $ perl -MTime::Piece -E'say $Time::Piece::VERSION' Can't locate Time/Piece.pm in @INC (@INC contains: /usr/local/lib64/perl5 /usr/local/share/perl5 /usr/lib64/perl5/vendor_perl /usr/share/perl5/vendor_perl /usr/lib64/perl5 /usr/share/perl5 .). BEGIN failed--compilation aborted. |
So Time::Piece has been in the Perl core since 5.9.5. I’m running Perl 5.14.2 but I don’t have Time::Piece installed. After ten minutes or so of head-scratching it came to me.
|
1 2 3 4 5 |
$ sudo yum install perl-core Loaded plugins: langpacks, local, presto, refresh-packagekit [ stuff snipped ] ---> Package perl-Time-Piece.x86_64 0:1.20.1-212.fc17 will be installed [ more stuff snipped] |
I’m running Fedora. The Fedora […]
