Posting to blogger.com?
mark at twoshortplanks.com
Fri Jun 4 12:17:11 BST 2010
On Thu, Jun 3, 2010 at 1:17 PM, Dave Hodgkinson <davehodg at gmail.com> wrote:
> On 3 Jun 2010, at 00:52, Mark Fowler wrote:
>> 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
> Ah, slurp("file") is clearly too obscure and difficult.
It's not that it's obscure or difficult, it's that since I've already
loaded Path::Class and most likely have the file object representing
the path already, calling ->slurp on it is the natural way forward for
I'm not saying you're wrong using File::Slurp, I'm just saying that I
don't have it at the top of my module list any more.
Of course, TMTOWTDI.
More information about the london.pm