Posting to blogger.com?

Graham Barr gbarr at pobox.com
Thu Jun 3 13:25:12 BST 2010


On Jun 3, 2010, at 5:06 AM, Steve Mynott wrote:
> On Wed, Jun 02, 2010 at 05:52:40PM +0100, Mark Fowler typed:
> 
>> On Wed, Jun 2, 2010 at 4:29 PM, Dave Hodgkinson <davehodg at gmail.com> wrote:
>> 
>>> On 2 Jun 2010, at 21:38, Egor Shipovalov wrote:
>>>> use File::Slurp;
>>> 
>>> This is the start of most scripts I've been writing recently.
>> 
>> I dumped this since I started using Path::Class all the time.
>> 
>> my $content = file("something")->slurp
> 
> Does it work with UTF-8?

It does with this patch

https://rt.cpan.org/Public/Bug/Display.html?id=58088

  my $content = file("something")->slurp(iolayers => ':encoding(utf8)');

Graham.




More information about the london.pm mailing list