Giter Site home page Giter Site logo

lines_utf8({chomp=>1}) dies about path-tiny HOT 3 CLOSED

dagolden avatar dagolden commented on August 28, 2024
lines_utf8({chomp=>1}) dies

from path-tiny.

Comments (3)

chansen avatar chansen commented on August 28, 2024

slurp_utf8 should pass $self instead of $_[0]

diff --git a/lib/Path/Tiny.pm b/lib/Path/Tiny.pm
index 82da725..be30d59 100644
--- a/lib/Path/Tiny.pm
+++ b/lib/Path/Tiny.pm
@@ -605,7 +605,7 @@ sub lines_utf8 {
         && $args->{chomp}
         && !$args->{count} )
     {
-        return split /\n/, slurp_utf8( $_[0] ); ## no critic
+        return split /\n/, slurp_utf8($self); ## no critic
     }
     else {
         $args->{binmode} = ":raw:encoding(UTF-8)";

from path-tiny.

 avatar commented on August 28, 2024

Thanks. I'll fix that up.

On Fri, May 17, 2013 at 9:20 PM, Christian Hansen
[email protected]:

slurp_utf8 should pass $self instead of $_[0]

diff --git a/lib/Path/Tiny.pm b/lib/Path/Tiny.pm
index 82da725..be30d59 100644
--- a/lib/Path/Tiny.pm
+++ b/lib/Path/Tiny.pm
@@ -605,7 +605,7 @@ sub lines_utf8 {
&& $args->{chomp}
&& !$args->{count} )
{

  •    return split /\n/, slurp_utf8( $_[0] ); ## no critic
    
  •    return split /\n/, slurp_utf8($self); ## no critic
    
    }
    else {
    $args->{binmode} = ":raw:encoding(UTF-8)";


Reply to this email directly or view it on GitHubhttps://github.com//issues/39#issuecomment-18093168
.

David Golden [email protected]
Take back your inbox!http://www.bunchmail.com/
Twitter/IRC: @xdg

from path-tiny.

 avatar commented on August 28, 2024

Shipped to CPAN

from path-tiny.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.