May 2011 Archives

edit_file and edit_file_lines

to localize $^I and @ARGV to do that? Now you can do that with a simple
call to edit_file or edit_file_lines in the new .018 release of
File::Slurp. Now you can modify a file in place with a simple call.

edit_file reads a whole file into $_, calls its code block argument and
writes $_ back out the file. These groups are equivalent operations:

perl -0777 -pi -e 's/foo/bar/g' filename

use File::Slurp qw( edit_file ) ;

edit_file { s/foo/bar/g } 'filename' ;/users/uri/2011/05/index.html

Perl Hunter Job Leads

I figure I might as well get blogging on Perl Hunting as well.

I have set of Perl job leads open now. This is a telecommute job from these
8 states or onsite in Silver Springs MD:


Read more about this job

To apply for either job send your resume in PDF or plain text AND
samples of your Perl code to resumes AT

If your shop has a Perl job you want filled, send it to me as well. I
have placed over 30 Perl developers all over the country and can help

Template::Simple .04 is on CPAN

I have released Template::Simple .04 to CPAN. This is a major update
a benchmark script. Templates can be compiled and run much faster. The
benchmark shows nested templates rendering up to 34 times faster than
Template::Toolkit and faster than Template::Teeny. If you want to flame
about the speed issue, you are better off adding entries to the benchmark (it needs a
redesign as it was sent to me) and showing faster templatin…

About Uri

user-pic I place Perl developers and I also do Perl support and consulting.